/**
* For testing purpose
* @param args
*/
public static void main(String[] args){
final UserProperties userProperties=new UserProperties("splitTab");
userProperties.read();
javax.swing.JFrame f=new javax.swing.JFrame(SplitTabPane.class.getName());
SplitTabPaneTest sts=new SplitTabPaneTest(f,JSplitPane.HORIZONTAL_SPLIT);
addElement(sts, "one", TAB);
f.getContentPane().add(sts,BorderLayout.SOUTH);
System.out.println("SOUTH=====================");
sts.print();
SplitTabPaneTest stn=new SplitTabPaneTest(f,JSplitPane.HORIZONTAL_SPLIT);
addElement(stn, "one", SPLIT);
addElement(stn, "two", TAB);
addElement(stn, "three", SPLIT);
f.getContentPane().add(stn,BorderLayout.NORTH);
System.out.println("NORTH=====================");
stn.print();
SplitTabPaneTest ste=new SplitTabPaneTest(f,JSplitPane.VERTICAL_SPLIT);
addElement(ste, "one", TAB);
addElement(ste, "two", TAB);
f.getContentPane().add(ste,BorderLayout.EAST);
System.out.println("EAST=====================");
ste.print();
SplitTabPaneTest stw=new SplitTabPaneTest(f,JSplitPane.VERTICAL_SPLIT);
addElement(stw, "one", SPLIT);
addElement(stw, "two", SPLIT);
addElement(stw, "three", SPLIT);
f.getContentPane().add(stw,BorderLayout.WEST);
System.out.println("WEST=====================");
stw.print();
final SplitTabPaneTest stc=new SplitTabPaneTest(f,JSplitPane.VERTICAL_SPLIT);
addElement(stc, "one", SPLIT);
addElement(stc, "two", TAB);
addElement(stc, "three", TAB);
addElement(stc, "four", SPLIT);
f.getContentPane().add(stc,BorderLayout.CENTER);
System.out.println("CENTER=====================");
stc.print();
f.setDefaultCloseOperation(javax.swing.JFrame.DISPOSE_ON_CLOSE);
f.addWindowListener(new WindowAdapter(){
public void windowClosing(WindowEvent e) {
stc.save(userProperties,"center");
userProperties.write();
System.exit(0);
}
});
f.pack();