📄 commandtips.java
字号:
/*
* CommandTips.java
*
* Created on 2006年12月17日, 下午10:52
*/
package ossimulation;
/**
*
* @author Administrator
*/
public class CommandTips extends javax.swing.JFrame {
/** Creates new form CommandTips */
public CommandTips() {
initComponents();
jScrollPane1.setWheelScrollingEnabled(true);
}
/** This method is called from within the constructor to
* initialize the form.
* WARNING: Do NOT modify this code. The content of this method is
* always regenerated by the Form Editor.
*/
// <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
private void initComponents() {
jScrollPane1 = new javax.swing.JScrollPane();
commandTipsArea = new javax.swing.JTextArea();
jLabel1 = new javax.swing.JLabel();
setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
setTitle("Command Tips");
jScrollPane1.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
commandTipsArea.setColumns(20);
commandTipsArea.setEditable(false);
commandTipsArea.setRows(5);
commandTipsArea.setText("There is the command usage tips for our system.\nThis system has a UNIX-like shell, if you are familiar with the \nUNIX shell, you will get the way of using this shell quickly.\n\ntouch:\nDescription: \n The touch command is used to create a empty file.This file usually is \nedited and them become a executable file.\nUsag:\n touch [path]. The path here can be a relative path or a \nabsoluted path\nExample:\n touch /xx/yy\n touch xx/yy\n touch ./xx/yy\n\nmkdir:\nDescription: \n The mkdir command is used to create a empty dirctory\nUsag:\n mkdir [path]. The path here can be a relative path or a \nabsoluted path \nExample:\n mkdir /xx/yy\n mkdir xx/yy\n mkdir ./xx/yy\n\ndel:\nDescription: \n The delete command is used to del a file. It can not be used \nto delete a dirctory \nUsag:\n del [path]. The path here can be a relative path or a \nabsoluted path\nExample:\n del /xx/yy\n del xx/yy\n del ./xx/yy\n\nrm:\nDescription: \n The rm command is used to delete a file or a dirctory.If the\ndirctory is not empty,it will pop up a option pane and then \nask the user to confirm. \nUsag:\n rm [path]. The path here can be a relative path or a \nabsoluted path\nExample:\n rm /xx/yy\n rm xx/yy\n rm ./xx/yy\n\nedit:\nDescription: \n The edit command is used to edit a file.remember to save\nthe file when you finish your edit to your file. \nUsag:\n edit [path]. The path here can be a relative path or a \nabsoluted path\nExample:\n edit /xx/yy\n edit xx/yy\n edit ./xx/yy\n\nrun:\nDescription: \n The run command is used to execute a file. \nUsag:\n run [path]. The path here can be a relative path or a \nabsoluted path\nExample:\n run /xx/yy\n run xx/yy\n run ./xx/yy\n\nEnjoy!");
jScrollPane1.setViewportView(commandTipsArea);
jLabel1.setText("Commend Tips");
org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(layout.createSequentialGroup()
.addContainerGap()
.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(layout.createSequentialGroup()
.add(jScrollPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 380, Short.MAX_VALUE)
.addContainerGap())
.add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup()
.add(jLabel1)
.add(163, 163, 163))))
);
layout.setVerticalGroup(
layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(layout.createSequentialGroup()
.addContainerGap()
.add(jLabel1)
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
.add(jScrollPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 259, Short.MAX_VALUE)
.addContainerGap())
);
pack();
}// </editor-fold>//GEN-END:initComponents
/**
* @param args the command line arguments
*/
public static void main(String args[]) {
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new CommandTips().setVisible(true);
}
});
}
// Variables declaration - do not modify//GEN-BEGIN:variables
private javax.swing.JTextArea commandTipsArea;
private javax.swing.JLabel jLabel1;
private javax.swing.JScrollPane jScrollPane1;
// End of variables declaration//GEN-END:variables
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -