Zdar,

prisel jsem na divne chovani JDK 1.5.0. Nize uvedeny applet funguje spravne v JDK 1.5.0 na Linuxu (kazda Choice ma spravny font) ale na Windows je vsechno jednim fontem (asi Arialem). Netusite nekdo v cem muze byt problem?

Dik
Tom

public class FontApplet extends Applet {

   public void init() {

       setLayout(new FlowLayout());

       Choice c = new Choice();
       c.add("This is my text");
       c.add("Second option");
       c.setFont(new Font("Courier New", Font.PLAIN, 12));
       add(c);

       c = new Choice();
       c.add("Another choice");
       c.add("Last choice");
       c.setFont(new Font("Times New Roman", Font.PLAIN, 12));
       add(c);

       c = new Choice();
       c.add("Thirth choice");
       c.add("Really Last choice");
       c.setFont(new Font("monospace", Font.PLAIN, 12));
       add(c);
   }
}

Odpovedet emailem