Skip to content

Instantly share code, notes, and snippets.

@shah-smit
Created September 27, 2016 13:19
Show Gist options
  • Save shah-smit/ffa9f9b3ee866b696bbdf63c49305527 to your computer and use it in GitHub Desktop.
Save shah-smit/ffa9f9b3ee866b696bbdf63c49305527 to your computer and use it in GitHub Desktop.
Tabbed Panel Java Application
import javax.swing.*;
public class TabbedFrame {
public static void main(String[] args) {
// TODO Auto-generated method stub
JFrame frame = new JFrame("ButtonClickPanel Demo");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
JTabbedPane tp = new JTabbedPane();
tp.addTab("Base to Decimal", null);
tp.addTab("Decimal to Base", null);
frame.add(tp);
frame.pack();
frame.setVisible(true);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment