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


Groups > comp.lang.java.programmer > #23672 > unrolled thread

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

Started byMarkus Lemcke <markuslemcke@googlemail.com>
First post2013-04-27 14:00 -0700
Last post2013-05-01 10:16 -0700
Articles 7 — 4 participants

Back to article view | Back to comp.lang.java.programmer


Contents

  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

#23672 — Software must support the user's settings for font size but how it works with swing?

FromMarkus Lemcke <markuslemcke@googlemail.com>
Date2013-04-27 14:00 -0700
SubjectSoftware must support the user's settings for font size but how it works with swing?
Message-ID<cde2871e-f338-47b4-8b81-c15986021687@googlegroups.com>
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?

Greetings


Markus Lemcke
http://www.marlem-software.de/marlemblog/

[toc] | [next] | [standalone]


#23674

FromStanimir Stamenkov <s7an10@netscape.net>
Date2013-04-28 01:25 +0300
Message-ID<klhj28$k21$1@dont-email.me>
In reply to#23672
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

[toc] | [prev] | [next] | [standalone]


#23675

FromStanimir Stamenkov <s7an10@netscape.net>
Date2013-04-28 02:02 +0300
Message-ID<klhl84$t4h$1@dont-email.me>
In reply to#23674
Sun, 28 Apr 2013 01:25:16 +0300, /Stanimir Stamenkov/:

> UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
>
> In practice, at least on Windows it doesn't get 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.

I remember previously hacking the Windows L&F for that purpose by 
reading the corresponding desktop property:

http://docs.oracle.com/javase/6/docs/technotes/guides/swing/1.4/w2k_props.html

-- 
Stanimir

[toc] | [prev] | [next] | [standalone]


#23677

FromJeff Higgins <jeff@invalid.invalid>
Date2013-04-27 19:14 -0400
Message-ID<klhlu8$vil$2@dont-email.me>
In reply to#23672
On 04/27/2013 05:00 PM, Markus Lemcke wrote:
> I make a java software accessible.

Again, I would suggest a more specialized forum.

https://forums.oracle.com/forums/forum.jspa?forumID=952

[toc] | [prev] | [next] | [standalone]


#23678

FromStanimir Stamenkov <s7an10@netscape.net>
Date2013-04-28 02:19 +0300
Message-ID<klhm8q$gh$1@dont-email.me>
In reply to#23677
Sat, 27 Apr 2013 19:14:53 -0400, /Jeff Higgins/:
> On 04/27/2013 05:00 PM, Markus Lemcke wrote:
>
>> I make a java software accessible.
>> [...]
>> What I must code in Java with swing, that my software display the system font size?
>
> Again, I would suggest a more specialized forum.
>
> https://forums.oracle.com/forums/forum.jspa?forumID=952

I guess "comp.lang.java.gui" should be appropriate, too?

-- 
Stanimir

[toc] | [prev] | [next] | [standalone]


#23679

FromJeff Higgins <jeff@invalid.invalid>
Date2013-04-27 19:27 -0400
Message-ID<klhmm6$3bm$1@dont-email.me>
In reply to#23678
On 04/27/2013 07:19 PM, Stanimir Stamenkov wrote:
> Sat, 27 Apr 2013 19:14:53 -0400, /Jeff Higgins/:
>> On 04/27/2013 05:00 PM, Markus Lemcke wrote:
>>
>>> I make a java software accessible.
>>> [...]
>>> What I must code in Java with swing, that my software display the
>>> system font size?
>>
>> Again, I would suggest a more specialized forum.
>>
>> https://forums.oracle.com/forums/forum.jspa?forumID=952
>
> I guess "comp.lang.java.gui" should be appropriate, too?
>
As far as topic. The Oracle Accessibility forum is
more focused and a much higher volume. ^Shrug.

[toc] | [prev] | [next] | [standalone]


#23768

FromRoedy Green <see_website@mindprod.com.invalid>
Date2013-05-01 10:16 -0700
Message-ID<kej2o8tr18lqfg38i3kqiv3cfo7jbugs05@4ax.com>
In reply to#23672
On Sat, 27 Apr 2013 14:00:42 -0700 (PDT), Markus Lemcke
<markuslemcke@googlemail.com> wrote, quoted or indirectly quoted
someone who said :

>What I must code in Java with swing, that my software display the system font size?

have a look at http://mindprod.com/applet/fontshower.html
It is an app for displaying sample fonts in various colours and sizes.
-- 
Roedy Green Canadian Mind Products http://mindprod.com
Nothing is so good as it seems beforehand. 
 ~ George Eliot (born: 1819-11-22 died: 1880-12-22 at age: 61) (Mary Ann Evans)

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.java.programmer


csiph-web