added hello world application
This commit is contained in:
parent
771db2a281
commit
f23180f903
@ -2,24 +2,28 @@ package sarsoo.fmframework.drive;
|
|||||||
|
|
||||||
import javax.swing.JOptionPane;
|
import javax.swing.JOptionPane;
|
||||||
|
|
||||||
|
import sarsoo.fmframework.fx.FmFrameworkApp;
|
||||||
import sarsoo.fmframework.gui.MainMenu;
|
import sarsoo.fmframework.gui.MainMenu;
|
||||||
import sarsoo.fmframework.util.Getter;
|
import sarsoo.fmframework.util.Getter;
|
||||||
import sarsoo.fmframework.util.Reference;
|
import sarsoo.fmframework.util.Reference;
|
||||||
|
|
||||||
public class Driver {
|
public class Driver {
|
||||||
|
|
||||||
public static void main(String[] args) {
|
// public static void main(String[] args) {
|
||||||
// String username = JOptionPane.showInputDialog(null, "Enter User-Name");
|
// String username = JOptionPane.showInputDialog(null, "Enter User-Name");
|
||||||
// System.out.println(username);
|
// System.out.println(username);
|
||||||
// if (username != null) {
|
// if (username != null) {
|
||||||
Reference.setUserName("sarsoo");
|
// Reference.setUserName("sarsoo");
|
||||||
// Reference.setUserName(username);
|
// Reference.setUserName(username);
|
||||||
|
|
||||||
// System.out.println(Getter.getScrobbles(Reference.getUserName()));
|
// System.out.println(Getter.getScrobbles(Reference.getUserName()));
|
||||||
|
|
||||||
MainMenu main = new MainMenu();
|
// MainMenu main = new MainMenu();
|
||||||
main.setVisible(true);
|
// main.setVisible(true);
|
||||||
|
// }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// }
|
// }
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
29
fmframework/src/sarsoo/fmframework/fx/FmFrameworkApp.java
Normal file
29
fmframework/src/sarsoo/fmframework/fx/FmFrameworkApp.java
Normal 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);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user