If any desktop application created in netbeans is using several tabs. Then each time the application is started, it will show the last selected tab. Even , by initially calling setSelectedIndex(int index) methodof JTabbedPane wont work. To resolve this issue following steps needs to be followed :Go to the class which extends SingleFrameApplication (,i.e,having public static void main).Update the overridden method shutdown() by selecting the default tab before super.shutdown() is called.
Friday, December 18, 2009
JTabbedPane for Netbeans Desktop Application
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment