F
F
FaNaT2018-04-20 23:51:51
Java
FaNaT, 2018-04-20 23:51:51

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.
5ada5257d7918648507305.png
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

2 answer(s)
H
hHup, 2018-04-21
@fanat_96

JFrame, JTextFiled , JScrollPane, JTextArea, JLabel are all the components needed here.
And use the layout manager GridBagLayout - that's enough.

S
Sergey Gornostaev, 2018-04-21
@sergey-gornostaev

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 question

Ask a Question

731 491 924 answers to any question