JavaFX Java GUI Tutorial – 1 – Creating a Basic Window

[ad_1]
Facebook –
GitHub –
Google+ –
LinkedIn –
reddit –
Support –
thenewboston –
Twitter –


Posted

in

by

Tags:

Comments

26 responses to “JavaFX Java GUI Tutorial – 1 – Creating a Basic Window”

  1. Sreenish A. J Prabhu Avatar

    have u created any voice to text application in java fx?

  2. budi haryono Avatar

    hi πŸ™‚ can you help me?? how to use button.performclick() like c# in javaFx???

  3. iKostanCom Avatar

    Hello there. It looks to me that Stage is kind a similar to JFrame and the Scene is more like a Pane… is that correct?

  4. Daniel Yoon Avatar

    fuck me ive almost got the hang of swing only to figure out swing is getting replaced by javafx

  5. John Mayk Brito de Lima Avatar

    Don't you use SceneBuilder?

  6. Manivarnan Padmanabhan Avatar

    Wonderful tutorial..excellent explanation..

  7. Em Kej Avatar

    Daaaaamn…. I started studying Java like a month ago, this is totally new to me but I actually understood a lot and learned a lot from that video. Great job! Keep it going! πŸ™‚

  8. Solomon Taye Desta Avatar

    would you make a tutorial using JavaFX Scene builder ?

  9. Robert P Avatar

    Hello friend, nice video)

    But i have got some problem))))
    My button does not visible.))

    what is the problem with this?
    PS
    My Code
    import javafx.application.Application;
    import javafx.fxml.FXMLLoader;
    import javafx.scene.Parent;
    import javafx.scene.Scene;
    import javafx.scene.control.Button;
    import javafx.scene.layout.StackPane;
    import javafx.stage.Stage;

    public class Main extends Application {

    Button button;
    Stage window;

    @Override
    public void start(Stage primaryStage) throws Exception{
    Parent root = FXMLLoader.load(getClass().getResource("sample.fxml"));
    primaryStage.setTitle("Hello World");

    button = new Button();
    button.setText("Click");

    StackPane layout = new StackPane();
    layout.getChildren().add(button);
    button.setVisible(true);

    primaryStage.setScene(new Scene(root, 300, 275));
    primaryStage.show();
    }

    public static void main(String[] args) {
    launch(args);

    }
    }

  10. MineClashTV Avatar

    I get an error compiling this thing: "Error:(9, 27) java: illegal character: 'ufeff'". import javafx.scene.Scene;

  11. Annabella LeRoux Avatar

    "Clam jammed"…Bahahahahaaaa!!!! Thank you for that little piece of awesome in my day!!! Great videos! Thank you!! πŸ™‚

  12. TNTSquid Avatar

    You finally use IntelliJ xd

  13. AZ Avatar

    you are the best

  14. Sledno1 Avatar

    Amazing tutorial, very easy to understand and also your english is quite simple for non native english speakers (like me). Congratulations and thanks for the contribution πŸ™‚

  15. cdc1287 Avatar

    Fantastic video. Thank you for this!

  16. Asymptote Avatar

    import javafx.*

    that will import the whole damn thing…. πŸ™‚

  17. Abir Mahmood Abir Avatar

    You are awesome Bucky πŸ™‚

  18. Adrian Scarlatescu Avatar

    I can't believe that.
    Just searched on YouTube "JavaFX tutorial" and the first video shown up is from the same guy who learned me about Android programming.
    Very nice job Bucky.
    Thank you!

  19. Travis D Avatar

    Hey man can you make a tutorial for a simple game in JavaFX. I follow your Swing tutorial but I just realized it's dead.

  20. Brittny May Avatar

    holy shit this made so much more sense than how my professor showed us!! i instantly understood it, thank you!!

  21. Nick Valentine Avatar

    How to "launch" it in other class(not in main)? Cause it takes "args" for launching

  22. Stormtrooper Elite Avatar

    hey i remember this voice. I learned Java from you back in 2013 πŸ™‚

  23. Stepan Lenevich Avatar

    Awesome demo. Please, don't apologize "I go over this very quick". We can replay the video, download and test example, etc. If nothing helps, we will ask a question in comments.

  24. Donal Moloney Avatar

    why do u write Button button at the top instead of initializing it all in one sentence below

  25. Elias Dolinsek Avatar

    Awesome video! Best JavaFX tutorial I've found!

Leave a Reply

Your email address will not be published. Required fields are marked *