Advertisement
Guest User

Untitled

a guest
Mar 28th, 2015
249
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.85 KB | None | 0 0
  1. public class GUI extends JFrame{
  2. private JTextField blabla;
  3.  
  4. public GUI() {
  5.  
  6. setBounds(100, 100, 453, 183);
  7. setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  8. getContentPane().setLayout(null);
  9.  
  10. setResizable(false);
  11. setLocationRelativeTo(null);
  12. setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  13. setTitle("this is text...");
  14.  
  15. JLabel lbllol = DefaultComponentFactory.getInstance().createTitle("this is text...");
  16. lbllol.setForeground(Color.BLACK);
  17. lbllol.setFont(new Font("Arial Black", Font.PLAIN, 20));
  18. lbllol.setBounds(57, 11, 253, 36);
  19. getContentPane().add(lbllol);
  20.  
  21. JLabel lblNewJgoodiesTitle = DefaultComponentFactory.getInstance().createTitle("this is text...");
  22. lblNewJgoodiesTitle.setFont(new Font("Arial Black", Font.PLAIN, 13));
  23. lblNewJgoodiesTitle.setBounds(320, 21, 105, 21);
  24. getContentPane().add(lblNewJgoodiesTitle);
  25.  
  26. JLabel lblNewJgoodiesLabel = DefaultComponentFactory.getInstance().createLabel("this is text...");
  27. lblNewJgoodiesLabel.setFont(new Font("Calibri", Font.PLAIN, 16));
  28. lblNewJgoodiesLabel.setBounds(10, 69, 258, 44);
  29. getContentPane().add(lblNewJgoodiesLabel);
  30. lblNewJgoodiesLabel.setToolTipText("this is text...");
  31.  
  32. Button startButton = new Button("this is text...");
  33. startButton.setFont(new Font("Dialog", Font.PLAIN, 14));
  34. startButton.setBounds(301, 85, 90, 28);
  35. getContentPane().add(startButton);
  36.  
  37. JLabel lblNewJgoodiesLabel_1 = DefaultComponentFactory.getInstance().createLabel("this is text...");
  38. lblNewJgoodiesLabel_1.setFont(new Font("Tahoma", Font.BOLD, 11));
  39. lblNewJgoodiesLabel_1.setBounds(174, 45, 217, 36);
  40. getContentPane().add(lblNewJgoodiesLabel_1);
  41.  
  42. blabla = new JTextField();
  43. blabla.setBounds(94, 81, 42, 20);
  44. getContentPane().add(blabla);
  45. blabla.setColumns(10);
  46. blabla.setToolTipText("this is text...");
  47. setVisible(true);
  48. }
  49. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement