📄 functionpanel.java
字号:
package src1;
import javax.swing.*;
import java.awt.*;
public class FunctionPanel extends JPanel {
public JPanel p = new JPanel();
public JLabel jl = new JLabel();
public JLabel operationLabel =new JLabel("操作:入库");
public FunctionPanel() {
// TODO 自动生成构造函数存根
this.setBounds(0, 0, 600, 600);
p.setBounds(0, 0, 600, 20);
this.setBackground(new Color(240,255,255));
//this.add(p);
jl.setBounds(0,0,140,25);
operationLabel.setBounds(150,0,150,25);
this.add(operationLabel);
this.add(jl);
if(MainForm.adminOrMember==1)
{
jl.setText("用户状态:管理员");
}
else
{
jl.setText("用户状态:普通用户");
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -