JButton displayed differently under Windows 2000 vs Windows XP
Hello,
I have an JButton that looks just fine under Windows 2000, but when I run my application under Windows XP, it does not look right.
The code to create the button is:
button =new javax.swing.JButton();
button.setBorder(null);
button.setBorderPainted(false);
button.setFocusPainted(false);
button.setFocusable(false);
button.setPreferredSize(new java.awt.Dimension(80, 73));
It is a large button with no border, but contains an image.
Like I said, it looks fine under 2000. No border is shown. But under XP, the border is still being shown.
Any ideas on why this is happening and is there anyway to have the border removed under XP?
Thanks.
-Jeff

