Re: Swing application getting affected by screen resolution
- From: "Larry Barowski" <MElarrybar-AT-eng_DOT_auburnANOTHERDOTeduEND>
- Date: Sat, 28 Jul 2007 13:01:16 -0400
The sad fact is that by the time the monitor resolution gets to 1600x1200
or larger the frames and controls will be unusably small.
Font sizes will adjust to the system DPI for theWindows L&Fs and the
Mac L&F under Swing (on their corresponding systems, of course). It's
easy enough to make your application's fonts adjust to the system DPI for
other Swing L&Fs in a global way (and also provide user-adjustable global
font scaling to help out users on systems where the DPI is unadjustable
and inappropriate). Fixed sized margins and borders don't normally hurt
usability for the range of monitor resolutions in common use, and can be
scaled where necessary. Some icons can be self-drawn and auto-scaling,
while others can be chosen from multiple-sized sets, though this is not
frequently done.
I operate at 1600x1200 on a 20 inch screen and dpi set to 144, and most
Java apps that I use are fine, or at least scale appropriately under Windows
L&F. I expect that 3200x2400 and 288 dpi on the same screen would
result in some issues with tiny icons, tight margins, and nearly invisible
borders for most Java applications. If monitors with that kind of resolution
become common, many Java applications will need some reworking to
make them usable.
.
- References:
- Swing application getting affected by screen resolution
- From: Chanchal
- Re: Swing application getting affected by screen resolution
- From: Knute Johnson
- Swing application getting affected by screen resolution
- Prev by Date: How to add GUI Properties in Jigloo for a custom control
- Next by Date: Swing thread problem
- Previous by thread: Re: Swing application getting affected by screen resolution
- Next by thread: How to add GUI Properties in Jigloo for a custom control
- Index(es):
Relevant Pages
|