JDK-4253171 : white JTabbedPane on a white JPanel in windows L&F does not paint correctly
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.1.6
  • Priority: P4
  • Status: Closed
  • Resolution: Incomplete
  • OS: windows_95
  • CPU: x86
  • Submitted: 1999-07-10
  • Updated: 2022-09-16
  • Resolved: 2022-09-16
Description

Name: krT82822			Date: 07/10/99


[ 7/10/99 kevin.ryan@eng -- this is really an aspect of bug #'s 4203875, 4162043, 4143601, but am filing FYI bug so this issue is considered as 
boundary condition (no pun intended)  ]

In the windows l&f a jtabbedpane is painted with  white borders to create the 3-d effect. However, if the jpanel and the tabbedpane both have a
white background this white border 'disappears'. This way the tabs of the jtabbedpane are hardly visible.

This is easily reproduced. E.g. by changing the SwingSet.java example: set the background of both the JPanel and the JTabbedPane to white and
while running, choose the Windows Look and Feel.
(Review ID: 43318) 
======================================================================

Comments
no test
16-09-2022

WORK AROUND Name: krT82822 Date: 07/10/99 We don't know. Of course, we can choose other background colors for the JPanel and the JTabbedPane. However, this is NOT what we want! ======================================================================
25-09-2004

EVALUATION If the colors are the same you don't get the contrast needed to create the effect of a 3-d border for the top and left sides of the tabbed pane. The bottom and right side still have the 3-d effect. This probably has to do with the way 3-d borders are supposed to look. The sun is shining from the top left and therefore we get shadows on the bottom and left sides, but not the top and right. Need to see how this would look under windows before I make a decision. ###@###.### 2001-11-17
17-11-2001