Name: dk106046 Date: 08/18/2003
Letter 'j' typed as first character in text field looks like 'i'. 'W' get cut-off in labels.The problem appears to be present in both text fields and labels. I'm not sure if other letters are affected as well.
Here is the testcase TextFieldTypingJProblem.java
import java.awt.*;
import javax.swing.*;
import javax.swing.table.*;
import javax.swing.event.*;
import com.sun.java.swing.plaf.windows.WindowsLookAndFeel;
import com.sun.java.swing.plaf.motif.MotifLookAndFeel;
public class TextFieldTypingJProblem {
public static void main(String[] args)
{
Try
{
UIManager.setLookAndFeel(new WindowsLookAndFeel());
}
catch (Exception e)
{
}
final JFrame frame = new JFrame("TEST");
JTextField tf = new JTextField("ji -- the j in first position is cut off making it look like i instead of j");
JLabel l2 = new JLabel("Whis is the label:");
frame.getContentPane().setLayout(new FlowLayout());
frame.getContentPane().add(tf);
frame.getContentPane().add(l2);
frame.pack();
frame.setSize(640, 480);
frame.setVisible(true);
}
}
======================================================================