a common yet hard-to-resolved problem for Java GUI size!  
Author Message
neverknown





PostPosted: 2005-10-25 15:43:00 Top

java-programmer, a common yet hard-to-resolved problem for Java GUI size! 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 only for 16:9 wide
screen so far.

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!

 
neverknown





PostPosted: 2005-10-25 15:48:00 Top

java-programmer >> a common yet hard-to-resolved problem for Java GUI size! 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!

 
neverknown





PostPosted: 2005-10-25 15:53:00 Top

java-programmer >> a common yet hard-to-resolved problem for Java GUI size! 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!

 
 
Roedy Green





PostPosted: 2005-10-25 16:18:00 Top

java-programmer >> a common yet hard-to-resolved problem for Java GUI size! On 25 Oct 2005 00:48:24 -0700, "neverknown" <email***@***.com>
wrote, quoted or indirectly quoted someone who said :

>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?

A way to bypass this problem is to PERSIST the user's size and
position choices using the Preferences class. That way he sets it
once the way he likes it and it sticks forever until he changes his
mind.

see http://mindprod.com/jgloss/preferences.html

This problem is going to get worse and worse as screen sizes and
resolutions diverge. Eventually we are going to have to stop using
pixels and use some sort of dialog unit like a modified printer point
that is tied to the geometry of the monitor and the visual acuity of
the user. We would code in units call the "vu" visual unit, and the
user gets to use a slider to adjust its translation to pixels which is
then automatically applied to all apps. I might define a vu as the
vertical spacing between two lines of body text that the user can read
comfortably. It is the default body text leading.



--
Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.
 
 
Roedy Green





PostPosted: 2005-10-25 16:56:00 Top

java-programmer >> a common yet hard-to-resolved problem for Java GUI size! see http://mindprod.com/jgloss/multiposting.html
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.
 
 
neverknown





PostPosted: 2005-10-25 22:46:00 Top

java-programmer >> a common yet hard-to-resolved problem for Java GUI size! Thank you for the headsup! But how to do cross-posting?

Do I just indicate I have posted somewhere else (with a link address)
at the beginning of my new post??

 
 
neverknown





PostPosted: 2005-10-25 23:18:00 Top

java-programmer >> a common yet hard-to-resolved problem for Java GUI size! thanks!!

 
 
Tor Iver Wilhelmsen





PostPosted: 2005-10-25 23:31:00 Top

java-programmer >> a common yet hard-to-resolved problem for Java GUI size! "neverknown" <email***@***.com> writes:

> Thank you for the headsup! But how to do cross-posting?

You write more than one newsgroup name in the field for that,
separated by commas.
 
 
Roedy Green





PostPosted: 2005-10-26 12:38:00 Top

java-programmer >> a common yet hard-to-resolved problem for Java GUI size! On 25 Oct 2005 07:46:27 -0700, "neverknown" <email***@***.com>
wrote, quoted or indirectly quoted someone who said :

>Thank you for the headsup! But how to do cross-posting?
Did you look at the entry
http://mindprod.com/jgloss/crossposting.html
linked to from the multi-posting entry?

It will tell you.
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.