-
Bug
-
Resolution: Fixed
-
P4
-
7
-
b42
-
x86
-
windows_xp
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8084684 | emb-9 | Sergey Bylokhov | P4 | Resolved | Fixed | team |
JDK-8067579 | 8u45 | Sergey Bylokhov | P4 | Resolved | Fixed | b01 |
JDK-8065211 | 8u40 | Sergey Bylokhov | P4 | Resolved | Fixed | b17 |
JDK-8070067 | emb-8u47 | Sergey Bylokhov | P4 | Resolved | Fixed | team |
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 ----------
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 ----------
- backported by
-
JDK-8065211 JInternalFrame title not antialiased in Nimbus LaF
-
- Resolved
-
-
JDK-8067579 JInternalFrame title not antialiased in Nimbus LaF
-
- Resolved
-
-
JDK-8070067 JInternalFrame title not antialiased in Nimbus LaF
-
- Resolved
-
-
JDK-8084684 JInternalFrame title not antialiased in Nimbus LaF
-
- Resolved
-
- duplicates
-
JDK-8042104 Nimbus JInternalFrame Title Not Antialiased
-
- Closed
-