Sagace
Sagace

Reputation: 33

Java-Swing and Windows text size : fix the size of components

When my-application users increase 'windows texte size' to 150% (picture), all components(text, buttons..) grow and application exceeds screen size.

Do you have a suggestion to make GUI fixed(or all component svisible) with every windows text size (100%, 125%, 150%)?

Thanks. PS:I use JGoodies

Upvotes: 1

Views: 820

Answers (1)

Balram Payasi
Balram Payasi

Reputation: 21

use proper layout manager and dont setPreferredSize()/setSize() etc to component like button, panel window/dialog and use pack() window/dialog.

Upvotes: 2

Related Questions