jTabbedPane opens different tab on loading
Posted
by Santeron
on Stack Overflow
See other posts from Stack Overflow
or by Santeron
Published on 2010-03-02T17:43:53Z
Indexed on
2010/03/23
12:23 UTC
Read the original article
Hit count: 497
Hey mates,
First of all I'm using netbeans as my IDE and I don't know if this is causing it. When I run my program (even if I have build it and run the .jar) I think it selects the tab that was previously selected (before quiting). So if for example I close the app with the third tab selected, it starts up with that selected again. Is there a known solution for this? The selectedIndex property on the jTabbedPane is set to 0. Shouldn't this property be the default onLoad value?
Thx in advance, Jimmy
PS. BTW for some reason it didn't submit my question in Opera (?)
© Stack Overflow or respective owner