@@ -0,0 +1,1950 @@
+import java.awt.BorderLayout;%0Aimport java.awt.Component;%0Aimport java.awt.FlowLayout;%0Aimport java.awt.event.ActionEvent;%0Aimport java.awt.event.ActionListener;%0Aimport java.io.File;%0Aimport java.io.IOException;%0A%0Aimport javax.imageio.ImageIO;%0Aimport javax.swing.ImageIcon;%0Aimport javax.swing.JButton;%0Aimport javax.swing.JComponent;%0Aimport javax.swing.JLabel;%0Aimport javax.swing.JPanel;%0Aimport javax.swing.JPasswordField;%0Aimport javax.swing.JTextField;%0A%0Apublic class LoginPanel extends JPanel %7B%0A%0A%09JPanel logoPanel;%0A%09JLabel logoLabel;%0A%09JPanel centerPanel;%0A%09JLabel emailLabel;%0A%09JTextField emailField;%0A%09JLabel passwordLabel;%0A%09JPasswordField passwordField;%0A%09JPanel buttonsPanel;%0A%09JButton loginButton;%0A%0A%0A%09public LoginPanel()%7B%0A%09%09setLayout(new BorderLayout());%0A%09%09this.add(getHeader(), BorderLayout.NORTH);%0A%09%09this.add(getTextArea(), BorderLayout.CENTER);%0A%09%09this.add(getButtonPanel(), BorderLayout.SOUTH);%0A%09%7D%0A%0A%09protected JComponent getHeader() %7B%0A%09%09logoPanel = new JPanel();%0A%09%09logoLabel = new JLabel(%22%22, JLabel.CENTER);%0A%09%09add(logoLabel);  %0A%09%09ImageIcon logo = new ImageIcon(%22logo-tutorys.png%22);   %0A%09%09logoLabel.setIcon(logo);%0A%09%09return logoLabel;  %0A%09%7D %0A%0A%09protected JComponent getTextArea() %7B%0A%09%09centerPanel = new JPanel();%0A%09%09centerPanel.setLayout(new FlowLayout());%0A%09%09emailLabel = new JLabel(%22Email: %22);%0A%09%09emailField = new JTextField(33);%0A%09%09passwordLabel = new JLabel(%22Password: %22);%0A%09%09passwordField = new JPasswordField(33);%0A%09%09centerPanel.add(emailLabel);%0A%09%09centerPanel.add(emailField);%0A%09%09centerPanel.add(passwordLabel);%0A%09%09centerPanel.add(passwordField);%0A%09%09return centerPanel;%0A%09%7D%0A%09%0A%09protected JComponent getButtonPanel() %7B%0A%09%09buttonsPanel = new JPanel();%0A%09%09buttonsPanel.setLayout(new FlowLayout());%0A%09%09loginButton = new JButton(%22Login%22);%0A%09%09loginButton.addActionListener(new ActionListener() %7B%0A%09%09%09public void actionPerformed(ActionEvent e) %7B%0A%09%09%09%09loginButton.setText(%22You have clicked on the button%22);%0A%09%09%09%7D%0A%09%09%7D);%0A%09%09buttonsPanel.add(loginButton);%0A%09%09return buttonsPanel;%0A%09%7D%0A%7D%0A

Create LoginPanel.java