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


Java Stage.setIconified方法代码示例

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


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

示例1: minimize

import javafx.stage.Stage; //导入方法依赖的package包/类
/**
 * 
 * @param event 
 */
public void minimize(MouseEvent event) {
		Stage stage  = (Stage)this.ICON.getScene().getWindow();
	stage.setIconified(true);
}
 
开发者ID:ShekkarRaee,项目名称:xpanderfx,代码行数:9,代码来源:MainFXMLDocumentController.java

示例2: minimize

import javafx.stage.Stage; //导入方法依赖的package包/类
@FXML
private void minimize(ActionEvent event) {
    Stage stage = (Stage) menuPane.getScene().getWindow();
    stage.setIconified(true);
}
 
开发者ID:de-sach,项目名称:BatpackJava,代码行数:6,代码来源:batteryMonitorLayoutController.java

示例3: start

import javafx.stage.Stage; //导入方法依赖的package包/类
@Override
public void start(Stage primaryStage) throws InterruptedException {
    this.primaryStage = primaryStage;
    //Application starts
    //Load Configurations to memory
    TatConfigManager configManager = new TatConfigManager(config);
    try {
       configManager.loadConfigItem();
       DateUtil.importPublicHoliday();
    } catch (IOException ioe){
        ioe.printStackTrace();
    }catch (ClassNotFoundException ce){
        ce.printStackTrace();
    }
    //Setup Menu
    appMenu = new MenuCreator().createApplicationLevelMenu(this, primaryStage, fm, config);
    
    //Setup Toolbar
    appToolbar = new ToolBarCreator().createApplicationLevelToolBar(this, primaryStage, fm, config);
    
    //Setup application border pane
    applicationPane = new BorderPane();

    //Setup left panel SplitPane frame
    leftPanelSp = createLeftPanelSplitPane();
    leftPanelSp.setPrefWidth(330);
    leftUpperTabPane = new LeftUpperTabPane();
    leftBottomTabPane = new LeftBottomTabPane(this);
    leftPanelSp.getItems().addAll(leftUpperTabPane, leftBottomTabPane);
    
    /**
     * Initialize the chart tab pane for the drawing area.
     * This is the centralized area to display OHLC charts
     * If a new chart is opened, it will add a tab for this
     * OHLC that all the related indicator canvas will be
     * add into the same tab
     */
    chartTabPane = new ChartTabPane(this);
    
    applicationPane.setLeft(leftPanelSp);
    applicationPane.setCenter(chartTabPane);
    
    rightVBox = new VBox();
    rightVBox.setPrefWidth(40);
    Rectangle rect = new Rectangle();
    rect.setFill(Color.DARKCYAN);
    rect.widthProperty().bind(rightVBox.widthProperty());
    rect.heightProperty().bind(leftPanelSp.heightProperty());
    rightVBox.getChildren().addAll(rect);
    rightVBox.prefHeightProperty().bind(applicationPane.heightProperty());
    applicationPane.setRight(rightVBox);
    //Bottom Status Bars
    bottomStatusHBox = new HBox();
    Rectangle bottomRect = new Rectangle();
    bottomRect.setFill(Color.DARKCYAN);
    bottomRect.widthProperty().bind(applicationPane.widthProperty());
    bottomRect.setHeight(40);
    bottomStatusHBox.getChildren().add(bottomRect);
    applicationPane.setBottom(bottomStatusHBox);
    //Packup things
    VBox topBox = new VBox(appMenu, appToolbar);
    applicationPane.setTop(topBox); 
  
    Scene scene = new Scene(applicationPane, 880, 600);
    scene.getStylesheets().add("style/stylesheet.css");
    Image appIcon = new Image("icon/TAT_LOGO_BLUE.png");
    primaryStage.getIcons().add(appIcon);
    primaryStage.setIconified(true);
    primaryStage.setTitle("Technical Analysis Tool Version 1.0.0");
    primaryStage.setScene(scene);
    primaryStage.setMinWidth(400);
    primaryStage.setMinHeight(350);
    primaryStage.setMaximized(true);

    BindProperties();
    
    primaryStage.show();
    
    System.out.println("javafx.runtime.version: " + System.getProperty("javafx.runtime.version"));
}
 
开发者ID:ztan5,项目名称:TechnicalAnalysisTool,代码行数:81,代码来源:TatMain.java


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