java - Switch from panel into tabbedPane -


i have tabbedpane contain 2 jpanel.

tabbedpane = new jtabbedpane();  tabbedpane.addtab("main", null, mainpanel, "does nothing");     tabbedpane.setmnemonicat(0, keyevent.vk_1);  tabbedpane.addtab("report", null, reportpanel, "still nothing"); 

i'm in first panel , after operation pass second pannel (main -> report).

how can it?

jtabbedpane#setselectedindex(int index)


Comments

Popular posts from this blog

Admob integration with pygame in android -

Function that returns a formatted array in VBA -

python - performance - finding all points within certain distance by lat/long -