JDK-7169583 : JInternalFrame title not antialiased in Nimbus LaF
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 7
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2012-05-17
  • Updated: 2015-06-04
  • Resolved: 2014-11-09
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.
JDK 8 JDK 9
8u40Fixed 9 b42Fixed
Related Reports
Duplicate :  
Description
FULL PRODUCT VERSION :
1.7.0-b147

ADDITIONAL OS VERSION INFORMATION :
Windows XP SP3 Version 5.1

A DESCRIPTION OF THE PROBLEM :
JInternalFrame title is antialiased as for JLabel by Metal, Windows, Motif LaFs (ie yes, yes, no). However In Nimbus there is a mismatch - JLabel is antialiased but not JInternalFrame.

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Execute test code with arguments 1-4.


REPRODUCIBILITY :
This bug can be reproduced always.

---------- BEGIN SOURCE ----------
import javax.swing.JDesktopPane;
import javax.swing.JFrame;
import javax.swing.JInternalFrame;
import javax.swing.JLabel;
import javax.swing.SwingUtilities;
import javax.swing.UIManager;
public class InternalFrameAliasing extends JFrame{
	public InternalFrameAliasing(int test){
		super(InternalFrameAliasing.class.getSimpleName());
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(test*50+100,test*75+5,250,100);
		JDesktopPane desktop=new JDesktopPane();
		setContentPane(desktop);
		final JInternalFrame frame=new JInternalFrame("Am I anti-aliased?" +
				" [" +
				lafNames[test].replaceAll("[^A-Z]+(.+)LookAndFeel","$1")+
				"]");
		frame.setSize(300,300);
		frame.add(new JLabel("And am I?"));
		frame.setVisible(true);
		desktop.add(frame);
		SwingUtilities.invokeLater(new Runnable(){public void run(){
			try{
				frame.setSelected(true);
				frame.setMaximum(true);
			}catch(java.beans.PropertyVetoException e){
				e.printStackTrace();
			}
		}});
	}
	private final static String[]lafNames= {
			"javax.swing.plaf.metal.MetalLookAndFeel",
			UIManager.getSystemLookAndFeelClassName(),
			"com.sun.java.swing.plaf.motif.MotifLookAndFeel",
			"com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel"
	};
	public static void main(final String[]args){
		if(args.length<1)throw new IllegalArgumentException(
				"Supply test number 1 to 4");
		SwingUtilities.invokeLater(new Runnable(){public void run(){
			int test=Integer.valueOf(args[0]);
			try{
				UIManager.setLookAndFeel(lafNames[--test]);
			}catch(Exception notSet){
				notSet.printStackTrace();
			}
			new InternalFrameAliasing(test).setVisible(true);
		}});
	}
}

---------- END SOURCE ----------

Comments
- this is an issue reported against 7(7u), - there are now affected version 9 filed for this issue - 7u issues are transferred to Sustaining Nevertheless if someone have a report against 9 - please reopen and add affectedVersion 9 or 7u specific escalations might be reopen to Sustaining
10-08-2014

- this is an issue reported against 7(7u), - there are now affected version 9 filed for this issue - 7u issues are transferred to Sustaining Nevertheless if someone have a report against 9 - please reopen and add affectedVersion 9 or 7u specific escalations might be reopen to Sustaining
10-08-2014