How do you change the width and height of a JTextField
and a JPasswordField
? I Googled it, but I can't find anything. Thanks for your time!
To adjust the height, set a different font size.
To adjust the width, specify the number of columns during construction . Setting a different font size will also affect the width.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.