Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #23674

Re: Software must support the user's settings for font size but how it works with swing?

From Stanimir Stamenkov <s7an10@netscape.net>
Newsgroups comp.lang.java.programmer
Subject Re: Software must support the user's settings for font size but how it works with swing?
Date 2013-04-28 01:25 +0300
Organization A noiseless patient Spider
Message-ID <klhj28$k21$1@dont-email.me> (permalink)
References <cde2871e-f338-47b4-8b81-c15986021687@googlegroups.com>

Show all headers | View raw


Sat, 27 Apr 2013 14:00:42 -0700 (PDT), /Markus Lemcke/:

> I make a java software accessible. One rule ist the following:
>
> 1. Software must support the user's settings for font, size and color. Software that provides
> custom application settings for font, size and color must provide the user an option to choose
> the systems settings for displayed information rather than using the custom application settings
> provided by the software.
>
> What I must code in Java with swing, that my software display the system font size?

May be your best bet is to use the SystemLookAndFeel:

http://docs.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html

UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());

In practice, at least on Windows it doesn't use the user configured 
"caption" and "message" fonts for most components like lists, trees 
and tables (like Windows Explorer does, for example), but just the 
fixed Windows "system font" which only changes in size depending on 
the system DPI setting.

-- 
Stanimir

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Software must support the user's settings for font size but how it works with swing? Markus Lemcke <markuslemcke@googlemail.com> - 2013-04-27 14:00 -0700
  Re: Software must support the user's settings for font size but how it works with swing? Stanimir Stamenkov <s7an10@netscape.net> - 2013-04-28 01:25 +0300
    Re: Software must support the user's settings for font size but how it works with swing? Stanimir Stamenkov <s7an10@netscape.net> - 2013-04-28 02:02 +0300
  Re: Software must support the user's settings for font size but how it works with swing? Jeff Higgins <jeff@invalid.invalid> - 2013-04-27 19:14 -0400
    Re: Software must support the user's settings for font size but how it works with swing? Stanimir Stamenkov <s7an10@netscape.net> - 2013-04-28 02:19 +0300
      Re: Software must support the user's settings for font size but how it works with swing? Jeff Higgins <jeff@invalid.invalid> - 2013-04-27 19:27 -0400
  Re: Software must support the user's settings for font size but how it works with swing? Roedy Green <see_website@mindprod.com.invalid> - 2013-05-01 10:16 -0700

csiph-web