HOW TO MAKE A GUI DAY 3 || JAVA SWING || CROSS PLATFORM
Java Swing Tutorial Day 3
G'Day Again fellow replers. Sorry for the late post. I was kinda busy with other java projects...
Today we will continue tackling...
(One of) The java libraries for making Cross-platform Desktop Applications.
- Day 1: We learned how to make a JFrame and button there!
- Day 2: We learned how to use JCheckBoxes, JLabels, and JTextFields.
Today, we will continue learning about...
Today, we will be going over the following. I am sorry for not making a very large tutorial for today.
SO a JPanel, what is a JPanel?
A JPanel is literally a container. You can use JPanels to separate the components you are using based on their position on the screen, and you can put as many JPanels as you want on a JFrame and even INSIDE other JPanels.
What is also great, is that you can change the layout for each JPanel to you liking!(Layouts will be gone over in the next tutorial)
The ULTIMATE tool for organizing
JPanels are probably the easiest to use as well.
Simplicity to the MAXXX
Now, we welcome the most confusing component so far...
The JTextArea is just like a JTextBox, the user can type something in the box and an action event is fired when the user presses enter. Though it is much more complex to use.
More complicated than other JComponents but If you practice, it will be easy to get the hang of.
Well, that is it for this tutorial!
I hope you enjoyed and learned something new. You can try this JComponent in a new java swing project.
Please give feedback in the comments.
Edit: I am sorry for adding so many badly formatted comments