package car1; import java.awt.BorderLayout; import java.awt.EventQueue; import javax.swing.JFrame; import javax.swing.JPanel; import javax.swing.border.EmptyBorder; import javax.swing.JButton; import java.awt.event.ActionListener; import java.awt.event.ActionEvent; public class Welcome extends JFrame { private JPanel contentPane; static Welcome frame; //Welcome frame = new Welcome(); /** * Launch the application. */ public static void main(String[] args) { EventQueue.invokeLater(new Runnable() { public void run() { try { frame = new Welcome(); frame.setVisible(true); } catch (Exception e) { e.printStackTrace(); } } }); } /** * Create the frame. */ public Welcome() { setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); setBounds(100, 100, 450, 300); contentPane = new JPanel(); contentPane.setBorder(new EmptyBorder(5, 5, 5, 5)); setContentPane(contentPane); contentPane.setLayout(null); JButton btnLogout = new JButton("Logout"); btnLogout.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { } }); btnLogout.setBounds(318, 227, 89, 23); contentPane.add(btnLogout); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)