Re: Swing application getting affected by screen resolution



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
.



Relevant Pages

  • Re: Swing application getting affected by screen resolution
    ... Font sizes will adjust to the system DPI for theWindows L&Fs and the ... Mac L&F under Swing ...
    (comp.lang.java.gui)
  • Re: OE has gone large print
    ... So, tomorrow, I'll once again try to copy all my .dbx folders from old 'defective' identity to this new one. ... All of a sudden, the scroll bar wouldn't move, the entire window began to shimmy. ... the font size is out of whack - too big. ... Some old e-mails look ok, but if I attempt to forward and add content, my normal Arial 12 looks two sizes bigger. ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • Times font sizes are different on screen and on eps files
    ... I have 4 different GUI window sizes. ... 10^-4) are all displayed using the Times font family but the font used ... The choice of the base and exponent font sizes vary with the GUI window ...
    (comp.lang.tcl)
  • Re: How to locate errors when changing language
    ... Yes you are correct the errors are related to the font size. ... all the odd sizes and change to even sizes? ... > I was unaware there was such a thing as English Netherlands (it's ... > Usual cause is change between decimal comma and decimal point. ...
    (microsoft.public.vb.general.discussion)
  • Re: Whats the environment for normal text?
    ... specific font sizes. ... distance. ... Another alternative is to scale the font itself and then adjust all the ... except the command needed usually contains internal ...
    (comp.text.tex)