Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.awt.BorderLayout;
- import java.awt.EventQueue;
- import javax.swing.JFrame;
- import javax.swing.JPanel;
- import javax.swing.border.EmptyBorder;
- import javax.swing.JTextField;
- import javax.swing.JLabel;
- import java.awt.Font;
- public class BUKVA extends JFrame {
- public JPanel contentPane;
- /**
- * Launch the application.
- */
- public static void main(String[] args) {
- EventQueue.invokeLater(new Runnable() {
- public void run() {
- try {
- BUKVA frame = new BUKVA();
- frame.setVisible(true);
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
- });
- }
- /**
- * Create the frame.
- */
- public BUKVA() {
- setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
- setBounds(100, 100, 439, 300);
- contentPane = new JPanel();
- contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
- setContentPane(contentPane);
- contentPane.setLayout(null);
- JLabel BukvaText = new JLabel("New label");
- BukvaText.setFont(new Font("Times New Roman", Font.PLAIN, 35));
- BukvaText.setBounds(138, 133, 220, 59);
- contentPane.add(BukvaText);
- JLabel Bukva = new JLabel("New label");
- Bukva.setFont(new Font("Times New Roman", Font.PLAIN, 35));
- Bukva.setBounds(138, 11, 220, 59);
- contentPane.add(Bukva);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement