Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

javafx main class

import javafx.application.Application;
import javafx.stage.Stage;
import javafx.scene.Scene;
import javafx.scene.layout.BorderPane;

public class Main extends Application {
	@Override
	public void start(Stage primaryStage) {
		try {
			BorderPane root = new BorderPane();
		
			Scene scene = new Scene(root,400,400);
			scene.getStylesheets().add(getClass().getResource("application.css").toExternalForm());
			primaryStage.setScene(scene);
			primaryStage.show();
		} catch(Exception e) {
			e.printStackTrace();
		}
	}
	
	public static void main(String[] args) {
		launch(args);
	}
}
Comment

PREVIOUS NEXT
Code Example
Java :: redondear a 2 decimales java 
Java :: java extract zip 
Java :: hashmap to list java 
Java :: android kill other app programmatically by package 
Java :: arraylist to array java 
Java :: abs in java 
Java :: useColorScheme returning light 
Java :: get thumbnail from video in android 
Java :: hadoop-master error java_home is not set and could not be found 
Java :: java timer 
Java :: java mockito any string import 
Java :: java read file 
Java :: threads array java 
Java :: java generate uuid 
Java :: queue in java 
Java :: java run cmd 
Java :: java print formatted string 
Java :: variables java 
Java :: How to draw Bezier Curve in Android 
Java :: Could not determine java version from 
Java :: check stack empty java 
Java :: loop through java object 
Java :: java end scripting 
Java :: esponente in java 
Java :: mono command to compile C# library code 
Java :: download File java from website 
Java :: math.min java 
Java :: how to turna date into a LocalDateTime java 
Java :: java intent extras 
Java :: GenerationTarget encountered exception accepting command : Error executing DDL 
ADD CONTENT
Topic
Content
Source link
Name
1+9 =