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

Capital W cut off if first character in a JLabel or a JTextField

XMLWordPrintable

    • mantis
    • x86
    • windows_nt



      Name: pa48320 Date: 07/17/2002

      Run the following class:
      public class q
      {
      public static void main(String[] a)
      {
      javax.swing.JFrame t = new javax.swing.JFrame("test");
      t.setBounds(0,0,100,100);
                      t.getContentPane().setLayout(new java.awt.FlowLayout));
                      t.getContentPane().add(new javax.swing.JTextField("WLabel"));
      t.getContentPane().add(new javax.swing.JLabel("WLabel"));
      t.setDefaultCloseOperation(javax.swing.JFrame.EXIT_ON_CLOSE);
      t.setVisible(true);
      }
      }

      The label should appear in a bold font. Notice that the W is slightly chopped off on the left side. The textfield appears fine. If you switch this to yuse the Windows look and feel then the W is cut off quite a bit and the textfield leading W is also cut off.
      ======================================================================

            svioletsunw Scott Violet (Inactive)
            pallenba Peter Allenbach (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: