Advertisement
LaCaraDeLaVerga

class Presentacion

Aug 28th, 2016
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 3.39 KB | None | 0 0
  1. package presentacion;
  2.  
  3. import java.awt.EventQueue;
  4.  
  5. import javax.swing.JFrame;
  6. import javax.swing.JTextPane;
  7. import java.awt.Color;
  8. import javax.swing.JLabel;
  9. import javax.swing.JSeparator;
  10. import com.jgoodies.forms.factories.DefaultComponentFactory;
  11.  
  12. public class presentation {
  13.  
  14.     private JFrame frame;
  15.  
  16.     /**
  17.      * Launch the application.
  18.      */
  19.     public static void main(String[] args) {
  20.         EventQueue.invokeLater(new Runnable() {
  21.             public void run() {
  22.                 try {
  23.                     presentation window = new presentation();
  24.                     window.frame.setVisible(true);
  25.                 } catch (Exception e) {
  26.                     e.printStackTrace();
  27.                 }
  28.             }
  29.         });
  30.     }
  31.  
  32.     /**
  33.      * Create the application.
  34.      */
  35.     public presentation() {
  36.         initialize();
  37.     }
  38.  
  39.     /**
  40.      * Initialize the contents of the frame.
  41.      */
  42.     private void initialize() {
  43.         frame = new JFrame();
  44.         frame.getContentPane().setBackground(Color.BLUE);
  45.         frame.setBounds(100, 100, 450, 300);
  46.         frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  47.         frame.getContentPane().setLayout(null);
  48.        
  49.         JTextPane txtpnGap = new JTextPane();
  50.         txtpnGap.setBounds(210, 104, 43, 43);
  51.         frame.getContentPane().add(txtpnGap);
  52.        
  53.         JTextPane textPane_0 = new JTextPane();
  54.         textPane_0.setBounds(259, 104, 43, 43);
  55.         frame.getContentPane().add(textPane_0);
  56.        
  57.         JTextPane textPane_1 = new JTextPane();
  58.         textPane_1.setBounds(210, 55, 43, 43);
  59.         frame.getContentPane().add(textPane_1);
  60.        
  61.         JTextPane textPane_2 = new JTextPane();
  62.         textPane_2.setBounds(259, 55, 43, 43);
  63.         frame.getContentPane().add(textPane_2);
  64.        
  65.         JTextPane textPane_3 = new JTextPane();
  66.         textPane_3.setBounds(160, 104, 43, 43);
  67.         frame.getContentPane().add(textPane_3);
  68.        
  69.         JTextPane textPane_4 = new JTextPane();
  70.         textPane_4.setBounds(110, 55, 43, 43);
  71.         frame.getContentPane().add(textPane_4);
  72.        
  73.         JTextPane textPane_5 = new JTextPane();
  74.         textPane_5.setBounds(160, 55, 43, 43);
  75.         frame.getContentPane().add(textPane_5);
  76.        
  77.         JTextPane textPane_6 = new JTextPane();
  78.         textPane_6.setBounds(110, 104, 43, 43);
  79.         frame.getContentPane().add(textPane_6);
  80.        
  81.         JTextPane textPane_7 = new JTextPane();
  82.         textPane_7.setBounds(110, 152, 43, 43);
  83.         frame.getContentPane().add(textPane_7);
  84.        
  85.         JTextPane textPane_8 = new JTextPane();
  86.         textPane_8.setBounds(160, 152, 43, 43);
  87.         frame.getContentPane().add(textPane_8);
  88.        
  89.         JTextPane textPane_9 = new JTextPane();
  90.         textPane_9.setBounds(210, 152, 43, 43);
  91.         frame.getContentPane().add(textPane_9);
  92.        
  93.         JTextPane textPane_10 = new JTextPane();
  94.         textPane_10.setBounds(259, 152, 43, 43);
  95.         frame.getContentPane().add(textPane_10);
  96.        
  97.         JTextPane textPane_11 = new JTextPane();
  98.         textPane_11.setBounds(110, 200, 43, 43);
  99.         frame.getContentPane().add(textPane_11);
  100.        
  101.         JTextPane textPane_12 = new JTextPane();
  102.         textPane_12.setBounds(160, 200, 43, 43);
  103.         frame.getContentPane().add(textPane_12);
  104.        
  105.         JTextPane textPane_13 = new JTextPane();
  106.         textPane_13.setBounds(210, 200, 43, 43);
  107.         frame.getContentPane().add(textPane_13);
  108.        
  109.         JTextPane textPane_14 = new JTextPane();
  110.         textPane_14.setBounds(259, 200, 43, 43);
  111.         frame.getContentPane().add(textPane_14);
  112.        
  113.         JLabel label = new JLabel("2048");
  114.         label.setBounds(191, 11, 84, 33);
  115.         frame.getContentPane().add(label);
  116.        
  117.         JSeparator separator = new JSeparator();
  118.         separator.setBackground(Color.YELLOW);
  119.         separator.setBounds(81, 154, -59, -41);
  120.         frame.getContentPane().add(separator);
  121.     }
  122. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement