How to resize JTextField?

How to resize JTextField?

+3
source share
2 answers

If you look at Javadoc, you will see that the JTextField comes from Component and has a setSize () method . If you do not have a layout manager, then this is used.

If you have a layout manager, then setPreferredSize () / setMinimumSize()/ setMaximumSize()is the way to go. See this answer for more details . .

+4
source

jtextfield setColumns(), , . , - tutorial.

+4

Source: https://habr.com/ru/post/1736878/


All Articles