Commit 6b4de2de authored by 9831111's avatar 9831111 🙂

Add login frame class.

parents
Pipeline #5350 canceled with stages
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>
import javax.swing.*;
import javax.swing.border.LineBorder;
import javax.swing.border.TitledBorder;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;
import java.util.Scanner;
public class LoginFrame extends JFrame {
private JTextField userName;
private JPasswordField passwordField;
private JCheckBox remindMe;
private JPanel informationPanel;
private JPanel buttonPanel;
private JButton signIn;
private JButton signUp;
private ImageIcon tankPhoto;
public LoginFrame() {
setBackground(Color.WHITE);
setResizable(false);
setLayout(new BorderLayout());
setBounds(700, 250, 320, 515);
// initLoginFrame();
// initRemindMe();
// initInformationPanel();
setVisible(true);
}
}
public class Main {
public static void main(String[] args) {
System.out.println("Hello World!");
}
}
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