Commit 178d1ccf authored by 9831111's avatar 9831111 🙂

Add initLoginFrame method.

parent 6b4de2de
......@@ -28,10 +28,42 @@ public class LoginFrame extends JFrame {
setLayout(new BorderLayout());
setBounds(700, 250, 320, 515);
// initLoginFrame();
initLoginFrame();
// initRemindMe();
// initInformationPanel();
setVisible(true);
}
public void initLoginFrame() {
tankPhoto = new ImageIcon("gifFiles/gif.gif");
JLabel tankPhotoLabel = new JLabel(tankPhoto);
add(tankPhotoLabel, BorderLayout.NORTH);
userName = new JTextField();
userName.setBorder(new TitledBorder("Username :"));
userName.setBackground(Color.lightGray);
passwordField = new JPasswordField("");
passwordField.setBorder(new TitledBorder("Password :"));
passwordField.setBackground(Color.lightGray);
remindMe = new JCheckBox("Remind Me");
remindMe.setBackground(Color.lightGray);
buttonPanel = new JPanel();
buttonPanel.setBorder(new LineBorder(Color.DARK_GRAY));
signIn = new JButton(" Sign in ");
signUp = new JButton(" Sign up ");
signIn.setFont(new Font("Marker Felt", Font.BOLD, 15));
signUp.setFont(new Font("Marker Felt", Font.BOLD, 15));
buttonPanel.add(signIn);
buttonPanel.add(signUp);
add(buttonPanel, BorderLayout.SOUTH);
// signUp.addActionListener(new SignUpAction());
// signIn.addActionListener(new SignInAction());
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment