/**
* Adds the content for showing the parser info to the TabPane
* @param tabPane
*
*/
public ParseInfoView(TabPane tabPane) {
Label label = new Label(loadInstructions());
label.getStyleClass().add("infoText");
//putting the image on a scrollpane
ScrollPane sp = new ScrollPane();
sp.getStyleClass().add("rulesView");
tab = new ViewTab("Input format",this);
sp.setContent(label);
tabPane.getTabs().add(tab);
tab.setContent(sp);
tabPane.getSelectionModel().select(tab);
//used for getting screensize
Rectangle2D primaryScreenBounds = Screen.getPrimary().getVisualBounds();
//Avoids scaling too much
double w=primaryScreenBounds.getWidth();
label.setPrefWidth(w);
}
ParseInfoView.java 文件源码
java
阅读 27
收藏 0
点赞 0
评论 0
项目:Conan
作者:
评论列表
文章目录