added hello world application

This commit is contained in:
aj 2018-04-03 00:51:07 -07:00
parent 771db2a281
commit f23180f903
2 changed files with 38 additions and 5 deletions

View File

@ -2,24 +2,28 @@ package sarsoo.fmframework.drive;
import javax.swing.JOptionPane;
import sarsoo.fmframework.fx.FmFrameworkApp;
import sarsoo.fmframework.gui.MainMenu;
import sarsoo.fmframework.util.Getter;
import sarsoo.fmframework.util.Reference;
public class Driver {
public static void main(String[] args) {
// public static void main(String[] args) {
// String username = JOptionPane.showInputDialog(null, "Enter User-Name");
// System.out.println(username);
// if (username != null) {
Reference.setUserName("sarsoo");
// Reference.setUserName("sarsoo");
// Reference.setUserName(username);
// System.out.println(Getter.getScrobbles(Reference.getUserName()));
MainMenu main = new MainMenu();
main.setVisible(true);
// MainMenu main = new MainMenu();
// main.setVisible(true);
// }
}
// }
}

View File

@ -0,0 +1,29 @@
package sarsoo.fmframework.fx;
import javafx.application.Application;
import javafx.stage.Stage;
import javafx.scene.text.Text;
import javafx.scene.Scene;
import javafx.scene.layout.StackPane;
public class FmFrameworkApp extends Application{
@Override
public void start(Stage stage) {
stage.setTitle("Hello World");
Text text = new Text("Hello World");
StackPane root = new StackPane();
root.getChildren().add(text);
Scene sc = new Scene(root, 300, 350);
stage.setScene(sc);
stage.show();
}
public static void main(String[] args) {
Application.launch(args);
}
}