JDK-7041210 : REGRESSION:JTabbedPane not laying out non-visible tabs
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 7
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_vista
  • CPU: x86
  • Submitted: 2011-05-02
  • Updated: 2011-05-04
  • Resolved: 2011-05-04
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7
7Resolved
Related Reports
Duplicate :  
Relates :  
Description
J2SE Version (please include all output from java -version flag):

java version "1.7.0-ea"
Java(TM) SE Runtime Environment (build 1.7.0-ea-b140)
Java HotSpot(TM) Client VM (build 21.0-b10, mixed mode, sharing)

Does this problem occur on J2SE 1.4.x, 1.5 or 6?  Yes / No (pick one)
No


Operating System Configuration Information (be specific):
Windows Vista Business SP2

Hardware Configuration Information (be specific):
HP Pavillion dv9000
Windows Vista Business SP1 32 bit
3 GB RAM
Intel Core 2 Duo T9300



Bug Description:

We have a lazily loaded UI that somewhat resembles the attached test program. 
What happens is that the user interface is created, with a table in a tabbed pane.

The data to populate the rows is loaded in the background.  If that tab with the
table is showing when the rows are added, everything is fine.  But if  the tab 
is selected after the rows are added, the table does not show them.  To get them 
to show, resize the frame or a column.  

This is not the behaviour of 1.6


Steps to Reproduce (be specific):

Use the NB7 project

Run the project with run config Test6
The dialog will show.  Don't do anything to the interface until the "Adding Rows"
shows up in the console

Change to the 'Second' tab.
The table will have 3 rows.

Now do the same thing using the Test7 run configuration.
The table will not show the 3 rows until the frame or the columns are resized.

On the third run, change to the 'Second' tab immediately (still using Test7 
run config).
The rows will show up as they should.

Adding rows using the big button on the "First" tab also shows the same issue.

Comments
EVALUATION This is another regression of 6852592
03-05-2011