📄 infobar.java
字号:
package view;
//Copyright (C) 2008 Harald Unander, Wang Wenjuan
//
// This file is part of WlanTV.
//
// WlanTV is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// WlanTV is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with WlanTV. If not, see <http://www.gnu.org/licenses/>..
import java.awt.Font;
import javax.swing.JLabel;
import javax.swing.JPanel;
import main.Main;
@SuppressWarnings("serial")
public class InfoBar extends JPanel {
JLabel gridLabel = new JLabel();
JLabel busyTimeLabel = new JLabel();
JLabel totalPCountLabel = new JLabel();
JLabel freeTimeLabel = new JLabel();
JLabel accessTimeLabel = new JLabel();
// JLabel channelLabel = new JLabel();
public InfoBar() {
Font f = busyTimeLabel.getFont();//.deriveFont(10f);
// add(channelLabel);
// channelLabel.setBorder(Main.loweredBdr);
// channelLabel.setToolTipText("Monitored channel");
// channelLabel.setFont(f);
add(totalPCountLabel);
totalPCountLabel.setBorder(Main.loweredBdr);
totalPCountLabel.setToolTipText("Total packet count");
totalPCountLabel.setFont(f);
add(gridLabel);
gridLabel.setBorder(Main.loweredBdr);
gridLabel.setToolTipText("Time between grey vertical bars");
gridLabel.setFont(f);
add(freeTimeLabel);
freeTimeLabel.setBorder(Main.loweredBdr);
freeTimeLabel.setToolTipText("View free time");
freeTimeLabel.setFont(f);
add(busyTimeLabel);
busyTimeLabel.setBorder(Main.loweredBdr);
busyTimeLabel.setToolTipText("View busy time");
busyTimeLabel.setFont(f);
add(accessTimeLabel);
accessTimeLabel.setBorder(Main.loweredBdr);
accessTimeLabel.setToolTipText("View access time");
accessTimeLabel.setFont(f);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -