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.JLabel;
- import java.awt.Font;
- import java.awt.Color;
- import javax.swing.JButton;
- import java.awt.event.ActionListener;
- import java.awt.event.ActionEvent;
- public class AZBUKA extends JFrame {
- private JPanel contentPane;
- /**
- * Launch the application.
- */
- public static void main(String[] args) {
- EventQueue.invokeLater(new Runnable() {
- public void run() {
- try {
- AZBUKA frame1 = new AZBUKA();
- frame1.setVisible(true);
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
- });
- }
- /**
- * Create the frame.
- */
- public AZBUKA() {
- setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
- setBounds(100, 100, 705, 448);
- contentPane = new JPanel();
- contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
- setContentPane(contentPane);
- contentPane.setLayout(null);
- JLabel lblEnglishAl = new JLabel("English alphabet");
- lblEnglishAl.setForeground(new Color(255, 0, 0));
- lblEnglishAl.setFont(new Font("Times New Roman", Font.BOLD, 28));
- lblEnglishAl.setBounds(227, 11, 224, 42);
- contentPane.add(lblEnglishAl);
- JButton button = new JButton("Aa");
- button.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent e)
- {
- simple sim = new simple();
- BUKVA buk = new BUKVA();
- sim.setTitle("A");
- sim.setDescription("Apple");
- sim.setPrimers(new primers = {"Aqua","Primer1","Primer2"});
- //buk.setDescription();
- // buk.BukvaText.setText(A);
- buk.setVisible(true);
- }
- });
- button.setForeground(Color.RED);
- button.setToolTipText("");
- button.setFont(new Font("Times New Roman", Font.BOLD, 36));
- button.setBounds(43, 68, 77, 63);
- contentPane.add(button);
- JButton btnBb = new JButton("Bb");
- btnBb.setToolTipText("");
- btnBb.setForeground(new Color(34, 139, 34));
- btnBb.setFont(new Font("Times New Roman", Font.BOLD, 31));
- btnBb.setBounds(130, 68, 77, 63);
- contentPane.add(btnBb);
- JButton btnCc = new JButton("Cc");
- btnCc.setToolTipText("");
- btnCc.setForeground(new Color(0, 0, 255));
- btnCc.setFont(new Font("Times New Roman", Font.BOLD, 36));
- btnCc.setBounds(217, 68, 77, 63);
- contentPane.add(btnCc);
- JButton btnDd = new JButton("Dd");
- btnDd.setToolTipText("");
- btnDd.setForeground(new Color(255, 69, 0));
- btnDd.setFont(new Font("Times New Roman", Font.BOLD, 31));
- btnDd.setBounds(304, 68, 77, 63);
- contentPane.add(btnDd);
- JButton btnEe = new JButton("Ee");
- btnEe.setToolTipText("");
- btnEe.setForeground(Color.RED);
- btnEe.setFont(new Font("Times New Roman", Font.BOLD, 36));
- btnEe.setBounds(394, 68, 77, 63);
- contentPane.add(btnEe);
- JButton btnFf = new JButton("Ff");
- btnFf.setToolTipText("");
- btnFf.setForeground(new Color(34, 139, 34));
- btnFf.setFont(new Font("Times New Roman", Font.BOLD, 36));
- btnFf.setBounds(481, 68, 77, 63);
- contentPane.add(btnFf);
- JButton btnGg = new JButton("Gg");
- btnGg.setToolTipText("");
- btnGg.setForeground(Color.RED);
- btnGg.setFont(new Font("Times New Roman", Font.BOLD, 34));
- btnGg.setBounds(568, 68, 77, 63);
- contentPane.add(btnGg);
- JButton btnHh = new JButton("Hh");
- btnHh.setToolTipText("");
- btnHh.setForeground(new Color(255, 69, 0));
- btnHh.setFont(new Font("Times New Roman", Font.BOLD, 31));
- btnHh.setBounds(43, 142, 77, 63);
- contentPane.add(btnHh);
- JButton btnIi = new JButton("Ii");
- btnIi.setToolTipText("");
- btnIi.setForeground(new Color(0, 0, 255));
- btnIi.setFont(new Font("Times New Roman", Font.BOLD, 36));
- btnIi.setBounds(130, 142, 77, 63);
- contentPane.add(btnIi);
- JButton btnGg_1 = new JButton("Gg");
- btnGg_1.setToolTipText("");
- btnGg_1.setForeground(new Color(139, 0, 139));
- btnGg_1.setFont(new Font("Times New Roman", Font.BOLD, 34));
- btnGg_1.setBounds(217, 142, 77, 63);
- contentPane.add(btnGg_1);
- JButton btnKk = new JButton("Kk");
- btnKk.setToolTipText("");
- btnKk.setForeground(new Color(255, 0, 0));
- btnKk.setFont(new Font("Times New Roman", Font.BOLD, 31));
- btnKk.setBounds(304, 142, 77, 63);
- contentPane.add(btnKk);
- JButton btnLl = new JButton("Ll");
- btnLl.setToolTipText("");
- btnLl.setForeground(new Color(128, 0, 128));
- btnLl.setFont(new Font("Times New Roman", Font.BOLD, 36));
- btnLl.setBounds(394, 142, 77, 63);
- contentPane.add(btnLl);
- JButton btnMm = new JButton("Mm");
- btnMm.setToolTipText("");
- btnMm.setForeground(new Color(0, 0, 255));
- btnMm.setFont(new Font("Times New Roman", Font.BOLD, 22));
- btnMm.setBounds(481, 142, 77, 63);
- contentPane.add(btnMm);
- JButton btnNn = new JButton("Nn");
- btnNn.setToolTipText("");
- btnNn.setForeground(new Color(255, 69, 0));
- btnNn.setFont(new Font("Times New Roman", Font.BOLD, 33));
- btnNn.setBounds(568, 142, 77, 63);
- contentPane.add(btnNn);
- JButton btnOo = new JButton("Oo");
- btnOo.setToolTipText("");
- btnOo.setForeground(new Color(34, 139, 34));
- btnOo.setFont(new Font("Times New Roman", Font.BOLD, 32));
- btnOo.setBounds(43, 216, 77, 63);
- contentPane.add(btnOo);
- JButton btnPp = new JButton("Pp");
- btnPp.setToolTipText("");
- btnPp.setForeground(new Color(128, 0, 128));
- btnPp.setFont(new Font("Times New Roman", Font.BOLD, 36));
- btnPp.setBounds(130, 216, 77, 63);
- contentPane.add(btnPp);
- JButton btnQq = new JButton("Qq");
- btnQq.setToolTipText("");
- btnQq.setForeground(new Color(255, 69, 0));
- btnQq.setFont(new Font("Times New Roman", Font.BOLD, 33));
- btnQq.setBounds(217, 216, 77, 63);
- contentPane.add(btnQq);
- JButton btnRr = new JButton("Rr");
- btnRr.setToolTipText("");
- btnRr.setForeground(new Color(34, 139, 34));
- btnRr.setFont(new Font("Times New Roman", Font.BOLD, 36));
- btnRr.setBounds(304, 216, 77, 63);
- contentPane.add(btnRr);
- JButton btnSs = new JButton("Ss");
- btnSs.setToolTipText("");
- btnSs.setForeground(Color.RED);
- btnSs.setFont(new Font("Times New Roman", Font.BOLD, 36));
- btnSs.setBounds(394, 216, 77, 63);
- contentPane.add(btnSs);
- JButton btnTt = new JButton("Tt");
- btnTt.setToolTipText("");
- btnTt.setForeground(new Color(34, 139, 34));
- btnTt.setFont(new Font("Times New Roman", Font.BOLD, 36));
- btnTt.setBounds(481, 216, 77, 63);
- contentPane.add(btnTt);
- JButton btnUu = new JButton("Uu");
- btnUu.setToolTipText("");
- btnUu.setForeground(new Color(0, 0, 255));
- btnUu.setFont(new Font("Times New Roman", Font.BOLD, 33));
- btnUu.setBounds(568, 216, 77, 63);
- contentPane.add(btnUu);
- JButton btnVv = new JButton("Vv");
- btnVv.setToolTipText("");
- btnVv.setForeground(Color.RED);
- btnVv.setFont(new Font("Times New Roman", Font.BOLD, 36));
- btnVv.setBounds(130, 290, 77, 63);
- contentPane.add(btnVv);
- JButton btnWw = new JButton("Ww");
- btnWw.setToolTipText("");
- btnWw.setForeground(new Color(34, 139, 34));
- btnWw.setFont(new Font("Times New Roman", Font.BOLD, 24));
- btnWw.setBounds(217, 290, 77, 63);
- contentPane.add(btnWw);
- JButton btnXx = new JButton("Xx");
- btnXx.setToolTipText("");
- btnXx.setForeground(new Color(0, 0, 255));
- btnXx.setFont(new Font("Times New Roman", Font.BOLD, 34));
- btnXx.setBounds(304, 290, 77, 63);
- contentPane.add(btnXx);
- JButton btnYy = new JButton("Yy");
- btnYy.setToolTipText("");
- btnYy.setForeground(new Color(128, 0, 128));
- btnYy.setFont(new Font("Times New Roman", Font.BOLD, 36));
- btnYy.setBounds(394, 290, 77, 63);
- contentPane.add(btnYy);
- JButton btnZz = new JButton("Zz");
- btnZz.setToolTipText("");
- btnZz.setForeground(Color.RED);
- btnZz.setFont(new Font("Times New Roman", Font.BOLD, 36));
- btnZz.setBounds(481, 290, 77, 63);
- contentPane.add(btnZz);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement