componentShown Event broken in 1.6.0 and 1.6.0_01

Hi

I tried to run my java desktop application in JDK 1.6 (and the new update). Both seem to have a problem with the componentShown event.

One of my panels uses this event to register a default button in the root pane. However, this doesn't work any more in the new JDK. Debugging the problem and setting a breakpoint in the event call, navigating up the component hierarchie reveals the panels grandparent as expected (a JTabbedPane) which in turn has no more component parent(s). Some parents further there should be a JFrames rootpane, but it isn't any more. All JDKs up to 1.5 did not show any problem with that.

My question is now, how can a component like my panel in JDK 1.6 be shown while not being embedded in a JRootPane?

Cheers

Daniel

[784 byte] By [daniel.freya] at [2007-11-27 0:00:25]
# 1

I have no problem accessing the rootpane under JDK 1.6.0. I have a JTextComponent in a JScrollPane in a JTabbedPane. I attach a ComponentListener to the text component when it's created, and in the componentShown() method I call getRootPane() on the text component, and it works. What are you doing differently?

uncle_alicea at 2007-7-11 15:50:29 > top of Java-index,Desktop,Core GUI APIs...