Advertisement
Guest User

BUKVA

a guest
Dec 12th, 2019
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.30 KB | None | 0 0
  1. import java.awt.BorderLayout;
  2. import java.awt.EventQueue;
  3.  
  4. import javax.swing.JFrame;
  5. import javax.swing.JPanel;
  6. import javax.swing.border.EmptyBorder;
  7. import javax.swing.JTextField;
  8. import javax.swing.JLabel;
  9. import java.awt.Font;
  10.  
  11. public class BUKVA extends JFrame {
  12.  
  13. public JPanel contentPane;
  14.  
  15. /**
  16. * Launch the application.
  17. */
  18. public static void main(String[] args) {
  19. EventQueue.invokeLater(new Runnable() {
  20. public void run() {
  21. try {
  22. BUKVA frame = new BUKVA();
  23. frame.setVisible(true);
  24. } catch (Exception e) {
  25. e.printStackTrace();
  26. }
  27. }
  28. });
  29. }
  30.  
  31. /**
  32. * Create the frame.
  33. */
  34.  
  35. public BUKVA() {
  36.  
  37.  
  38.  
  39. setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  40. setBounds(100, 100, 439, 300);
  41. contentPane = new JPanel();
  42. contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
  43. setContentPane(contentPane);
  44. contentPane.setLayout(null);
  45.  
  46.  
  47.  
  48. JLabel BukvaText = new JLabel("New label");
  49. BukvaText.setFont(new Font("Times New Roman", Font.PLAIN, 35));
  50. BukvaText.setBounds(138, 133, 220, 59);
  51. contentPane.add(BukvaText);
  52.  
  53.  
  54. JLabel Bukva = new JLabel("New label");
  55. Bukva.setFont(new Font("Times New Roman", Font.PLAIN, 35));
  56. Bukva.setBounds(138, 11, 220, 59);
  57. contentPane.add(Bukva);
  58.  
  59.  
  60.  
  61.  
  62. }
  63.  
  64.  
  65. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement