Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package presentacion;
- import java.awt.EventQueue;
- import javax.swing.JFrame;
- import javax.swing.JTextPane;
- import java.awt.Color;
- import javax.swing.JLabel;
- import javax.swing.JSeparator;
- import com.jgoodies.forms.factories.DefaultComponentFactory;
- public class presentation {
- private JFrame frame;
- /**
- * Launch the application.
- */
- public static void main(String[] args) {
- EventQueue.invokeLater(new Runnable() {
- public void run() {
- try {
- presentation window = new presentation();
- window.frame.setVisible(true);
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
- });
- }
- /**
- * Create the application.
- */
- public presentation() {
- initialize();
- }
- /**
- * Initialize the contents of the frame.
- */
- private void initialize() {
- frame = new JFrame();
- frame.getContentPane().setBackground(Color.BLUE);
- frame.setBounds(100, 100, 450, 300);
- frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
- frame.getContentPane().setLayout(null);
- JTextPane txtpnGap = new JTextPane();
- txtpnGap.setBounds(210, 104, 43, 43);
- frame.getContentPane().add(txtpnGap);
- JTextPane textPane_0 = new JTextPane();
- textPane_0.setBounds(259, 104, 43, 43);
- frame.getContentPane().add(textPane_0);
- JTextPane textPane_1 = new JTextPane();
- textPane_1.setBounds(210, 55, 43, 43);
- frame.getContentPane().add(textPane_1);
- JTextPane textPane_2 = new JTextPane();
- textPane_2.setBounds(259, 55, 43, 43);
- frame.getContentPane().add(textPane_2);
- JTextPane textPane_3 = new JTextPane();
- textPane_3.setBounds(160, 104, 43, 43);
- frame.getContentPane().add(textPane_3);
- JTextPane textPane_4 = new JTextPane();
- textPane_4.setBounds(110, 55, 43, 43);
- frame.getContentPane().add(textPane_4);
- JTextPane textPane_5 = new JTextPane();
- textPane_5.setBounds(160, 55, 43, 43);
- frame.getContentPane().add(textPane_5);
- JTextPane textPane_6 = new JTextPane();
- textPane_6.setBounds(110, 104, 43, 43);
- frame.getContentPane().add(textPane_6);
- JTextPane textPane_7 = new JTextPane();
- textPane_7.setBounds(110, 152, 43, 43);
- frame.getContentPane().add(textPane_7);
- JTextPane textPane_8 = new JTextPane();
- textPane_8.setBounds(160, 152, 43, 43);
- frame.getContentPane().add(textPane_8);
- JTextPane textPane_9 = new JTextPane();
- textPane_9.setBounds(210, 152, 43, 43);
- frame.getContentPane().add(textPane_9);
- JTextPane textPane_10 = new JTextPane();
- textPane_10.setBounds(259, 152, 43, 43);
- frame.getContentPane().add(textPane_10);
- JTextPane textPane_11 = new JTextPane();
- textPane_11.setBounds(110, 200, 43, 43);
- frame.getContentPane().add(textPane_11);
- JTextPane textPane_12 = new JTextPane();
- textPane_12.setBounds(160, 200, 43, 43);
- frame.getContentPane().add(textPane_12);
- JTextPane textPane_13 = new JTextPane();
- textPane_13.setBounds(210, 200, 43, 43);
- frame.getContentPane().add(textPane_13);
- JTextPane textPane_14 = new JTextPane();
- textPane_14.setBounds(259, 200, 43, 43);
- frame.getContentPane().add(textPane_14);
- JLabel label = new JLabel("2048");
- label.setBounds(191, 11, 84, 33);
- frame.getContentPane().add(label);
- JSeparator separator = new JSeparator();
- separator.setBackground(Color.YELLOW);
- separator.setBounds(81, 154, -59, -41);
- frame.getContentPane().add(separator);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement