📄 login.java
字号:
/*
* This is login class. This class is used for login the user has to enter his login name
* and through this Frame user can open the Share frame . The ip address of the System and
* login is sent to the Server (Login.asp).When the user wants to logout again the
* information is sent to the Server (Logout.asp)
*/
import java.util.*;
import java.net.*;
import java.io.*;
import javax.swing.*;
import javax.swing.event.*;
import java.awt.*;
import java.awt.event.*;
import java.awt.Color;
public class Login extends JFrame implements ActionListener
{
// This is Constructor part of this login class
public Login()
{
// set the title of this frame
setTitle("Login");
// set layout to null
getContentPane().setLayout(null);
// Set size to 310 and 150
setSize(310,150);
// get the insets
Insets insets = getInsets();
// write the window closing event.
addWindowListener(new WindowAdapter()
{ public void WindowClosing(WindowEvent e)
{
System.exit(0);
}
});
compname = new JLabel("
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -