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

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -