How to setup JavaFX in IntelliJ IDEA 2023

แชร์
ฝัง
  • เผยแพร่เมื่อ 18 ก.ย. 2024

ความคิดเห็น • 80

  • @KENSOFTPH
    @KENSOFTPH  8 หลายเดือนก่อน +1

    Do you still use your phone to take pictures of your code when sharing it to others or a community? I've developed an application that will help you take pictures of your computer easily by just using a printscreen on your keyboard. Try my app now and let me know your thoughts -> www.kenshot.com

    • @brandonjablasone7544
      @brandonjablasone7544 5 หลายเดือนก่อน

      How can I add a FXML file

    • @KENSOFTPH
      @KENSOFTPH  5 หลายเดือนก่อน

      @@brandonjablasone7544 You can create a new FXML file in the resources folder of your project.

  • @iLuliBest
    @iLuliBest ปีที่แล้ว +13

    After 8 hours I found your tutorial and finally got everything to work. Thank you SOOO much 🛐

    • @KENSOFTPH
      @KENSOFTPH  ปีที่แล้ว +1

      That's great, and I'm so glad to hear that!

    • @silhouette999
      @silhouette999 ปีที่แล้ว

      I'm literally about to throw my laptop. Just starting this video.

    • @abdullahleghari
      @abdullahleghari ปีที่แล้ว +1

      I too found it after several hours of trying to run JavaFX with no luck. Thanks Kensoft PH

    • @eupedrada
      @eupedrada ปีที่แล้ว

      me too

  • @michaeljordanus87
    @michaeljordanus87 ปีที่แล้ว +3

    I spent 4 hours to stop receiving warnings about jdk difference and you saved my another 4 hours.
    Thank you.

    • @KENSOFTPH
      @KENSOFTPH  ปีที่แล้ว +2

      You're welcome! I'm glad to hear that I was able to help you save time.

  • @ha8536
    @ha8536 11 หลายเดือนก่อน +1

    Thanks so much, I was having huge issues trying to get JavaFX to work in IntelliJ and couldn't find resources to solve it but your tutorial made it easy to configure properly.

    • @KENSOFTPH
      @KENSOFTPH  11 หลายเดือนก่อน

      Great to hear! Happy coding :)

  • @WonderfulWolf_
    @WonderfulWolf_ 10 หลายเดือนก่อน

    Thank you so much!! I normally don't comment on videos. I just have to say I watched so many videos to configure this but this is the only one that worked for me!! You broke everything down into easy parts and explained it from the very beginning assuming someone is completely new to using JavaFX on their computer and what to install!

    • @KENSOFTPH
      @KENSOFTPH  10 หลายเดือนก่อน

      You're welcome. I'm glad to hear that the tutorial was helpful for you.

  • @huzaifaali3969
    @huzaifaali3969 4 หลายเดือนก่อน

    After a lot of hassle , I am finally able to solve y query . Thanks mate!

    • @KENSOFTPH
      @KENSOFTPH  4 หลายเดือนก่อน

      Glad it helped

  • @quocthai8388
    @quocthai8388 5 หลายเดือนก่อน +1

    after 4 hours I found your tutorial and finally everything works. Thank you bro

    • @KENSOFTPH
      @KENSOFTPH  5 หลายเดือนก่อน

      Glad to hear that

  • @StephanHaloftis
    @StephanHaloftis ปีที่แล้ว +2

    This is an excellent video. You did a great job. Keep making content like this.

    • @KENSOFTPH
      @KENSOFTPH  ปีที่แล้ว

      Thank you very much!

  • @smartdecoder
    @smartdecoder ปีที่แล้ว

    Perfect Tutorial
    Thanks

    • @KENSOFTPH
      @KENSOFTPH  ปีที่แล้ว +1

      You're welcome!

  • @jgricourt
    @jgricourt 8 หลายเดือนก่อน

    Great tutorial for beginners but cumbersome for real projects where Maven integration helps to grow better, however it works as well but it requires different steps (if anyone is interested).

    • @KENSOFTPH
      @KENSOFTPH  8 หลายเดือนก่อน

      Thanks for sharing!

  • @alejandro93102
    @alejandro93102 ปีที่แล้ว

    The best!!

  • @zoro_adi
    @zoro_adi 10 หลายเดือนก่อน

    SAVED MY life THANKSS

  • @aliesmaeili7433
    @aliesmaeili7433 ปีที่แล้ว

    thanks

    • @KENSOFTPH
      @KENSOFTPH  ปีที่แล้ว

      You're welcome!

  • @Emre-go3iw
    @Emre-go3iw ปีที่แล้ว

    Thank you so much

  • @w.gunther2016
    @w.gunther2016 ปีที่แล้ว

    Thank you!!!!

  • @rishabhtayal6607
    @rishabhtayal6607 ปีที่แล้ว

    Seriously life saviour :)

    • @KENSOFTPH
      @KENSOFTPH  ปีที่แล้ว +1

      So glad to hear that!

  • @munjena
    @munjena 10 หลายเดือนก่อน

    you save lives

  • @ravivarma9344
    @ravivarma9344 ปีที่แล้ว

    Thanks for making video on my request. Liked & Subscribed too.

    • @KENSOFTPH
      @KENSOFTPH  ปีที่แล้ว +1

      Thank you very much.

    • @ravivarma9344
      @ravivarma9344 ปีที่แล้ว

      @@KENSOFTPH Bro can you make videos on Scene Builder if you don't mind.

    • @KENSOFTPH
      @KENSOFTPH  ปีที่แล้ว

      What exactly do you mean?

    • @ravivarma9344
      @ravivarma9344 ปีที่แล้ว

      @@KENSOFTPH I'm talking about JavaFX Scene Builder tutorials

    • @KENSOFTPH
      @KENSOFTPH  ปีที่แล้ว

      Okay, noted in the next upload. I also used scene builder on some of my previous videos, you can also check that out.

  • @KishoreKumar-nx8pc
    @KishoreKumar-nx8pc ปีที่แล้ว

    Thank you so much bro

    • @KENSOFTPH
      @KENSOFTPH  ปีที่แล้ว

      You're welcome bro.

  • @suihiso9326
    @suihiso9326 ปีที่แล้ว

    Thanks a lot! Finally I found a clear explanation how to defeat javafx...

    • @KENSOFTPH
      @KENSOFTPH  ปีที่แล้ว

      :D Glad to hear that!

  • @beross1401
    @beross1401 ปีที่แล้ว

    thanks aloooot

    • @KENSOFTPH
      @KENSOFTPH  ปีที่แล้ว

      You're welcome!

  • @crackedboy701
    @crackedboy701 ปีที่แล้ว +1

    what should i install to fix the problem at 11:35?

    • @KENSOFTPH
      @KENSOFTPH  ปีที่แล้ว

      If you compiled your jar to java 19, you should also install java 19 on your computer.

  • @christopherpond3615
    @christopherpond3615 ปีที่แล้ว

    Thank you for this! can you make a tutorial also for vs code. Salamat!

    • @KENSOFTPH
      @KENSOFTPH  ปีที่แล้ว

      I'll try to make one next time. Salamat.

  • @kimminjeong9688
    @kimminjeong9688 ปีที่แล้ว

    When I go to edit configuration, it shows "no run configuration added." and "Add new... Insert". What could be the problem?

    • @KENSOFTPH
      @KENSOFTPH  ปีที่แล้ว

      It means, there is no Run/Dubug configuration has been added and you need to add it using the "add new" and choose "Application"

  • @soraregareth
    @soraregareth ปีที่แล้ว

    I feel so stupid not being able to set up the environment, and I haven't even started the code 😢. This vid is great though, thank you! Can I ask if the process is the same if we have been asked to not use any FXML files?
    Basically the ask is that we "do not use scene builder to build the GUI, this is an exercise in using a pre-existing Java-API." I am so confused by what that means exactly.

    • @KENSOFTPH
      @KENSOFTPH  ปีที่แล้ว

      If you have been asked not to use Scene Builder or FXML files to build the GUI and instead use a pre-existing Java API, it means that you will need to manually create the gui using java code. This could involve creating JavaFX classes, such as Button, Label, and TextField, and then arranging them on a JavaFX Scene object.
      Essentially, you will be building the gui using Java code instead of using a graphical tool like Scene Builder. This can be more challenging, but it can also provide a deeper understanding of how GUIs work and more control over the final result.
      Hope I answered your question right.

    • @soraregareth
      @soraregareth ปีที่แล้ว

      @@KENSOFTPH thanks for the reply. Would the environment you created in this vid allow me to do that?

    • @KENSOFTPH
      @KENSOFTPH  ปีที่แล้ว +1

      Yes.

  • @eupedrada
    @eupedrada ปีที่แล้ว +1

    import javafx.application.Application;
    import javafx.scene.Scene;
    import javafx.scene.control.Button;
    import javafx.scene.layout.StackPane;
    import javafx.stage.Stage;
    public class Main extends Application {
    public static void main(String[] args) {
    launch();
    }
    public void start(Stage stage) throws Exception{
    StackPane layout = new StackPane();
    Button button = new Button("Hello WOrld");
    button.setOnAction(actionEvent -> {
    System.out.println(System.getProperty("Java.version"));
    });
    layout.getChildren().add(button);
    Scene scene = new Scene(layout, 300, 300);
    stage.setScene(scene);
    stage.setTitle("JavaFX21");
    stage.show();
    }
    }

  • @mike_buianhminh9070
    @mike_buianhminh9070 ปีที่แล้ว

    why don't I have the path Javafx sdk in my setting (path variables). This mays affect the reason why I can't import Application into my code. How did you have that path and can you explain it further ? And I assumed that you downloaded the jdk zip file and then extracted it (since you didn't mention it in the video and I can't find the zip file on IntelliJ without extracting it).

    • @KENSOFTPH
      @KENSOFTPH  ปีที่แล้ว

      Yeah, I'm very sorry about that. I forgot to demonstrate how to import the JDK into the IDE, that was my mistake. I want to invite you on my discord to fix your issue, and we can also send screenshots for clarification. discord.gg/TBzqr7ze

  • @rodrigoch2291
    @rodrigoch2291 ปีที่แล้ว

    Hello, I have a problem executing .jar files built in my IDE and they don't want to open... but when I press RUN OR DEBUG in the IDE they open THE APP I'M MAKING...

    • @KENSOFTPH
      @KENSOFTPH  ปีที่แล้ว

      Hello, try running your jar file using the command line and if you follow this part: th-cam.com/video/IvsvjUq38Jc/w-d-xo.html you will understand your problem.

  • @aliimron5883
    @aliimron5883 9 หลายเดือนก่อน

    What different between javafx and javafx Maven?

    • @KENSOFTPH
      @KENSOFTPH  9 หลายเดือนก่อน

      JavaFX is a framework and Maven is used to build or package your JavaFx application.

    • @aliimron5883
      @aliimron5883 9 หลายเดือนก่อน

      @@KENSOFTPH so first step is setup maven before javafx in intelij ?

  • @xkaiyt5026
    @xkaiyt5026 ปีที่แล้ว

    hello is this better than the javafx maven archetype when creating project?

    • @KENSOFTPH
      @KENSOFTPH  ปีที่แล้ว

      Hello, I recommend the Maven build than this.

  • @msh57
    @msh57 ปีที่แล้ว

    Hi can you help me?. In the previously created project with the help of SceneBuilder, I did everything as in the video, but when I run the program in the console, it says the following:
    Error occurred during initialization of boot layer
    java.lang.module.FindException: Module program.passhelper1 not found

    • @KENSOFTPH
      @KENSOFTPH  ปีที่แล้ว

      Hello, I invite you to join my discord, and we'll see how I can help you with your problem. Here's the link: discord.gg/4MxbQ2DzQs

  • @tswepe2508
    @tswepe2508 ปีที่แล้ว

    "Error occurred during initialization of boot layer" how do we solve this problem in intellij

    • @KENSOFTPH
      @KENSOFTPH  ปีที่แล้ว

      There might be an issue with your VM options. I invite you to join my discord server to send screenshots, and we'll see how we can fix this issue. discord.gg/4MxbQ2DzQs

  • @mosestechtalk
    @mosestechtalk ปีที่แล้ว

    Please when I tried implementing your solution, I was getting
    "Error occurred during initialization of boot layer
    java.lang.module.FindException: Module JavaFxDemo not found"
    Please what do you suggest I do.

    • @KENSOFTPH
      @KENSOFTPH  ปีที่แล้ว

      I want to see more. Join here: discord.gg/4MxbQ2DzQs

    • @mariaradji
      @mariaradji ปีที่แล้ว

      i u found the solution please tell me

    • @KENSOFTPH
      @KENSOFTPH  ปีที่แล้ว

      @@mariaradji Join my discord, I'll help you.

  • @VUONGVANTHONG
    @VUONGVANTHONG ปีที่แล้ว

    hello , at Project Structure . I can't add global library , help me

    • @KENSOFTPH
      @KENSOFTPH  ปีที่แล้ว

      I invite you to join my discord: discord.gg/4MxbQ2DzQs

  • @ageingdragon8132
    @ageingdragon8132 ปีที่แล้ว

    dose it work with kotlin too??

    • @KENSOFTPH
      @KENSOFTPH  ปีที่แล้ว

      Actually I have no idea. I think you could try it.

  • @jamesschmames6416
    @jamesschmames6416 7 หลายเดือนก่อน

    Not much explanation of why he is doing things.