简体   繁体   中英

Compatability issue for Desktop application using java swing

I've created a java desktop application in which the UI has been designed using the layout managers in swing. The UI comes up fine in my monitor (18.5 inch). However, if I try to view the UI in a smaller screen (14 inch), the layout remains the same but the contents like label/text are not getting resized. The texts are broken (followed by ...) and is unreadable. Is there any way to resize the contents depending on the screen size?

You need to define or take panel and add all component like label, textfield etc are set in the panel and this panel add in frame then all component set in their perticular location and text are not broken.
Or also set fix panel size so that help to you to set same size of your application in different screen.

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM