27 lines
587 B
Java
27 lines
587 B
Java
package oysteikt.calc;
|
|
|
|
import javafx.application.Application;
|
|
import javafx.fxml.FXMLLoader;
|
|
import javafx.scene.Parent;
|
|
import javafx.scene.Scene;
|
|
import javafx.stage.Stage;
|
|
|
|
import java.io.IOException;
|
|
|
|
/**
|
|
* JavaFX App
|
|
*/
|
|
public class CalcApp extends Application {
|
|
|
|
@Override
|
|
public void start(Stage stage) throws IOException {
|
|
FXMLLoader fxmlLoader = new FXMLLoader(this.getClass().getResource("Calc.fxml"));
|
|
Parent parent = fxmlLoader.load();
|
|
stage.setScene(new Scene(parent));
|
|
stage.show();
|
|
}
|
|
|
|
public static void main(String[] args) {
|
|
launch();
|
|
}
|
|
} |