You are on page 1of 1

wel.

java Wednesday, May 4, 2022, 9:30 AM

1 package Login_Sys;
2
3 import java.awt.BorderLayout;
14
15 public class wel extends JFrame {
16
17 private JPanel contentPane;
18
19 /**
20 * Launch the application.
21 */
22 public static void main(String[] args) {
23 EventQueue.invokeLater(new Runnable() {
24 public void run() {
25 try {
26 wel frame = new wel();
27 frame.setVisible(true);
28 } catch (Exception e) {
29 e.printStackTrace();
30 }
31 }
32 });
33 }
34
35 /**
36 * Create the frame.
37 */
38 public wel() {
39 setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
40 setBounds(100, 100, 450, 300);
41 contentPane = new JPanel();
42 contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
43 setContentPane(contentPane);
44 contentPane.setLayout(null);
45
46 JLabel lblNewLabel = new JLabel("Welcome");
47 lblNewLabel.setFont(new Font("Tahoma", Font.PLAIN, 25));
48 lblNewLabel.setBounds(157, 59, 112, 65);
49 contentPane.add(lblNewLabel);
50
51 JButton btnNewButton = new JButton("Exit");
52 btnNewButton.addActionListener(new ActionListener() {
53 public void actionPerformed(ActionEvent e) {
54 JFrame frmLoginSystem = new JFrame("Exit");
55 System.exit(0);
56 }
57 });
58 btnNewButton.setFont(new Font("Tahoma", Font.PLAIN, 15));
59 btnNewButton.setBounds(303, 185, 89, 23);
60 contentPane.add(btnNewButton);
61 }
62
63 }
64

Page 1

You might also like