-
Bug
-
Resolution: Duplicate
-
P3
-
None
-
1.4.2
-
x86
-
windows_2000
Name: jk109818 Date: 07/14/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 2000 [Version 5.00.2195]
A DESCRIPTION OF THE PROBLEM :
When clicking a cell in a JTable in 1.4.1, a yellow border was painted around the cell to indicate that it was selected. This no longer happens in 1.4.2, and as a result the user has no visual indicator that a cell has been selected. This bug only occurs with the Windows L&F - JTable works fine with Metal and Motif.
Bug 4674205 reports that removal of the yellow border was a fix for the Windows L&F, and that a dashed rectangle will replace it. However no dashed rectangle appears.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Run the attached program.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
I expect to see a dashed border around a table cell when I click on it.
ACTUAL -
I don't see any change in the table when clicking cells.
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
import java.awt.*;
import javax.swing.*;
public class TestJTable
{
public static void main(String[] args)
{
try
{
UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
}
catch (Exception e)
{
e.printStackTrace();
}
JTable table = new JTable(4, 1);
JFrame frame = new JFrame();
frame.getContentPane().add(table, BorderLayout.CENTER);
frame.pack();
frame.setVisible(true);
}
}
---------- END SOURCE ----------
(Incident Review ID: 191159)
======================================================================
- duplicates
-
JDK-4894420 Windows L&F: JList/JTable focus outline should use complement color
-
- Resolved
-