return -1;
}
// Debug
public static void main(String[] args) {
Frame frame = new Frame("Tabs"); //$NON-NLS-1$
frame.setLayout(new BorderLayout());
Label l1 = new Label("Test label 1"); //$NON-NLS-1$
Panel p1 = new Panel(new BorderLayout());
p1.add(l1, BorderLayout.CENTER);
Label l2 = new Label("Test label 2"); //$NON-NLS-1$
Panel p2 = new Panel(new BorderLayout());
p2.add(l2, BorderLayout.CENTER);
Label l3 = new Label("Test label 3"); //$NON-NLS-1$
Panel p3 = new Panel(new BorderLayout());
p3.add(l3, BorderLayout.CENTER);
Label l4 = new Label("Test label 4"); //$NON-NLS-1$
Panel p4 = new Panel(new BorderLayout());
p4.add(l4, BorderLayout.CENTER);
TabbedPanel tabs = new TabbedPanel(TabbedPanel.TOP);
tabs.add("Test Tab 1", p1); //$NON-NLS-1$
tabs.add(Messages.getString("TabbedPanel.11"), p2); //$NON-NLS-1$
tabs.add(Messages.getString("TabbedPanel.12"), p3); //$NON-NLS-1$
tabs.add(Messages.getString("TabbedPanel.13"), p4); //$NON-NLS-1$
tabs.setSelectedTab(1);
frame.add(tabs, BorderLayout.CENTER);
frame.pack();
frame.addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent evt) {
System.exit(0);
}
});
frame.setVisible(true);
}