Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4369512

FileDialog.setFont() on windows is not working

XMLWordPrintable

    • x86
    • windows_nt

      Name: yyT116575 Date: 09/08/2000


      java version "1.3.0rc2"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0rc2-Y)
      Java HotSpot(TM) Client VM (build 1.3.0rc2-Y, mixed mode)

      Compile the following java code and run on unix platform--it works fine, font
      size will change. but if you run the same program on windows the font size
      will not change at all.

      import java.awt.*;
      import javax.swing.*;

      class TestFileDialog{

         TestFileDialog() {
      FileDialog fDialog = new FileDialog(new JFrame(),
      "Select Application",
      FileDialog.LOAD);
      int i=0;
      while(i<=24)
      {
      fDialog.setFont(new Font("-adobe-helvetica",1,i++));
      System.out.println(fDialog.getFont());
      fDialog.setDirectory(".");
      fDialog.show();
      }
      }

      public static void main(String [] args) {
      new TestFileDialog();
         System.exit(0);
      }
      }
      (Review ID: 109262)
      ======================================================================

            denis Denis Fokin (Inactive)
            yyoungsunw Yung-ching Young (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: