Name: rmT116609 Date: 07/28/2003 FULL PRODUCT VERSION : java version "1.4.2" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-b28) Java HotSpot(TM) Client VM (build 1.4.2-b28, mixed mode) FULL OS VERSION : Microsoft Windows XP [Version 5.1.2600] A DESCRIPTION OF THE PROBLEM : Native windows ComboBox control has rollover effect (it's should be highlighted when mouse pointer is over it). Swing JComboBox has different rollover effect. JComboBox is highlighted only if mouse pointer is over drop down button. But it should be highlighted when the mouse is inside its bounds. STEPS TO FOLLOW TO REPRODUCE THE PROBLEM : 1. Switch to Windows XP style and Default(blue) color scheme 2. Compile and run attached sample application 3. When frame appears move mouse to the center combobox. Be sure the mouse is not over the drop down button. EXPECTED VERSUS ACTUAL BEHAVIOR : EXPECTED - JComboBox should be highlighted ACTUAL - There is no any highlighting effect REPRODUCIBILITY : This bug can be reproduced always. ---------- BEGIN SOURCE ---------- import javax.swing.*; import java.awt.*; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; /** * @author Vladimir Kondratyev */ public class test { public static void main(String[] args) throws IllegalAccessException, ClassNotFoundException, UnsupportedLookAndFeelException, InstantiationException { UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); JFrame frame = new JFrame("Test"); Container contentPane = frame.getContentPane(); contentPane.setLayout(new BorderLayout()); frame.addWindowListener( new WindowAdapter() { public void windowClosing(WindowEvent e) { System.exit(0); } } ); JComboBox jComboBox = new JComboBox(new Object[]{"one", "two", "three"}); contentPane.add(jComboBox, BorderLayout.CENTER); frame.pack(); frame.show(); } } ---------- END SOURCE ---------- (Incident Review ID: 192646) ======================================================================
|