Sunday 15 February 2015

jtable - Java reorder tabs in JTabbedPane -


My problem is that I need to set the tab to be the left tab in JetBeadPain, to complete this Which method would you use?

You want to change so that you know how to change when the tab is selected. You can then use methods in JetBuddPan to remove and re-insert it in a specific index.

TabbedPan.Adchange Listener (new ChangeListener) // You need it so that you can not alter ChangeEvents such that you remove and insert Pulse Boolean listen = true; @over्राइड पब्लिक व्हाउड State Changed (ChangeEvent E) {Init Index = TabbedPen.Gate Select Indies (if;); (Listen & Index! = 0); listening = false; You need to recreate the tab for the information String Title = TabbedPen GateTiteLat (E Dex); Component Component = TabbedpenGetTabCompentAtt (Index); // Old Tab TabbedPan. ExtractBab (Index); // Insert a New TabbedPane.insertTab (Title, Blank, Component, Blank, 0); // Current Tab tab select dPane.setSelectedIndex (0); hear = true;}}});

No comments:

Post a Comment