🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.jbuilder.java.swing
1 messages
1 total messages Started by neverknown Tue, 25 Oct 2005 07:52
a common yet hard-to-resolved problem for Java GUI size!
#401
Author: neverknown
Date: Tue, 25 Oct 2005 07:52
21 lines
2042 bytes
The Java application GUI (setPreferSize to some hardcoded dimension)
gets smaller when it comes to wide screen (Dell 16:9 laptop), and the
users have to resize the GUI every time they are launched (so as to see
the action buttons).  This problem seems to happen for 16:9 wide screen
so far, but may also happen when it comes to monitor with non default
setups.

Question:
1. What are the factors deciding the swing (awt) GUI size, besides
resolution and font?  Is wide screen really an individual factor?

2. How to formulate a universal good GUI size?  Or any examples to
define different sizes for different display-cases?


Thought the following functions might be needed, although I heard that
Toolkit.getScreenResolution() cannot really detect screen resolution.

Toolkit.getScreenResolution(), Toolkit.getScreenSize(), getFontSize()

Any example or information will be highly appreciated!
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads