Java Reference
In-Depth Information
public class DevelopingADialog extends Application {
static Stage LOGIN_DIALOG;
static int dx = 1;
static int dy = 1;
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
Application.launch(args);
}
private static Stage createLoginDialog(Stage parent,
boolean modal) {
if (LOGIN_DIALOG != null) {
LOGIN_DIALOG.close();
}
return new MyDialog(parent, modal, "Welcome to
JavaFX!");
}
@Override
public void start(final Stage primaryStage) {
primaryStage.setTitle("Chapter 14-16 Developing
a Dialog");
Group root = new Group();
Scene scene = new Scene(root, 433, 312,
Color.WHITE);
MenuBar menuBar = new MenuBar();
menuBar.prefWidthProperty().bind(primaryStage.widthProperty());
Menu menu = new Menu("Home");
// add change password menu itme
MenuItem newItem = new MenuItem("Change
Password", null);
Search WWH ::




Custom Search