List of usage examples for javafx.stage StageStyle UNDECORATED
StageStyle UNDECORATED
To view the source code for javafx.stage StageStyle UNDECORATED.
Click Source Link
From source file:Main.java
@Override public void start(Stage stage) { stage.initStyle(StageStyle.UNDECORATED); Text text = new Text("Transparent!"); text.setFont(new Font(40)); VBox box = new VBox(); box.getChildren().add(text);/*from w w w . j a v a 2s . c o m*/ final Scene scene = new Scene(box, 300, 250); scene.setFill(null); stage.setScene(scene); stage.show(); }
From source file:Main.java
@Override public void start(Stage stage) { stage.initStyle(StageStyle.UNDECORATED); Text text = new Text("Transparent!"); text.setFont(new Font(40)); VBox box = new VBox(); box.getChildren().add(text);/*from w w w . j a va 2 s .co m*/ final Scene scene = new Scene(box, 300, 250); scene.setFill(null); stage.setScene(scene); stage.show(); scene.setCursor(Cursor.WAIT); }
From source file:com.toyota.carservice.SplashScreen.java
@Override public void start(Stage stage) throws Exception { Parent root = FXMLLoader.load(getClass().getResource("/com/toyota/carservice/view/formSplash.fxml")); Scene scene = new Scene(root); stage.setTitle("Connection to database..."); ApplicationContext appContex = config.getInstance().getApplicationContext(); Resource resource = appContex.getResource("classpath:com/toyota/carservice/img/kallatoyota.png"); stage.getIcons().add(new Image(resource.getURI().toString())); stage.setScene(scene);//from w ww. j a va 2 s . c om stage.initStyle(StageStyle.UNDECORATED); stage.show(); }
From source file:com.scndgen.legends.windows.WindowAbout.java
public WindowAbout() { super(StageStyle.UNDECORATED); try {/*from ww w . j a va2 s . com*/ about = IOUtils.toString( Thread.currentThread().getContextClassLoader().getResourceAsStream("text/txtAbout.txt"), Charset.defaultCharset()); licenseText = IOUtils.toString( Thread.currentThread().getContextClassLoader().getResourceAsStream("text/txtLicense.txt"), Charset.defaultCharset()); changeLog = IOUtils.toString( Thread.currentThread().getContextClassLoader().getResourceAsStream("text/txtChangelog.txt"), Charset.defaultCharset()); sourceCode = IOUtils.toString( Thread.currentThread().getContextClassLoader().getResourceAsStream("text/txtSourceCode.txt"), Charset.defaultCharset()); } catch (Exception ex) { ex.printStackTrace(System.err); } txtAbout = new TextArea(""); txtAbout.setText(about); txtAbout.setEditable(false); txtAbout.setWrapText(true); scrlAbout = new ScrollPane(txtAbout); txtLicense = new TextArea(""); txtLicense.setText(licenseText); txtLicense.setEditable(false); txtLicense.setWrapText(true); scrlLicense = new ScrollPane(txtLicense); txtChangeLog = new TextArea(""); txtChangeLog.setText(changeLog); txtChangeLog.setEditable(false); txtChangeLog.setWrapText(true); scrlChangeLog = new ScrollPane(txtChangeLog); txtSourceCode = new TextArea(""); txtSourceCode.setText(sourceCode); txtSourceCode.setEditable(false); txtSourceCode.setWrapText(true); scrlSourceCode = new ScrollPane(txtSourceCode); Tab tabAbout = new Tab("About"); tabAbout.setClosable(false); Tab tabLicense = new Tab("License"); tabLicense.setClosable(false); Tab tabDevelop = new Tab("Develop"); tabDevelop.setClosable(false); Tab tabChangelog = new Tab("Changelog"); tabChangelog.setClosable(false); tabAbout.setContent(scrlAbout); tabLicense.setContent(scrlLicense); tabDevelop.setContent(scrlSourceCode); tabChangelog.setContent(scrlChangeLog); tabPane = new TabPane(); tabPane.getTabs().add(tabAbout); tabPane.getTabs().add(tabLicense); tabPane.getTabs().add(tabChangelog); tabPane.getTabs().add(tabDevelop); btnOk = new Button("OK"); btnOk.setOnAction(event -> { close(); }); VBox vBox = new VBox(); vBox.setSpacing(4); vBox.getChildren().add(tabPane); vBox.getChildren().add(btnOk); setTitle(Language.get().get(57)); setScene(new Scene(vBox)); setResizable(false); initModality(Modality.APPLICATION_MODAL); show(); }
From source file:net.sf.anathema.framework.presenter.action.about.AnathemaAboutAction.java
private Stage initializeDialogStage(Scene scene) { final Stage aboutStage = new Stage(); aboutStage.initStyle(StageStyle.UNDECORATED); aboutStage.initOwner(stage);//from w w w .j a v a 2 s.com aboutStage.setResizable(false); aboutStage.setTitle(resources.getString("Help.AboutDialog.Title")); aboutStage.setScene(scene); initCloseOnEscape(aboutStage); return aboutStage; }
From source file:com.toyota.carservice.controller.SwitchController.java
@FXML private void aksiKelolaData(ActionEvent event) { config2 c = new config2(); c.newStage(stage, lblClose, "/com/toyota/carservice/view/formCarMenu.fxml", "Kelola Data Informasi Service", true, StageStyle.UNDECORATED, false); }
From source file:org.openwms.client.fx.core.spring.CoreViewConfiguration.java
@Bean @Scope("prototype") public FXMLDialog errorDialog() { return new FXMLDialog(errorController(), getClass().getResource("/client/Error.fxml"), getPrimaryStage(), StageStyle.UNDECORATED); }
From source file:com.toyota.carservice.controller.SwitchController.java
@FXML private void aksiInformasiService(ActionEvent event) { config2 c = new config2(); c.newStage(stage, lblClose, "/com/toyota/carservice/view/formServiceInformation.fxml", "Informasi Data Service", true, StageStyle.UNDECORATED, false); }
From source file:herudi.controller.controllSplash.java
private void longStart() { Service<ApplicationContext> service = new Service<ApplicationContext>() { @Override/* www .ja v a 2 s .co m*/ protected Task<ApplicationContext> createTask() { return new Task<ApplicationContext>() { @Override protected ApplicationContext call() throws Exception { ApplicationContext appContex = config.getInstance().getApplicationContext(); int max = appContex.getBeanDefinitionCount(); updateProgress(0, max); for (int k = 0; k < max; k++) { Thread.sleep(50); updateProgress(k + 1, max); } return appContex; } }; } }; service.start(); service.setOnRunning((WorkerStateEvent event) -> { new FadeInLeftTransition(lblWelcome).play(); new FadeInRightTransition(lblRudy).play(); new FadeInTransition(vboxBottom).play(); }); service.setOnSucceeded((WorkerStateEvent event) -> { config2 config = new config2(); config.newStage(stage, lblClose, "/herudi/view/login.fxml", "Sample Apps", true, StageStyle.UNDECORATED, false); }); }
From source file:com.toyota.carservice.controller.SplashController.java
private void longStart() { Service<ApplicationContext> service = new Service<ApplicationContext>() { @Override//from w w w . j av a 2s .c o m protected Task<ApplicationContext> createTask() { return new Task<ApplicationContext>() { @Override protected ApplicationContext call() throws Exception { ApplicationContext appContex = config.getInstance().getApplicationContext(); int max = appContex.getBeanDefinitionCount(); updateProgress(0, max); System.out.println(PathUtil.getRootPath()); File file = new File(PathUtil.getRootPath()); if (!file.exists()) { file.mkdir(); } if (max < 50) { max = 50; } for (int k = 0; k < max; k++) { Thread.sleep(50); updateProgress(k + 1, max); } return appContex; } }; } }; service.start(); service.setOnRunning((WorkerStateEvent event) -> { new FadeInLeftTransition(lblWelcome).play(); new FadeInRightTransition(lblRudy).play(); new FadeInTransition(vboxBottom).play(); }); service.setOnSucceeded((WorkerStateEvent event) -> { config2 config = new config2(); config.newStage(stage, lblClose, "/com/toyota/carservice/view/formSwitchMode.fxml", "Aplikasi Informasi Service", true, StageStyle.UNDECORATED, false); }); }