Answer the question
In order to leave comments, you need to log in
How to create a form in Java in IntelliJ IDEA 2018?
Hello. Got an assignment for a courseworker. Implementing it is not a problem, but I ran into the fact that I have no idea how to create forms (as in the screenshot) using java. I read about swing and javafx, but I didn’t understand which of these is better and easier for someone who didn’t go beyond creating simple arrays in java.
I will attach the appearance of the form created using Visual Studio.
Please provide examples that I can use to figure it out. Well, or tell me where and what to read, because it is not yet entirely clear where to even start.
Answer the question
In order to leave comments, you need to log in
JFrame, JTextFiled , JScrollPane, JTextArea, JLabel are all the components needed here.
And use the layout manager GridBagLayout - that's enough.
Swing and JavaFX are the same in complexity. JavaFX is a newer, more modern library. Google for the query "JavaFX" gives a huge number of links to articles and tutorials for beginners.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question