Advertisement
ganryu

Pantallas

Nov 27th, 2014
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.56 KB | None | 0 0
  1. package vista;
  2.  
  3. import javax.swing.JFrame;
  4. import javax.swing.JPanel;
  5. import javax.swing.JTabbedPane;
  6.  
  7. public class Pantallas extends JTabbedPane {
  8.  
  9.     private static final long serialVersionUID = 1L;
  10.    
  11.     JTabbedPane pantallas = new JTabbedPane();
  12.    
  13.     public Pantallas(JPanel panelTablero) {
  14.         pantallas.add("Juego", panelTablero);
  15.         pantallas.add("Ayuda", new JPanel());
  16.     }
  17.    
  18.     public static void main(String[] args) {
  19.         JFrame frame = new JFrame();
  20.         frame.pack();
  21.         frame.setVisible(true);
  22.         frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  23.     }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement