-
Bug
-
Resolution: Duplicate
-
P4
-
None
-
1.4.2
-
x86
-
windows_xp
Name: rmT116609 Date: 07/21/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 :
In native Windows application tab (at tabbed pane) is highlighted with small yellow line at the top when mouse is over this tab. Implementation of Windows XP LAF in JDK 1.4.2 doesn't have such effect and Java applications look different then native one.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1. Compile and run attached sample
2. Move mouse over the second tab ("Tab2") of the tabbed tab.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The Tab2 should be highlighted
ACTUAL -
There is non any highlighting
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
import com.sun.java.swing.plaf.windows.WindowsLookAndFeel;
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 Exception{
UIManager.setLookAndFeel(WindowsLookAndFeel.class.getName());
JFrame frame = new JFrame();
Container contentPane = frame.getContentPane();
contentPane.setLayout(new BorderLayout());
JTabbedPane tabbedPane = new JTabbedPane();
tabbedPane.addTab("Tab1", new JLabel("Tab 1"));
tabbedPane.addTab("Tab2", new JLabel("Tab 2"));
contentPane.add(tabbedPane, BorderLayout.CENTER);
frame.addWindowListener(
new WindowAdapter() {
public void windowClosing(WindowEvent e) {
System.exit(0);
}
}
);
frame.pack();
frame.show();
}
}
---------- END SOURCE ----------
(Incident Review ID: 189984)
======================================================================
- duplicates
-
JDK-4781723 XP L&F: JTabbedPane does not change color on Mouse Over
-
- Resolved
-