package janelas;

import java.net.URL;

import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;

public class Principal extends Application{

	public static void main(String[] args) {
		launch(args);
	}
	
	@Override
	public void start(Stage primaryStage) throws Exception {
		URL url = this.getClass().getResource("/janelas/JanelaPrincipal.fxml");
		Parent principal = (Parent) FXMLLoader.load(url);
		Scene cena = new Scene(principal, 800, 600);
		primaryStage.setTitle("Janela Principal");
		primaryStage.setScene(cena);
		primaryStage.show();
	}
}
