Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package window_st;
- import java.awt.BorderLayout;
- import javax.swing.JFrame;
- import javax.swing.JPanel;
- import javax.swing.JTabbedPane;
- public class GuiDisplay extends JFrame{
- public static void main(String[] args){
- GuiDisplay frame = new GuiDisplay();
- frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
- frame.setBounds(500, 500, 500, 500);
- frame.setTitle("swing.JFrame.test");
- frame.setVisible(true);
- }
- GuiDisplay(){
- JTabbedPane tabbedpane = new JTabbedPane();
- JPanel tabPanel1 = new JPanel();
- JPanel tabPanel2 = new JPanel();
- tabbedpane.addTab("console", tabPanel1);
- tabbedpane.addTab("commndline", tabPanel2);
- getContentPane().add(tabbedpane, BorderLayout.CENTER);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement