Let's Swing!
A globally warmed, Swing focused blog in the Participation Age.
I've definitely moved this blog to my personal site!

Swing Fonts in Linux II: ScreenShots

miércoles junio 16, 2004 | Java Swing | Permalink | Comentarios [1]

Moazam has asked me to include some screenshots of enhanced fonts in Linux. Click on the image below to see one:

Reduced screenshot. Click to enlarge

So I got the SwingSet2 sources (and resources) from my JDK distribution (demos/jfc/SwingSet2 directory) and modified the AquaTheme quickly. I then set up my JAVA_FONTS environment variable and launched "The Gimp" to grab a screenshot. Fast. The Java code I included in the "AquaTheme.java" file looks like this:

private final FontUIResource userFont = 
  new FontUIResource( new Font( "Tahoma", Font.PLAIN, 12 ) );
private final FontUIResource controlFont = 
  new FontUIResource( new Font( "Tahoma", Font.BOLD, 14 ) );
    
public FontUIResource getUserTextFont() { return userFont; }
public FontUIResource getControlTextFont() { return controlFont; }
// Same for getMenuTextFont, etc.

Comentarios:

Sweeet. :)

Enviado por Moazam en junio 16, 2004 a las 09:18 AM CEST #

Enviar un comentario:

Los comentarios han sido deshabilitados.

Categories


Search


Recent entries


Sites I find interesing

Aggregators
Swing focused
Software architecture related @ blogs.sun.com

Calendar

« noviembre 2009
lunmarmiéjueviesábdom
      
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
      
Hoy

Navigation


Visits

Locations of visitors to this page