当前位置: 首页>>代码示例>>Java>>正文


Java BorderPane.setTop方法代码示例

本文整理汇总了Java中javafx.scene.layout.BorderPane.setTop方法的典型用法代码示例。如果您正苦于以下问题:Java BorderPane.setTop方法的具体用法?Java BorderPane.setTop怎么用?Java BorderPane.setTop使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在javafx.scene.layout.BorderPane的用法示例。


在下文中一共展示了BorderPane.setTop方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: start

import javafx.scene.layout.BorderPane; //导入方法依赖的package包/类
@Override
public void start(Stage mainWin) throws IOException {
    Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
    DEFAULT_HEIGHT = screenSize.height - 100;
    DEFAULT_WIDTH = screenSize.width - 100;

    teamTabs = new TabPane(); // Initialize the pane with for the tabs
    setUpHelp = new GUIHelper(this); // Initialize the GUI helper class
    info = setUpHelp.createTextBox("Server not configured!"); // Initialize the textbox
    menuBar = setUpHelp.getMenu(info); // Initialize the menubar and the menus
    elementSect = new StackPane(); // Initialize the element stackpane
    elementSect.getChildren().add(teamTabs); // Add the tabs from teamtabs there
    borderPane = new BorderPane(); // Add the border pane
    borderPane.setTop(menuBar); // Add stuff to the borders
    borderPane.setCenter(elementSect); // But the elementSect in the middle
    borderPane.setBottom(info); // Put the textpane in the bottom
    Scene scene = new Scene(borderPane, DEFAULT_WIDTH, DEFAULT_HEIGHT); // Create the scene for the height
    mainWin.getIcons().add(new Image(ICON_LOC)); // Set the icon as the CyberTiger icon
    mainWin.setTitle("CyberTiger Scoreboard"); // Get the window name
    mainWin.setScene(scene); // Set the window
    mainWin.show(); // Show the window

    refreshData(); // Refresh the data since this creates the rest of teh GUI

    Timeline scoreboardRefresh = new Timeline(new KeyFrame(Duration.seconds(REFRESH_TIMEOUT), (ActionEvent event) -> {
        try {
            refreshData(); // Put the refresh method in this method to autorefresh every minute
        } catch (IOException ex) { // Catch the exception from the database conn
            info.setText("Error refreshing scores! " + ex); // Show the errors
        }
    }));
    scoreboardRefresh.setCycleCount(Timeline.INDEFINITE); // Set the number of times to run
    scoreboardRefresh.play(); // Run the timer
}
 
开发者ID:billwi,项目名称:CyberTigerScoreboard,代码行数:35,代码来源:CPscorereport.java

示例2: LoadingStage

import javafx.scene.layout.BorderPane; //导入方法依赖的package包/类
public LoadingStage(String title, String  noticeText) {
	this.setWidth(WIDTH);
	this.setHeight(HEIGHT);
	
	this.setTitle(title);
	progressBar = new ProgressBar();
	this.notice = new Label(noticeText);
	BorderPane mainPane = new BorderPane();
	Scene s = new Scene(mainPane);
	
	progressBar.setPrefWidth(WIDTH - 25);
	
	mainPane.setTop(notice);
	mainPane.setCenter(progressBar);
	
	mainPane.setPadding(new Insets(15));
	
	this.setScene(s);
}
 
开发者ID:ScreachFr,项目名称:titanium,代码行数:20,代码来源:LoadingStage.java

示例3: show

import javafx.scene.layout.BorderPane; //导入方法依赖的package包/类
private void show() {
	BorderPane bp = new BorderPane();
	bp.setPadding(new Insets(10,50,50,50));
	HBox hb = new HBox();
	hb.setPadding(new Insets(20,20,20,30));		
	//Implementing Nodes for GridPane
	Label lblUserName = new Label("Username");		
	Label lblPassword = new Label("Password");
	Label lblLanguage = new Label("Language");	

	Button btnReset = createButton("Reset", "btnLogin");
	Button btnRegister = createButton("Register", "btnReset");
	Button btnLogin = createButton("Login", "btnReset");

	//Adding GridPane
	GridPane gridPane = createGridPane(lblUserName, lblPassword, lblLanguage, btnLogin, btnReset, btnRegister);
	gridPane.setId("root");
	Text text = createText("Game Login");
	text.setId("text");
	//Adding text to HBox
	hb.getChildren().add(text);
	//Add ID's to Nodes
	bp.setId("bp");	
	//Add HBox and GridPane layout to BorderPane Layout
	bp.setTop(hb);
	bp.setCenter(gridPane); 				
	//Adding BorderPane to the scene and loading CSS
	scene = new Scene(bp);
	scene.getStylesheets().setAll(CSS_LOCATION);		
	//Action for btnLogin
	btnLogin.setOnAction(e -> buttonLoginAction());
	//Action for btnReset
	btnReset.setOnAction(e -> buttonResetAction());		
	//Action for btnRegister
	btnRegister.setOnAction(p -> {
		tempCheckUser = txtUserName.getText().toString();
		tempCheckPw = pf.getText().toString();
		if(tempCheckUser.length() < LENGTH_OF_USER || tempCheckPw.length() < LENGTH_OF_PASSWORD ){
			MessageShowing unsuccess = new MessageShowing();
			unsuccess.show("failure");
			tempCheckUser="";
			tempCheckPw = "";
			buttonResetAction();
			return;
		}
		usersModel.addUser(tempCheckUser, tempCheckPw);

		writer.write(tempCheckUser, tempCheckPw);
		((PopUpMessage) p).show("success");
		buttonResetAction();});	

	scene.setOnKeyPressed(e -> handleKeyInput(e.getCode()));
}
 
开发者ID:LtubSalad,项目名称:voogasalad-ltub,代码行数:54,代码来源:PasswordManager.java

示例4: loadScene

import javafx.scene.layout.BorderPane; //导入方法依赖的package包/类
private Scene loadScene(){
	BorderPane root = new BorderPane();
	
	textArea = new TextArea();
	textArea.setEditable(false);
	textArea.setPrefSize(300, 200);
	root.setCenter(textArea);
	BorderPane.setAlignment(root, Pos.CENTER);
	
	tabs = new TabPane();
	for (RemoteLog remoteLog : logs) {
		Tab tab = new Tab(remoteLog.getName());
		tab.setClosable(false);
		tabs.getTabs().add(tab);
	}
	if(tabs.getTabs().size() > 0){
		tabs.getSelectionModel().select(0);
		selectLog(0);
	}
	tabs.getSelectionModel().selectedIndexProperty().addListener(new ChangeListener<Number>(){
		@Override
		public void changed(ObservableValue<? extends Number> observable, Number oldValue, Number newValue) {
			selectLog(newValue.intValue());
		}
	});
	root.setTop(tabs);
	
	
	return new Scene(root, 450, 300);
}
 
开发者ID:Flash3388,项目名称:FlashLib,代码行数:31,代码来源:LogWindow.java

示例5: AgendaEntryCell

import javafx.scene.layout.BorderPane; //导入方法依赖的package包/类
/**
 * Constructs a new cell that will work with the given agenda view.
 *
 * @param view the parent list view
 * @param headerPaneVisible flag to control the visibility of the cell's header.
 */
public AgendaEntryCell(AgendaView view, boolean headerPaneVisible) {
    this.agendaView = Objects.requireNonNull(view);
    this.headerPaneVisible = headerPaneVisible;

    BorderPane borderPane = new BorderPane();
    borderPane.getStyleClass().add("container");
    borderPane.setTop(createHeader());
    borderPane.setCenter(createBody());

    setGraphic(borderPane);
    setContentDisplay(ContentDisplay.GRAPHIC_ONLY);

    getStyleClass().add(AGENDA_VIEW_LIST_CELL);
}
 
开发者ID:dlemmermann,项目名称:CalendarFX,代码行数:21,代码来源:AgendaView.java

示例6: RTSView

import javafx.scene.layout.BorderPane; //导入方法依赖的package包/类
public RTSView(EventBus bus, Camera camera, Collection<Sprite> sprites) {
	this.bus = bus;
	this.camera = camera;
	pane = new BorderPane();
	//TODO: read all the sprites, then add all the sprites on the root as nodes
	NodeManager menuBarManager = new MenuBarManager();
	pane.setTop(menuBarManager.getNode());

	NodeManager stackPaneManager = new StackPaneManager(sprites);
	pane.setCenter(stackPaneManager.getNode());

	NodeManager gridPaneManager = new GridPaneManager();
	pane.setBottom(gridPaneManager.getNode());




	scene = new Scene(pane, WIDTH, HEIGHT);
	// selected sprite
	Canvas selectionCanvas = new Canvas(WIDTH / 2, HEIGHT - CANVAS_HEIGHT);
	Button selectedSpriteButton = new Button();
	for(Sprite sprite : sprites){
		//TODO: get the skill component of each sprite
		if (sprite!=null&&sprite.getComponent(Images.TYPE).isPresent()){
			LtubImage LTUBImageSprite  = sprite.getComponent(Images.TYPE).get().image();
			Image imageSprite = LTUBImageSprite.getFXImage();
			selectedSpriteButton.setGraphic(new ImageView(imageSprite));
		}
	}

	initHandlers();
}
 
开发者ID:LtubSalad,项目名称:voogasalad-ltub,代码行数:33,代码来源:RTSView.java

示例7: EditorStage

import javafx.scene.layout.BorderPane; //导入方法依赖的package包/类
public EditorStage(Dictionary dictionary, DialogFactory dialogFactory, Stage settingsStage) {

        markdownParser = new MarkdownParser();
        tabFactory = new TabFactory(dictionary, dialogFactory, this);

        settings = new Settings(tabFactory);

        tabFactory.setMarkdownParser(markdownParser);

        ToolBarMenus toolBarMenus = new ToolBarMenus(dictionary);
        menuToolbar = new EditorMenuToolBar(tabFactory, dialogFactory, dictionary, toolBarMenus, markdownParser,this, settingsStage);
        toolBar = new EditorToolBar(dictionary, tabFactory);
        tabFactory.setEditorToolBar(toolBar);

        BorderPane root = new BorderPane(tabFactory.getTabPane());
        root.setTop(menuToolbar);
        root.setBottom(toolBar);
        StackPane container = new StackPane(root);

        Scene scene = new Scene(container, 800, 800);
        scene.getStylesheets().add("css/window.css");
        this.setScene(scene);

        this.setTitle(dictionary.STAGE_EDITOR_TITLE);
        this.getIcons().add(new Image("assets/favicon.png"));
        this.show();
        this.centerOnScreen();

        this.setOnCloseRequest(event -> getOnCloseAction(tabFactory, event));

    }
 
开发者ID:jdesive,项目名称:textmd,代码行数:32,代码来源:EditorStage.java

示例8: createLeftHandSide

import javafx.scene.layout.BorderPane; //导入方法依赖的package包/类
protected Node createLeftHandSide() {
    DayPage dayPage = getSkinnable();

    // today label
    todayLabel = new Label();
    todayLabel.getStyleClass().add("today-label"); //$NON-NLS-1$
    todayLabel.setMaxSize(Double.MAX_VALUE, Double.MAX_VALUE);
    todayLabel.setAlignment(Pos.TOP_LEFT);
    todayLabel.setTextOverrun(OverrunStyle.CLIP);
    todayLabel.setMinWidth(Region.USE_PREF_SIZE);
    HBox.setHgrow(todayLabel, Priority.ALWAYS);

    // year month view
    yearMonthView = dayPage.getYearMonthView();
    yearMonthView.setSelectionMode(SelectionMode.SINGLE);
    yearMonthView.setShowMonth(false);
    yearMonthView.setShowYear(false);
    yearMonthView.setShowTodayButton(false);
    HBox.setHgrow(yearMonthView, Priority.NEVER);
    getSkinnable().bind(yearMonthView, true);

    HBox header = new HBox(10);
    header.setFillHeight(true);
    header.getChildren().addAll(todayLabel, yearMonthView);
    header.getStyleClass().add("header");

    AgendaView agendaView = dayPage.getAgendaView();
    getSkinnable().bind(agendaView, true);
    HBox.setMargin(agendaView, new Insets(10, 0, 0, 0));

    BorderPane leftHandSide = new BorderPane();
    leftHandSide.getStyleClass().add("left-side");
    leftHandSide.setTop(header);
    leftHandSide.setCenter(agendaView);
    HBox.setHgrow(leftHandSide, Priority.ALWAYS);
    return leftHandSide;
}
 
开发者ID:dlemmermann,项目名称:CalendarFX,代码行数:38,代码来源:DayPageSkin.java

示例9: createIconContent

import javafx.scene.layout.BorderPane; //导入方法依赖的package包/类
public static Node createIconContent() {
    StackPane sp = new StackPane();
    BorderPane borderPane = new BorderPane();

    Rectangle rectangle = new Rectangle(62, 62, Color.LIGHTGREY);
    rectangle.setStroke(Color.BLACK);
    borderPane.setPrefSize(rectangle.getWidth(), rectangle.getHeight());
 
    Rectangle recTop = new Rectangle(62, 5, Color.web("#349b00"));
    recTop.setStroke(Color.BLACK);
    Rectangle recBottom = new Rectangle(62, 14, Color.web("#349b00"));
    recBottom.setStroke(Color.BLACK);
    Rectangle recLeft = new Rectangle(20, 41, Color.TRANSPARENT);
    recLeft.setStroke(Color.BLACK);
    Rectangle recRight = new Rectangle(20, 41, Color.TRANSPARENT);
    recRight.setStroke(Color.BLACK);
    Rectangle centerRight = new Rectangle(20, 41, Color.TRANSPARENT);
    centerRight.setStroke(Color.BLACK);
    borderPane.setRight(recRight);
    borderPane.setTop(recTop);
    borderPane.setLeft(recLeft);
    borderPane.setBottom(recBottom);
    borderPane.setCenter(centerRight);
 
    sp.getChildren().addAll(rectangle, borderPane);
    return new Group(sp);
}
 
开发者ID:jalian-systems,项目名称:marathonv5,代码行数:28,代码来源:BorderPaneSample.java

示例10: initUI

import javafx.scene.layout.BorderPane; //导入方法依赖的package包/类
/**
 * Initialize the UI for the Main window.
 */
private void initUI() {
    setName("DisplayWindow");

    setWindowState();
    setTheme();
    String projectName = System.getProperty(Constants.PROP_PROJECT_NAME, "");
    if (projectName.equals("")) {
        projectName = "Marathon";
    }
    setTitle(projectName);
    getIcons().add(FXUIUtils.getImageURL("logo16"));
    getIcons().add(FXUIUtils.getImageURL("logo32"));
    getIcons().add(FXUIUtils.getImageURL("logo64"));
    getIcons().add(FXUIUtils.getImageURL("logo128"));
    getIcons().add(FXUIUtils.getImageURL("logo256"));
    workspace = new DockingDesktop("Marathon");
    workspace.addDockableSelectionListener(dockingListener);
    workspace.addDockableStateWillChangeListener(dockingListener);
    workspace.addDockableStateChangeListener(dockingListener);
    ToolBarContainer container = ToolBarContainer.createDefaultContainer(Orientation.LEFT);
    createToolBar(container);
    container.setContent(workspace);
    BorderPane fxBorderPane = new BorderPane(container);
    fxBorderPane.setTop(createMenuBar());
    fxBorderPane.setBottom(statusPanel);
    Scene scene = new Scene(fxBorderPane);
    scene.getStylesheets().add(ModalDialog.class.getClassLoader()
            .getResource("net/sourceforge/marathon/fx/api/css/marathon.css").toExternalForm());
    setScene(scene);
    initStatusBar();
    initDesktop();
    addEventFilter(KeyEvent.KEY_PRESSED, (event) -> {
        if (event.getCode() == KeyCode.F10)
            setFullScreen(true);
    });
    setExitHook();
}
 
开发者ID:jalian-systems,项目名称:marathonv5,代码行数:41,代码来源:DisplayWindow.java

示例11: SearchResultListViewCell

import javafx.scene.layout.BorderPane; //导入方法依赖的package包/类
public SearchResultListViewCell() {
    setPrefWidth(0);

    getStyleClass().add("search-result-cell"); //$NON-NLS-1$

    colorCircle = new Circle();
    colorCircle.setRadius(3.5);

    titleLabel = new Label();
    titleLabel.setMinWidth(0);
    titleLabel.setGraphic(colorCircle);
    titleLabel.getStyleClass().add("title-label"); //$NON-NLS-1$

    dateLabel = new Label();
    dateLabel.setMinWidth(0);
    dateLabel.getStyleClass().add("date-label"); //$NON-NLS-1$

    timeLabel = new Label();
    timeLabel.setMinWidth(0);
    timeLabel.getStyleClass().add("time-label"); //$NON-NLS-1$

    BorderPane dateTimePane = new BorderPane();
    dateTimePane.getStyleClass().add("date-time-pane");
    dateTimePane.setLeft(dateLabel);
    dateTimePane.setRight(timeLabel);

    borderPane = new BorderPane();
    borderPane.getStyleClass().add("container");
    borderPane.setTop(titleLabel);
    borderPane.setBottom(dateTimePane);

    setGraphic(borderPane);
    setContentDisplay(ContentDisplay.GRAPHIC_ONLY);

    setOnMouseClicked(evt -> {
        if (evt.getClickCount() == 2) {
            Entry<?> entry = getItem();
            if (entry != null) {
                fireEvent(new RequestEvent(this, this, entry));
            }
        }
    });
}
 
开发者ID:dlemmermann,项目名称:CalendarFX,代码行数:44,代码来源:SearchResultViewSkin.java

示例12: constructContainer

import javafx.scene.layout.BorderPane; //导入方法依赖的package包/类
@Override
public Parent constructContainer() {

	webContent.loadContent("<html><body><b>Missing a manual</b></body></html>");
	try {
		// To avoid strange chars like "", the html -Tag is added here separately:
		webContent.loadContent("<html>"+Functions.fileToString(new File(
							   "src/views/txt/troubleshoot.htm"))+"</html>");
	} catch (Exception e) {
		e.printStackTrace();
	}
	double pageWidth = this.getFXController().getMyFXStage().getOPTIMAL_WIDTH();
	double pageHeight = this.getFXController().getMyFXStage().getOPTIMAL_HEIGHT();
	debug.Debugger.out("ManualView sizes: w:"+pageWidth+" h:"+pageHeight);
	
	//webPage.setPrefHeight(pageHeight);
	webPage.setPrefWidth(pageWidth*.93);
	//webContent.setJavaScriptEnabled(true);
	webPage.applyCss();

	Label labelTitel = new Label("Fehlerbehandlung");
	labelTitel.setId("anleitungstitel");

	BackButton backBtn = new BackButton(this.getFXController());

	BorderPane headLayout = new BorderPane(labelTitel);
	headLayout.setPadding(new Insets(20));

	ScrollPane scroller = new ScrollPane();
	scroller.setMaxWidth(pageWidth);

	scroller.setContent(webPage);
	scroller.setHbarPolicy(ScrollBarPolicy.NEVER);
	scroller.setVbarPolicy(ScrollBarPolicy.ALWAYS);
	scroller.setId("anleitung");

	HBox controlLayout = new HBox(20);
	controlLayout.setAlignment(Pos.BOTTOM_CENTER);
	controlLayout.getChildren().addAll(backBtn);
	controlLayout.setPadding(new Insets(10));

	BorderPane mainLayout = new BorderPane();
	mainLayout.setPadding(new Insets(15));
	mainLayout.setTop(headLayout);
	mainLayout.setCenter(scroller);
	mainLayout.setBottom(controlLayout);

	return mainLayout;
}
 
开发者ID:CoffeeCodeSwitzerland,项目名称:Lernkartei_2017,代码行数:50,代码来源:TroubleShootView.java

示例13: constructContainer

import javafx.scene.layout.BorderPane; //导入方法依赖的package包/类
@Override
public Parent constructContainer()
{
	bp = new BorderPane();
	bp.setId("userviewbg");
	
	back = new BackButton(getFXController(),"Zur�ck");
	
	tabPane = new TabPane();
	tabPane.setTabClosingPolicy(TabClosingPolicy.UNAVAILABLE);
	tabPane.getSelectionModel().selectedItemProperty().addListener(new ChangeListener<Tab>() {
		   @Override
		   public void changed(ObservableValue<? extends Tab> ov, Tab tabOld, Tab tabNew) {
		      refreshView();
		   }
		});
	 
    	    
    Center = new VBox();
    Search = new HBox();
    Top = new VBox();
    
    
    txtSearch = new TextField();
    txtSearch.setPromptText("Suche nach Doors");
    txtSearch.setMinWidth(740);
    txtSearch.setMinHeight(50);;
    btnSearch = new AppButton("Suchen");
    btnCreate = new AppButton("++Erstellen++");
    btnCreate.setMinWidth(740);
    btnCreate.setMinWidth(740);
    btnCreate.setOnAction(e -> getFXController().showView("createdoorview"));
    
    StackShowList.setSpacing(20);
    Center.setSpacing(20);
    
    
    sMain = new ScrollPane();
    sMain.setContent(Center);
    
    Search.getChildren().addAll(txtSearch,btnSearch);
    Center.getChildren().addAll(StackShowList,btnCreate);
    
	back = new AppButton("Zur�ck");
	back.setOnAction(e-> getFXController().showView("dmodoorview"));
	
	
	Bottom = new VBox();

	Bottom.getChildren().addAll(back);
	Top.getChildren().addAll(Search,tabPane);
	
	bp.setTop(Top);
	bp.setCenter(sMain);
	bp.setBottom(Bottom);
	
	getFXController().getModel("serverstack").registerView(this);
	
	return bp;
}
 
开发者ID:CoffeeCodeSwitzerland,项目名称:Lernkartei_2017,代码行数:61,代码来源:DMOStackView.java

示例14: constructContainer

import javafx.scene.layout.BorderPane; //导入方法依赖的package包/类
@Override
public Parent constructContainer()
{
	bp = new BorderPane();
	bp.setId("userviewbg");
	
	back = new BackButton(getFXController(),"Zur�ck");
	
	tabPane = new TabPane();
	tabPane.setTabClosingPolicy(TabClosingPolicy.UNAVAILABLE);
	tabPane.getSelectionModel().selectedItemProperty().addListener(new ChangeListener<Tab>() {
		   @Override
		   public void changed(ObservableValue<? extends Tab> ov, Tab tabOld, Tab tabNew) {
		      refreshView();
		   }
		});
	 
    	    
    Center = new VBox();
    Search = new HBox();
    Top = new VBox();
    
    
    txtSearch = new TextField();
    txtSearch.setPromptText("Suche nach Doors");
    txtSearch.setMinWidth(740);
    txtSearch.setMinHeight(50);;
    btnSearch = new AppButton("Suchen");
    btnCreate = new AppButton("++Erstellen++");
    btnCreate.setMinWidth(590);
    btnCreate.setOnAction(e -> getFXController().showView("createdoorview"));
    
    StackShowList.setSpacing(20);
    Center.setSpacing(20);
    
    
    sMain = new ScrollPane();
    sMain.setContent(Center);
    
    Search.getChildren().addAll(txtSearch,btnSearch);
    Center.getChildren().addAll(StackShowList,btnCreate);
    
	back = new AppButton("Zur�ck");
	back.setOnAction(e-> getFXController().showView("saveuploadstackonserverdialogview"));
	
	
	Bottom = new VBox();

	Bottom.getChildren().addAll(back);
	Top.getChildren().addAll(Search,tabPane); 
	
	bp.setTop(Top);
	bp.setCenter(sMain);
	bp.setBottom(Bottom);
	
	getFXController().getModel("serverstack").registerView(this);
	
	return bp;
}
 
开发者ID:CoffeeCodeSwitzerland,项目名称:Lernkartei_2017,代码行数:60,代码来源:SaveDownloadstackOwnDMODoorSelectionView.java

示例15: constructContainer

import javafx.scene.layout.BorderPane; //导入方法依赖的package包/类
@Override
public Parent constructContainer()
{
	bp = new BorderPane();
	bp.setId("userviewbg");
	
	back = new BackButton(getFXController(),"Zur�ck");
	
	tabPane = new TabPane();
	tabPane.setTabClosingPolicy(TabClosingPolicy.UNAVAILABLE);
	tabPane.getSelectionModel().selectedItemProperty().addListener(new ChangeListener<Tab>() {
		   @Override
		   public void changed(ObservableValue<? extends Tab> ov, Tab tabOld, Tab tabNew) {
		      refreshView();
		   }
		});
	 
    	    
    Center = new VBox();
    Search = new HBox();
    Top = new VBox();
    
    
    txtSearch = new TextField();
    txtSearch.setPromptText("Suche nach Doors");
    txtSearch.setMinWidth(740);
    txtSearch.setMinHeight(50);;
    btnSearch = new AppButton("Suchen");
    btnCreate = new AppButton("++Erstellen++");
    btnCreate.setMinWidth(740);
    btnCreate.setMinWidth(740);
    btnCreate.setOnAction(e -> getFXController().showView("createdoorview"));
    
    StackShowList.setSpacing(20);
    Center.setSpacing(20);
    
    
    sMain = new ScrollPane();
    sMain.setContent(Center);
    
    Search.getChildren().addAll(txtSearch,btnSearch);
    Center.getChildren().addAll(StackShowList,btnCreate);
    
	back = new AppButton("Zur�ck");
	back.setOnAction(e-> getFXController().showView("lernenselectionview"));
	
	
	Bottom = new VBox();

	Bottom.getChildren().addAll(back);
	Top.getChildren().addAll(Search,tabPane);
	
	bp.setTop(Top);
	bp.setCenter(sMain);
	bp.setBottom(Bottom);
	
	getFXController().getModel("serverstack").registerView(this);
	
	return bp;
}
 
开发者ID:CoffeeCodeSwitzerland,项目名称:Lernkartei_2017,代码行数:61,代码来源:DMODoorView.java


注:本文中的javafx.scene.layout.BorderPane.setTop方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。