📄 userflag.java
字号:
/*
* userflag.java
*
* Created on 2007年12月19日, 上午6:33
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
/**
*
* @author Owner
*/
public class userflag{
JFrame frame;
String id;
boolean flag=false;
/** Creates a new instance of userflag */
public userflag(JFrame frame) {
this.frame=frame;
flag=false;
id=null;
}
public void login(String id)
{
flag=true;
this.id=id;
}
public void logoff()
{
if(flag==false)
JOptionPane.showMessageDialog(frame,"您还没登录");
else
{
flag=false;
JOptionPane.showMessageDialog(frame,"注销成功");
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -