How to Build a Swing GUI with IntelliJ IDEA
HTML-код
- Опубликовано: 5 фев 2025
- In this video lesson, we create a celsius converter GUI app by adapting The Java Tutorials "Lesson: Learning Swing with the NetBeans IDE" for the Intelli J IDEA IDE.
Source code available at: github.com/gsp...
Check out my blog at ginasprint.com/
I have a very low level of English, but thanks to the fact that you have explained this tutorial very clearly and slowly, I have been able to do it almost as if it were in my mother tongue.
THANKS
You are an awesome teacher. I am learning java in a computer science program, and this week we are learning GUI programming. So, this was very helpful indeed! If you make anymore tutorials for java, I am now subscribed and will definitely watch them all. 🙏🏽
great tutorial! Didn't even realize that using IntelliJ requires some different steps than certain tutorials prescribe. Favorite part is at 8:11
Thank you soo much please didn’t stop making videos you are really a good teacher 👩🏫
Hello Gina. Your video is really good, thanks for sharing. I just watched your video because I have to make a project using Swing, and I wonder where the initialization of the variables is located, as in the source code I see the identifiers for the JPanel and JButton, but not the "new" for the initialization.
This is a brilliant video - much better than the resources on IntelliJ for JFrame!
Thank you very much for this simple yet amazing demonstration.
Ginaaaaa, thank you so much, you're the best!!! I was trying to make a simple "rule of three" app, and with your video, I was able to finish, thanks!
Thank you so much for this! Super helpful!
Hi miss,
this is very helpful and your voice is so relaxing.
Hi Gina, thank you very ,much for easy explanation.Greetings from Russia.
Privet! Thanks for watching!
@@GinaSprint :)
Your keyboard sounds amazing. Also thanks for the tutorial
Thanks, it's a macbook pro and I agree, I like the clicky sound it makes in the videos. Thanks for watching!
I didn't know how can I thank you
I was searching about it for 2 days
really take my heart I don't need it
Glad I could help! Let me know if there are other tutorials you'd like to see from my channel :)
It is preferable that the lecture be prepared before its explanation. Try not to move from one window to another during the explanation
Your language is understandable to non-English speakers like me (Italian) Thank you
More lessons we need :)
TYSM 🥰. I've been struggling for some days to make a GUI in IntelliJ
Sorry for this stupid question, but I really don`t understand how you got it running with JPanel variable not initialized... I got a "contentPane cannot be set to null" Exception.
IntelliJ's UI designer essentially creates extra "invisible" code below the main class that initializes all of those fields. Are you sure you clicked New -> Swing UI Designer -> GUI Form _instead_ of New -> Class?
Also, this isn't important to the question, but I found it interesting that you can view this "invisible code" by going to File -> Settings -> GUI Designer -> Generate GUI into, and changing that from "Binary class files" to "Java source code."
@@polymetric2614 thanks a lot for your answer. I didn't have time to come and analyse this problem. But, I can see what you explain.
Mine give me the error "forms: Class to bind does not exist: mainPanel" the first time I try to run the program at 9:09
You are a very good teacher!
You deserve more subscribers, tysm ❤ from Bangladesh
YOU PUBLISHED THIS ON THE DAY GEOMETRY DASH TURNED 6!!!
Me to her Keyboard: Be strong, Life is hard hiting
this is so good, nice work
Thanks for an amazing tutorial !!!!!
I really got something from this video, a couple of weeks ago.. I'm now ready for the next stage.. making a form that looks 'pretty' ot at least professional
Thank you ! I really had trouble with this feature but u helped me alot!! Thx again
Thx Gina. I love you
I'm ta 8:43 aand my code basically looks the same as it does on th video, but idea is telling me that there's an eror in the line where I pass the title to CelciusConverterGUI saying that it's expecting 0 parameters but is getting one???
Maybe try cleaning the project and re building ?
@@GinaSprint yeah I realised after a long think that I had named my GUI constructor slightly wrong. My typos are gonna be the end of me. Thanks for the video!
such a helpful video thank youu
Awesome, thanks! from costa rica, you help me a lot with this
Esta picha de IDE es una paridera con el diseño de GUI. El ide es monstruoso pero que lastima la mierda de diseñador que trae.
So, trying to follow this, I am immediately stopped at trying to add a form when the option "Swing UI Designer" is not selectable from my NEW option for a new src item. What can I be doing wrong already?
Great video. Thank you!
hola, como puedo mover libremente el boton en el formulario??????
Could you tell me how to change a width of columns? I've tried to do it by dragging arrows which are above panel but it doesnt work
Great tutorial👍
i created labels and text field but it is not showing in JFrame output
however title run properly kindly guided me
I have a weird problem, even importing swing typing "import javax.swing.*" it doesn't import it, the whole phrase goes gray (similar to what happens to comments), and if I try to create jframes or panels etc, it gives me always red warnings
Same problem. Did you find a solution?
@@alexanderbrown1578 i found just that android doesn't use swing library. But there's to say that i setted intellij to develop apps (probably on android) following some tutorial, before i tryed to import swing so may be related to that
How to set the title? JFrame frame = new app( title: "xyz"); title: is red :(
This helped me so much
Do you not to run it inside the `EventQueue.InvokeLater(() -> {});` callback?
Thanks! Just what I needed
How to add JMenu from designer? Looks like there is no such JMenu .
ya lo voy viendo como 6 veces.. solo pro el sonido del teclado, es hermoso
Thank you so much for this!
TIP: in IntelliJ, just type main, then press Tab. To easily generate the full Java main method
Great tutorial
Thank you very much! Great video!
Thanks sis this was helpful!
Thanks Ginja.
Do you have any videos on eclipse gui.
Thanks love ❤️😘😘
I'm sorry, I don't! I used to use Eclipse but I instead now use IntelliJ, so I won't be making any Eclipse videos any time soon. Happy coding!
@@GinaSprint Thanks Ginja.
These are some timestamps I stopped the video to rewatch it and write the code alongside her
3:32
9:26
12:47
Thank you so much I love you
just in my intellij don't have the ''swing UI designer" part ?
It is probably about setting a source root in your project folder. Right-click the root folder your project is included in and select > mark directory as > Sources root. This might resolve it
@@cagdasmuldur250 Thank you for helping out Iago!
Such a great video
Can you tell me how can I change the position of components because when I am draging them they come back to their original position.
Google it
@@thedarkknight4304 Thanks for the best suggestion 👍
Your awesome,tysm for the video!
Thanks. I love it.
great video. how can i make this stand-alone? I mean how to create an installation setup file for this?
And if you want to make a setup file for that exe use Inno
Link: jrsoftware.org/isinfo.php
why use IntelliJ instead of Eclipse?
Hi there! IDE choice is often personal preference. IntelliJ is newer and has an easier to use interface. It is also distributed in different flavors like PyCharm, CLion, Android Studio, etc. so if you learn one you learn a family. Happy coding! -Gina
@@GinaSprint Great Advice Thanks!!!!. So would you recommend the paid version of IntelliJ or free one?
@@tusharshivan9559 Start with free community edition until you run into a feature you need with ultimate. Usually your company will pay for ultimate if it is needed.
@@GinaSprint Ok one last question, since IntelliJ is new, its support like community forums like Stackoverflow wouldn't be much compared to Eclipse. Right?
@@tusharshivan9559 That could be the case yes. I would still recommend learning IntelliJ over Eclipse because it is more popular right now. Anecdotally, I learned Java with Eclipse in 2010. I teach CS at the university level and I don't think I've heard anyone teaching Eclipse recently. It's mostly IntelliJ and VS Code. That is a sample size of 1 of course so ask some more folks about their thoughts on the subject :) Happy coding
Your audio volume is too loww but I appreciate the video a lottt!!!
What is "audio volume"? 😜 Anyway, I disagree - the audio is absolutely fine. I try to keep my volume at 75% and at this level it's perfectly audible!
really helpfull
Netbeans has the best GUI builder
thank you
thanks!
Thanks thanks.
Why Swing is such a pain in the ass in Intellij?!
Every other IDE you just create a form and it populates the initial boilerplate code for you in the bound class and you're set to go on your main objective of actually creating a GUI.
Creating a GUI with IntelliJ is so frustrating and tiring and it really pisses me off as a beginner programmer.
Everything needs to be done from scratch in the bound class!
Not only I don't know how to do that, but there's no freakin' documentation on their website or RUclips channel on how to do that!
I'm really angry about this!
Perhaps start learning Swing without the GUI form editor... meaning do it all in Java. Understand that first then try the GUI form editor again. Happy learning and coding!
@@GinaSprint Excellent suggestion! Thank you for replying. That's exactly what I thought of and proceeded to do only to realize through my research that Swing is not the best path and that JavaFX is the future. So I guess I'll go with JavaFX now. Do you have an opinion about this debate?
@@deya2nassar Swing is old, I'd recommend learning something more modern. If you need to use Java then yes I'd agree go with JavaFX over Swing. Enjoy!
@@GinaSprint Thanks a lot. You're great.
JFrame frame = new JFrame(String.valueOf(new CelsiusConverterGUI("My Celsius Converter")));
frame.setVisible(true);
Tks love you
Thanks!
Thats awsome
God I'm gonna miss windowsbuilder
youre amazing
You are just subscirbed!!!!!
Op
Hey i'am from indonesia , can i follow u in instagram?
I want to learn intellij more than
Ein Kommentar
we get the point u have a mac ,ok move on...
WORST for beginner
Stop being toxic, and dont start with something this hard, if you cant figure it out how is that the fricken creators fault, stop complaining.
How can I disable the auto adjust? Buttons and Labels are auto adjusting