Issue Details (XML | Word | Printable)

Key: JDIC-349
Type: Bug Bug
Status: Open Open
Priority: Critical Critical
Assignee: michael_shan
Reporter: mbucher
Votes: 0
Watchers: 0

If you were logged in you would be able to see more operations.

JTabbedPane paint problem (JDK1.4.2)

Created: 06/Jan/06 06:44 AM   Updated: 06/Jan/06 06:44 AM
Component/s: www
Affects Version/s: current
Fix Version/s: None

Time Tracking:
Not Specified


Operating System: Windows 2000
Platform: PC

Issuezilla Id: 349
Participants: mbucher and michael_shan

 Description  « Hide

WebBrowser component in JTabbedPane shows up even its tab is not selected.
Defect only with JDK 1.4.2. Works correct on JDK5.

To reproduce, try this code with JDK1.4.2:
package de.inxnet.inxmail;

import java.awt.BorderLayout;
import java.awt.Color;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JTabbedPane;

import org.jdesktop.jdic.browser.WebBrowser;

public class BrowserTestCase
private WebBrowser webBrowser;

public BrowserTestCase()

{ JPanel p1 = new JPanel(); p1.setBackground( Color.GREEN ); JPanel p2 = new JPanel( new BorderLayout() ); webBrowser = new WebBrowser( true ); p2.add( webBrowser ); JTabbedPane tab = new JTabbedPane(); tab.add( "1", p1 ); tab.add( "2", p2 ); JFrame frame = new JFrame( "JDIC Browser test" ); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.getContentPane().add( tab ); frame.setBounds( 0, 0, 640, 480 ); frame.setVisible( true ); webBrowser.setContent( "<html><body><b>Content of Tab #2</b>"+ " (Tab #1 is EMPTY!)</body></html>" ); }

public static void main( String[] args ) throws Exception

{ new BrowserTestCase(); }


There are no comments yet on this issue.