Advertisement
Guest User

Untitled

a guest
May 12th, 2020
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.62 KB | None | 0 0
  1. // Controller.java
  2. public class Controller {
  3.     @FXML
  4.     public MenuButton sendBtn;
  5.  
  6.  
  7.     @FXML
  8.     public void initialize(){
  9.     }
  10. }
  11.  
  12. //Main.java
  13. public class Main extends Application {
  14.     @Override
  15.     public void start(Stage primaryStage) throws Exception{
  16.         Parent root = FXMLLoader.load(getClass().getResource("sample.fxml"));
  17.         primaryStage.setTitle("title");
  18.         primaryStage.setScene(new Scene(root, 350, 400));
  19.         primaryStage.show();
  20.     }
  21.  
  22.  
  23.     public static void main(String[] args)
  24.     {
  25.        
  26.         launch(args);
  27.        
  28.      // sendBtn.setText("new !"); ??
  29.  
  30.     }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement