29 lines
861 B
Java
29 lines
861 B
Java
package ley.jmclient;
|
|
|
|
import javafx.application.Application;
|
|
import javafx.fxml.FXMLLoader;
|
|
import javafx.scene.Parent;
|
|
import javafx.scene.Scene;
|
|
import javafx.scene.image.Image;
|
|
import javafx.stage.Stage;
|
|
|
|
public class Main extends Application {
|
|
|
|
@Override
|
|
public void start(Stage primaryStage) throws Exception{
|
|
FXMLLoader loader = new FXMLLoader(getClass().getResource("/main.fxml"));
|
|
Parent root = loader.load();
|
|
Controller con = loader.getController();
|
|
con.setHostServices(getHostServices());
|
|
primaryStage.setTitle("JensMemes Upload Client");
|
|
primaryStage.setScene(new Scene(root, 700, 275));
|
|
primaryStage.getIcons().add(new Image(getClass().getResourceAsStream("/icon.png")));
|
|
primaryStage.show();
|
|
}
|
|
|
|
|
|
public static void main(String[] args) {
|
|
launch(args);
|
|
}
|
|
}
|