JDK-4716362 : Capital W cut off if first character in a JLabel or a JTextField
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.4.1
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows_nt
  • CPU: x86
  • Submitted: 2002-07-17
  • Updated: 2002-10-19
  • Resolved: 2002-10-19
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
1.4.2 mantisFixed
Related Reports
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Description

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.
======================================================================

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: mantis FIXED IN: mantis INTEGRATED IN: mantis
14-06-2004

WORK AROUND Set a Border on the Label to pad for extra space: label.setBorder(new EmptyBorder(0, 2, 0, 0)); Still investigating JTextField ###@###.### 2002-07-30
30-07-2002

EVALUATION This is another manifestation of 4140220, refer to it for the gory details. ###@###.### 2002-07-17 Also refer to 4262130 for information as well. ###@###.### 2002-07-29
17-07-2002