How to change the tab of a jTabbedPane when action performed
The scenario is like this : I have a jTabbedPane with 2 tabs. I want, when an action is performed in one tab (for example a button is clicked on tab1) to change the tab automatically (to make tab2 visible). How can i do this?Thank you in advance
[259 byte] By [
Opaquea] at [2007-11-27 6:46:42]

# 2
I've read JTabbedPane API before i post the message, but unfortunately i couldn't find a solution to my problem. I tried to use the methods grabFocus and requestFocus to change the focus of the application, but it didn't work.Thank you for replying Nether.
# 4
Nether, i don't know what to say, i'm inexcusable. I really looked, but i guess i missed this function!!!Anyway, thanks again....