-
Bug
-
Resolution: Duplicate
-
P4
-
None
-
5.0
-
x86
-
linux
FULL PRODUCT VERSION :
java version "1.5.0_01"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_01-b08)
Java HotSpot(TM) Client VM (build 1.5.0_01-b08, mixed mode, sharing)
ADDITIONAL OS VERSION INFORMATION :
Linux host21.swiss-it.ch 2.6.8.1-12mdk #1 Fri Oct 1 12:53:41 CEST 2004 i686 Intel(R) Pentium(R) 4 CPU 2.00GHz unknown GNU/Linux
A DESCRIPTION OF THE PROBLEM :
I did set the text of a JLabel to the String "Ronny" and used Font("Dialog", 0, 12) for the JLabel.
The problem is now that the last letter is partly cut off. This seems to affect only Strings ending on "v" and "y" and only the Linux version of Java.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Compile and execute the source code. See how the "y" of Ronny is cut off.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
I expect that the last letter of my name is not cut off.
ACTUAL -
I saw that the "y" of "Ronny" was cut off.
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
public class MainFrame extends javax.swing.JFrame {
public MainFrame() {
java.awt.GridBagConstraints gridBagConstraints;
javax.swing.JLabel jLabel1 = new javax.swing.JLabel();
getContentPane().setLayout(new java.awt.GridBagLayout());
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
jLabel1.setFont(new java.awt.Font("Dialog", 0, 12));
jLabel1.setText("My name is Ronny");
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.insets = new java.awt.Insets(10, 0, 0, 0);
getContentPane().add(jLabel1, gridBagConstraints);
java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
setBounds((screenSize.width-400)/2, (screenSize.height-300)/2, 400, 300);
}
public static void main(String args[]) {
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new MainFrame().setVisible(true);
}
});
}
}
---------- END SOURCE ----------
###@###.### 2005-04-06 10:26:26 GMT
java version "1.5.0_01"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_01-b08)
Java HotSpot(TM) Client VM (build 1.5.0_01-b08, mixed mode, sharing)
ADDITIONAL OS VERSION INFORMATION :
Linux host21.swiss-it.ch 2.6.8.1-12mdk #1 Fri Oct 1 12:53:41 CEST 2004 i686 Intel(R) Pentium(R) 4 CPU 2.00GHz unknown GNU/Linux
A DESCRIPTION OF THE PROBLEM :
I did set the text of a JLabel to the String "Ronny" and used Font("Dialog", 0, 12) for the JLabel.
The problem is now that the last letter is partly cut off. This seems to affect only Strings ending on "v" and "y" and only the Linux version of Java.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Compile and execute the source code. See how the "y" of Ronny is cut off.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
I expect that the last letter of my name is not cut off.
ACTUAL -
I saw that the "y" of "Ronny" was cut off.
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
public class MainFrame extends javax.swing.JFrame {
public MainFrame() {
java.awt.GridBagConstraints gridBagConstraints;
javax.swing.JLabel jLabel1 = new javax.swing.JLabel();
getContentPane().setLayout(new java.awt.GridBagLayout());
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
jLabel1.setFont(new java.awt.Font("Dialog", 0, 12));
jLabel1.setText("My name is Ronny");
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.insets = new java.awt.Insets(10, 0, 0, 0);
getContentPane().add(jLabel1, gridBagConstraints);
java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
setBounds((screenSize.width-400)/2, (screenSize.height-300)/2, 400, 300);
}
public static void main(String args[]) {
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new MainFrame().setVisible(true);
}
});
}
}
---------- END SOURCE ----------
###@###.### 2005-04-06 10:26:26 GMT
- duplicates
-
JDK-5060610 Trailing character's getting clipped in JLable
-
- Closed
-