A
A
Alexander Kudryashov2016-12-09 10:19:56
Java
Alexander Kudryashov, 2016-12-09 10:19:56

How to set JLabel coordinates?

Hello.
Is it possible to set the coordinates on the JLabel object to display the desired text at the desired position on our frame?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Zaitsev, 2016-12-09
@Spacegrey

Swing does not support absolute component positioning unless you implement an alternative component layout that has its own positioning model. In JavaFX, there is an AnchorPane for this, in which components are placed in x, y.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question