-
Bug
-
Resolution: Fixed
-
P3
-
6
-
b90
-
x86
-
linux
FULL PRODUCT VERSION :
java version "1.6.0-beta2"
Java(TM) SE Runtime Environment (build 1.6.0-beta2-b81)
Java HotSpot(TM) Client VM (build 1.6.0-beta2-b81, mixed mode, sharing)
ADDITIONAL OS VERSION INFORMATION :
Linux bertha 2.6.12-1-686-smp #1 SMP Tue Sep 27 13:10:31 JST 2005 i686 GNU/Linux
A DESCRIPTION OF THE PROBLEM :
The recent fix for 6406012 (which works great, and fixes the related insets problem) has caused UIManager.getColor to return "tooltip yellow" in various places where it didn't used to, and probably shouldn't.
REGRESSION. Last worked in version mustang
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
run the example program below. (you don't need both setBackground lines; they're just two examples, either of which works. there may be more.)
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
a white background (or whatever color my GTK theme uses).
this was the result up to and including 1.6.0-b80; b81 is the first to exhibit this bug.
ACTUAL -
a "tooltip yellow" background.
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
import java.awt.*;
import javax.swing.*;
public class test extends JFrame {
test() throws Exception {
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
JPanel p = new JPanel();
setContentPane(p);
p.setBackground(UIManager.getColor("Tree.background"));
p.setBackground(UIManager.getColor("TextArea.background"));
setSize(new Dimension(200, 200));
setVisible(true);
}
public static void main(String[]args) throws Exception {
new test();
}
}
---------- END SOURCE ----------
java version "1.6.0-beta2"
Java(TM) SE Runtime Environment (build 1.6.0-beta2-b81)
Java HotSpot(TM) Client VM (build 1.6.0-beta2-b81, mixed mode, sharing)
ADDITIONAL OS VERSION INFORMATION :
Linux bertha 2.6.12-1-686-smp #1 SMP Tue Sep 27 13:10:31 JST 2005 i686 GNU/Linux
A DESCRIPTION OF THE PROBLEM :
The recent fix for 6406012 (which works great, and fixes the related insets problem) has caused UIManager.getColor to return "tooltip yellow" in various places where it didn't used to, and probably shouldn't.
REGRESSION. Last worked in version mustang
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
run the example program below. (you don't need both setBackground lines; they're just two examples, either of which works. there may be more.)
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
a white background (or whatever color my GTK theme uses).
this was the result up to and including 1.6.0-b80; b81 is the first to exhibit this bug.
ACTUAL -
a "tooltip yellow" background.
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
import java.awt.*;
import javax.swing.*;
public class test extends JFrame {
test() throws Exception {
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
JPanel p = new JPanel();
setContentPane(p);
p.setBackground(UIManager.getColor("Tree.background"));
p.setBackground(UIManager.getColor("TextArea.background"));
setSize(new Dimension(200, 200));
setVisible(true);
}
public static void main(String[]args) throws Exception {
new test();
}
}
---------- END SOURCE ----------
- relates to
-
JDK-6406012 REGRESSION: GTK tooltip background color wrong
- Resolved