📄 help.java~12~
字号:
package Statistics;
import javax.swing.*;
import java.awt.*;
import java.util.*;
import java.awt.event.*;
import javax.swing.event.*;
public class Help extends JFrame {
Vector v1;
JLabel jLabel1 = new JLabel();
JTextArea jTextArea1 = new JTextArea();
JComboBox jComboBox1 = new JComboBox();
public Help() {
try {
jbInit();
}
catch (Exception ex) {
ex.printStackTrace();
}
}
void jbInit() throws Exception {
jTextArea1.setBounds(new Rectangle(215, 68, 338, 281));
jLabel1.setText("Topics");
jLabel1.setBounds(new Rectangle(34, 46, 68, 19));
this.getContentPane().setLayout(null);
jComboBox1.setBounds(new Rectangle(31, 72, 166, 25));
jComboBox1.addItem("Connect to Log File");
jComboBox1.addItem("Open Report File");
jComboBox1.addItem("Save as Report File");
jComboBox1.addItem("Close");
jComboBox1.addItem("Exit");
jComboBox1.addItem("Daily Transmission Statistics");
jComboBox1.addItem("Hourly Transmission Statistics");
jComboBox1.addItem("Total Transfer by Client Domain");
jComboBox1.addItem("Total Transfers by Reserved Subdomain");
jComboBox1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(ActionEvent e) {
jComboBox1_actionPerformed(e);
}
});
this.getContentPane().add(jLabel1, null);
this.getContentPane().add(jComboBox1, null);
this.getContentPane().add(jTextArea1, null);
this.setBounds(0, 0, 600, 600);
this.setVisible(true);
this.setDefaultCloseOperation(EXIT_ON_CLOSE);
}
public static void main(String[] args) {
Help help = new Help();
}
void jComboBox1_actionPerformed(ActionEvent e) {
if(jComboBox1.getSelectedIndex()==0)
jTextArea1.append("Connect to Log File. You can type the name and Path of the log file");
else if(jComboBox1.getSelectedIndex()==1)
jTextArea1.append("Display a saved report file in a Frame");
else if(jComboBox1.getSelectedIndex()==2)
jTextArea1.append("Save displayed text in a file");
else if(jComboBox1.getSelectedIndex()==3)
jTextArea1.append("Close the current Frame");
else if(jComboBox1.getSelectedIndex()==4)
jTextArea1.append("Exit the entire system and close all frames");
else if(jComboBox1.getSelectedIndex()==5)
jTextArea1.append("aaaaa");
else if(jComboBox1.getSelectedIndex()==6)
jTextArea1.append("aaaaa");
else if(jComboBox1.getSelectedIndex()==7)
jTextArea1.append("aaaaa");
else if(jComboBox1.getSelectedIndex()==8)
jTextArea1.append("aaaaa");
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -