Text does not display fully in JTextField

They say that one image is worth 1000 words:

alt text

I will just notice that the size is set to the default value. (creation in NetBeans) any idea how I can fix this?

Adam.

+3
source share
4 answers

The reason is the LNF, which was assigned to the frame, as soon as I changed this, everything works fine.

0
source

Without code display, I would say that your JTextField width will not be wide enough. You can resize to be large enough for the number of characters you expect.

, , .

Document, JTextField, , http://www.rgagnon.com/javadetails/java-0198.html

+3

, , , .

+1

, 1000 :

. SSCCE 1000 .

, . ( , , ), , 3- :

JTextField width = new JTextField(3);
0

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


All Articles