Re: Swing application getting affected by screen resolution
- From: Karsten Lentzsch <karsten@xxxxxxxxxxxx>
- Date: Fri, 31 Aug 2007 10:44:23 +0200
Larry Barowski wrote:
[...] 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).
The Sun Windows L&f uses the default GUI font that scales
with the software resolution, but doesn't honor the desktop
setting for normal/large/extra large fonts.
I provide a Windows L&f that uses the icon font by default
that honors the software resolution as well as the desktop
font size setting (normal/large/extra large). More precisely
the JGoodies L&fs include a FontPolicy mechanism that is used
to specify which font shall be used for a given platform, L&fs,
and platform settings.
[...] 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. [...]
The range of monitors in teams I work with is about 78 dpi (hardware)
up to 144 hardware dpi. This leads to significantly sizes on the
higher dpi hardware. This affects borders, gaps, table column widths,
custom preferred sizes for trees and lists.
Therefore I use Dialog Units (DLU) for these sizes where possible.
-Karsten Lentzsch
.
- Follow-Ups:
- Re: Swing application getting affected by screen resolution
- From: Larry Barowski
- Re: Swing application getting affected by screen resolution
- Prev by Date: Re: Swing application getting affected by screen resolution
- Next by Date: Re: disable column header display
- Previous by thread: Re: Swing application getting affected by screen resolution
- Next by thread: Re: Swing application getting affected by screen resolution
- Index(es):
Relevant Pages
|
|