posted 18 years ago
Hi guys,
I have a frame that has a JTabbedPane(with 2 tabs) & a JButton. As is obvious, at a time contents of only one tab can be seen, and that of the other are hidden...
My problem is at the click of the button, focus ahould be set to the tab whose contents are not seen and thus its contents should become visible.
I am looking only for code that can set the focus to the hidden tab when the JButton is clicked. i.e. the code that can be placed inside the actionPerformed(ActionEvent) method.
Any help provided regarding this would be greately appreciated...
If your new Big Idea doesn't scare the hell out of you, <br />it's probably not a "new Big Idea".