⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 statusbar.java

📁 一个记事本的程序 涵盖的方面是很多的
💻 JAVA
字号:
import java.awt.GridLayout;

import javax.swing.*;

public class Statusbar extends JPanel{
    private  JLabel lbl1,lbl2;
    
    private Handle handle;
    
    public Statusbar(Handle handle){
        this.handle = handle;
        handle.setStatusbar(this);
        
        setLayout(new GridLayout());
        
        lbl1 = new JLabel(" 欢迎使用本记事本程序");
        lbl1.setBorder(BorderFactory.createLoweredBevelBorder());
        add(lbl1);
        
        lbl2 = new JLabel(" Ln: 1");
        lbl2.setBorder(BorderFactory.createLoweredBevelBorder());
        add(lbl2);
    }
    
    public JLabel getLnText(){
        return lbl2;
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -