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


Java StageStyle.DECORATED属性代码示例

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


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

示例1: loadTopsoilWindow

public void loadTopsoilWindow(double x, double y) {

        Pane topsoilPlotUI = topsoilPlot.initializePlotPane();

        Scene topsoilPlotScene = new Scene(topsoilPlotUI, 600, 600);
        topsoilPlotWindow = new Stage(StageStyle.DECORATED);
        // center on Squid
        topsoilPlotWindow.setX(x);
        topsoilPlotWindow.setY(y);
        topsoilPlotWindow.setResizable(true);
        topsoilPlotWindow.setScene(topsoilPlotScene);
        topsoilPlotWindow.setTitle("Topsoil Plot");

        topsoilPlotWindow.requestFocus();
        topsoilPlotWindow.initOwner(null);
        topsoilPlotWindow.initModality(Modality.NONE);

        topsoilPlotWindow.show();

    }
 
开发者ID:CIRDLES,项目名称:Squid,代码行数:20,代码来源:TopsoilWindow.java

示例2: print

public void print()
{
	Printer printer = Printer.getDefaultPrinter();
       Stage stage = new Stage(StageStyle.DECORATED);            
       PrinterJob job = PrinterJob.createPrinterJob(printer);
           if (job != null) {                    
               boolean showDialog = job.showPageSetupDialog(stage);
               if (showDialog) {                        
               	myPrint.setScaleX(0.46);
               	myPrint.setScaleY(0.46);
               	myPrint.setTranslateX(-252);
               	myPrint.setTranslateY(-110);
               boolean success = job.printPage(myPrint);
                   if (success) {
                        job.endJob(); 
                   } 
                   myPrint.setTranslateX(0);
                   myPrint.setTranslateY(0);               
                   myPrint.setScaleX(1.0);
                   myPrint.setScaleY(1.0); 
               }
           }
}
 
开发者ID:mikemacharia39,项目名称:gatepass,代码行数:23,代码来源:DailyGenerated.java

示例3: showInDialog

private void showInDialog(javafx.event.ActionEvent event) {
    //("SpecificationTableView.SpecificationTableView");
    Stage s = new Stage(StageStyle.DECORATED);
    s.setTitle(getText());
    s.initModality(Modality.APPLICATION_MODAL);
    s.setMinHeight(640);
    s.setMinHeight(480);
    s.setFullScreen(true);
    //s.setMaximized(true);
    //TableView<HybridRow> newView = new TableView<>(tableView.getItems());
    setContent(new Label("opened externally"));
    BorderPane root = new BorderPane(tableView);
    ButtonBar bb = new ButtonBar();
    root.setTop(bb);
    s.setScene(new Scene(root));
    Button yesButton = new Button("Close");
    ButtonBar.setButtonData(yesButton, ButtonBar.ButtonData.CANCEL_CLOSE);
    bb.getButtons().addAll(yesButton);
    yesButton.setOnAction(e -> s.hide());
    s.showAndWait();
    setContent(tableView);
}
 
开发者ID:VerifAPS,项目名称:stvs,代码行数:22,代码来源:SpecificationTableView.java

示例4: showInDialog

private void showInDialog(javafx.event.ActionEvent event) {
    Stage s = new Stage(StageStyle.DECORATED);
    s.setTitle(tp.getText());
    s.initModality(Modality.APPLICATION_MODAL);
    s.setMinHeight(640);
    s.setMinHeight(480);
    //s.setFullScreen(true);
    s.setMaximized(true);
    //TableView<HybridRow> newView = new TableView<>(tableView.getItems());
    BorderPane root = new BorderPane(content);
    tp.setContent(new Label("opened externally"));
    ButtonBar bb = new ButtonBar();
    root.setTop(bb);
    s.setScene(new Scene(root));
    Button yesButton = new Button("Close");
    ButtonBar.setButtonData(yesButton, ButtonBar.ButtonData.CANCEL_CLOSE);
    bb.getButtons().addAll(yesButton);
    yesButton.setOnAction(e -> s.hide());
    s.showAndWait();
    tp.setContent(content);
}
 
开发者ID:VerifAPS,项目名称:stvs,代码行数:21,代码来源:TimingDiagramCollectionView.java

示例5: start

@Override
public void start(final Stage primaryStage) throws Exception
{
    MineIDE.primaryStage = new Stage(StageStyle.DECORATED);
    MineIDE.primaryStage.getIcons().add(new Image(Constant.IMG_DIR + "icon.png"));
    MineIDE.primaryStage.setTitle(Constant.APP_NAME);

    // stage.setTitle(Gui.mineIdeInfo.getAppName() + " v" +
    // Gui.mineIdeInfo.getAppVersion() + " " + "Forge "
    // + Gui.mineIdeInfo.getForgeVersion());

    final GuiMain main = GuiMain.getInstance();
    main.init();
    main.setOldPreferences();
    // MineIDE.primaryStage.setMaximized(true);

    main.show(MineIDE.primaryStage);
}
 
开发者ID:Leviathan-Studio,项目名称:MineIDE,代码行数:18,代码来源:MineIDE.java

示例6: showOptionsMenu

@Override
public void showOptionsMenu()
{
	List<Submittable> submittables = new ArrayList<>();
	Map<OptionSection, Pane> optionsMenuModel = createOptionsMenuModel(submittables);
	
	OptionsPane optionsPane = new OptionsPane(optionsMenuModel);
	Scene popupScene = new Scene(optionsPane);
	
	Stage popupWindow = new Stage(StageStyle.DECORATED);
	popupWindow.setTitle("Settings");
	popupWindow.initModality(Modality.WINDOW_MODAL);
	popupWindow.initOwner(stage);
	popupWindow.setScene(popupScene);
	
	popupWindow.setMinWidth(stage.getScene().getWidth() / 2);
	popupWindow.setMinHeight(stage.getScene().getHeight()
			- (stage.getScene().getHeight() / 3));
	
	popupScene.getStylesheets().addAll(stage.getScene().getStylesheets());
	
	optionsPane.setOkAction(() -> {
		if (optionsMenuOkSelected(submittables))
		{
			submittables.forEach(submittable -> submittable.submit());
			popupWindow.close();
		}
	});
	optionsPane.setCancelAction(() -> {
		popupWindow.close();
	});
	
	popupWindow.setOnCloseRequest((windowEvent) -> {
		popupWindow.close();
	});
	popupWindow.show();
}
 
开发者ID:dhawal9035,项目名称:WebPLP,代码行数:37,代码来源:Main.java

示例7: showMainStage

private void showMainStage() {        
    mainStage = new Stage(StageStyle.DECORATED);
    mainStage.setTitle("Chess Bot");
    mainStage.setResizable(false);
    mainStage.setAlwaysOnTop(true);
    mainStage.setOnCloseRequest(event -> {
        Platform.exit();
        System.exit(0);
    });
    mainStage.getIcons().add(new Image(APPLICATION_ICON));
    mainStage.setScene(new Scene(PageResources.getRoot(PagePath.PATH_SCREEN_APPLICATION), 208, 491));
    mainStage.show();
}
 
开发者ID:mhusam,项目名称:ChessBot,代码行数:13,代码来源:ChessBotAppSplash.java

示例8: loadWindow

void loadWindow(String loc,String title) throws IOException
{
	Parent parent=FXMLLoader.load(getClass().getResource(loc));
	Stage stage=new Stage(StageStyle.DECORATED);
	stage.setTitle(title);
	stage.setScene(new Scene(parent));
	stage.show();
}
 
开发者ID:mevlanayalcin,项目名称:KutuphaneOtomasyonSistemi,代码行数:8,代码来源:AnaPencereController.java

示例9: hakkimda

@FXML
private void hakkimda(ActionEvent event) throws IOException
{
	Parent parent=FXMLLoader.load(getClass().getResource("/AnaPencere/Hakkimda.fxml"));
	Stage stage=new Stage(StageStyle.DECORATED);
	stage.setTitle("Hakk�nda");
	stage.setScene(new Scene(parent));
	stage.show();
}
 
开发者ID:mevlanayalcin,项目名称:KutuphaneOtomasyonSistemi,代码行数:9,代码来源:AnaPencereController.java

示例10: loadMain

void loadMain() throws IOException
{
	Parent parent=FXMLLoader.load(getClass().getResource("/AnaPencere/AnaPencere.fxml"));
	Stage stage=new Stage(StageStyle.DECORATED);
	stage.setTitle("Ana Men�");
	stage.setScene(new Scene(parent));
	stage.show();
}
 
开发者ID:mevlanayalcin,项目名称:KutuphaneOtomasyonSistemi,代码行数:8,代码来源:Controller.java

示例11: start

@Override
public void start(Stage primaryStage) throws Exception {
    URL resource = getClass().getClassLoader().getResource("layouts/home_page.fxml");
    if (resource != null) {
        FXMLLoader fxmlLoader = new FXMLLoader(resource);
        fxmlLoader.setResources(ResourceBundle.getBundle("bundles.strings", Locale.getDefault()));
        Parent root = fxmlLoader.load();
        Stage stage = new Stage(StageStyle.DECORATED);
        stage.setMinWidth(640);
        stage.setMinHeight(400);
        stage.setScene(new Scene(root, 640, 400));
        stage.show();
    }
}
 
开发者ID:satispay,项目名称:in-store-api-java-sdk,代码行数:14,代码来源:SatispayInStoreApplication.java

示例12: ModalDialog

public ModalDialog(Modal controller, URL fxml, Window owner, ResourceBundle bundle) {
    this(controller, fxml, owner, StageStyle.DECORATED, Modality.APPLICATION_MODAL, bundle);
}
 
开发者ID:stancalau,项目名称:springfx,代码行数:3,代码来源:ModalDialog.java

示例13: getPreferredStageStyle

/**
 * The preferred StageStyle for the scene. The preferred style is not guaranteed due to JavaFX toolkit
 * implementation.
 * @return the preferred StageStyle or StageStyle.DECORATED by default.
 */
default StageStyle getPreferredStageStyle() { return StageStyle.DECORATED; }
 
开发者ID:jtkb,项目名称:flexfx,代码行数:6,代码来源:SceneService.java


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