-
Bug
-
Resolution: Not an Issue
-
P3
-
None
-
6
-
x86
-
windows_xp
Bug Info:
=========
JFrame background is not looks similar while compare with native frame in winxp.
Run the below specify code in winxp and compare with native frame.
Source Code:
============
import javax.swing.*;
public class FrameTest extends JFrame {
/** Creates new form FrameTest */
public FrameTest() {
try{
javax.swing.UIManager.setLookAndFeel(javax.swing.UIManager.getSystemLookAndFeelClassName());
}catch(Exception exp_){}
initComponents();
}
private void initComponents() {
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
setBounds((screenSize.width-265)/2, (screenSize.height-248)/2, 265, 248);
this.setVisible(true);
}
/**
* @param args the command line arguments
*/
public static void main(String args[]) {
new FrameTest();
}
}
Please check the attached image for finding the difference.
=========
JFrame background is not looks similar while compare with native frame in winxp.
Run the below specify code in winxp and compare with native frame.
Source Code:
============
import javax.swing.*;
public class FrameTest extends JFrame {
/** Creates new form FrameTest */
public FrameTest() {
try{
javax.swing.UIManager.setLookAndFeel(javax.swing.UIManager.getSystemLookAndFeelClassName());
}catch(Exception exp_){}
initComponents();
}
private void initComponents() {
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
setBounds((screenSize.width-265)/2, (screenSize.height-248)/2, 265, 248);
this.setVisible(true);
}
/**
* @param args the command line arguments
*/
public static void main(String args[]) {
new FrameTest();
}
}
Please check the attached image for finding the difference.