Board index » jbuilder » Activating and showing components?

Activating and showing components?


2003-08-20 07:39:44 PM
jbuilder7
how can i activate a component by programm code?
I have multiple tabs in a jTabpanel and want to switch to another tab.
I tried
tabPanel.requestFocus();
but nothing happened.
setvisible(true) displays the content of the panel over the actual panel...
not good. ;-)
I think it's easy if you know it...
Thanx
 
 

Re:Activating and showing components?

"Ralph Steins" < XXXX@XXXXX.COM >writes:
Quote
how can i activate a component by programm code?
I have multiple tabs in a jTabpanel and want to switch to another tab.
setSelectedIndex(int) is the one you want.