📄 messagerebuildserver.java
字号:
/* * To change this template, choose Tools | Templates * and open the template in the editor. *//* * MessageRebuildServer.java * * Created on 2009-5-4, 19:20:20 */package MessageRebuildServer;/** * * @author Owner */public class MessageRebuildServer extends javax.swing.JFrame { /** Creates new form MessageRebuildServer */ public MessageRebuildServer() { initComponents(); } /** 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. */ @SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jPanel3 = new javax.swing.JPanel(); startServicesJButton = new javax.swing.JButton(); configPortJButton = new javax.swing.JButton(); jLabel1 = new javax.swing.JLabel(); stopServicesJButton = new javax.swing.JButton(); jPanel1 = new javax.swing.JPanel(); jScrollPane1 = new javax.swing.JScrollPane(); jTextField1 = new javax.swing.JTextField(); jToolBar2 = new javax.swing.JToolBar(); sendToJLabel = new javax.swing.JLabel(); jComboBox1 = new javax.swing.JComboBox(); exitJButton = new javax.swing.JButton(); sendJButton = new javax.swing.JButton(); jTextField2 = new javax.swing.JTextField(); jScrollPane2 = new javax.swing.JScrollPane(); jTextArea1 = new javax.swing.JTextArea(); jMenuBar1 = new javax.swing.JMenuBar(); servicesConfigJMenu = new javax.swing.JMenu(); portConfigJMenuItem = new javax.swing.JMenuItem(); startServicesJMenuItem = new javax.swing.JMenuItem(); stopServicesJMenuItem = new javax.swing.JMenuItem(); cancelJMenuItem = new javax.swing.JMenuItem(); helpJMenu = new javax.swing.JMenu(); helpJMenuItem = new javax.swing.JMenuItem(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); setTitle("服务器端"); setMinimumSize(new java.awt.Dimension(850, 730)); jPanel3.setName("jPanel3"); // NOI18N startServicesJButton.setFont(new java.awt.Font("黑体", 1, 14)); startServicesJButton.setText("启动服务"); startServicesJButton.setFocusable(false); startServicesJButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); startServicesJButton.setName("startServicesJButton"); // NOI18N startServicesJButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); startServicesJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { startServicesJButtonActionPerformed(evt); } }); configPortJButton.setFont(new java.awt.Font("黑体", 1, 14)); configPortJButton.setText("端口设置"); configPortJButton.setFocusable(false); configPortJButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); configPortJButton.setName("configPortJButton"); // NOI18N configPortJButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); configPortJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { configPortJButtonActionPerformed(evt); } }); jLabel1.setFont(new java.awt.Font("黑体", 1, 14)); jLabel1.setText(" 加密以后的密文:"); jLabel1.setName("jLabel1"); // NOI18N stopServicesJButton.setFont(new java.awt.Font("黑体", 1, 14)); // NOI18N stopServicesJButton.setText("停止服务"); stopServicesJButton.setName("stopServicesJButton"); // NOI18N javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3); jPanel3.setLayout(jPanel3Layout); jPanel3Layout.setHorizontalGroup( jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel3Layout.createSequentialGroup() .addContainerGap() .addComponent(configPortJButton) .addGap(18, 18, 18) .addComponent(startServicesJButton) .addGap(18, 18, 18) .addComponent(stopServicesJButton) .addGap(92, 92, 92) .addComponent(jLabel1) .addContainerGap(120, Short.MAX_VALUE)) ); jPanel3Layout.setVerticalGroup( jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel3Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel3Layout.createSequentialGroup() .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, 29, Short.MAX_VALUE) .addContainerGap()) .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(startServicesJButton, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(configPortJButton, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)) .addComponent(stopServicesJButton, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 39, Short.MAX_VALUE))) ); jPanel1.setMinimumSize(new java.awt.Dimension(850, 730)); jPanel1.setName("jPanel1"); // NOI18N jPanel1.setPreferredSize(new java.awt.Dimension(850, 730)); jScrollPane1.setName("jScrollPane1"); // NOI18N jTextField1.setEditable(false); jTextField1.setText("明文显示区域"); jTextField1.setName("jTextField1"); // NOI18N jTextField1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jTextField1ActionPerformed(evt); } }); jScrollPane1.setViewportView(jTextField1); jToolBar2.setRollover(true); jToolBar2.setName("jToolBar2"); // NOI18N sendToJLabel.setFont(new java.awt.Font("黑体", 1, 14)); sendToJLabel.setText("发送至:"); sendToJLabel.setName("sendToJLabel"); // NOI18N jToolBar2.add(sendToJLabel); jComboBox1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "用户1", "用户2", "用户3", "用户 4" })); jComboBox1.setName("jComboBox1"); // NOI18N jToolBar2.add(jComboBox1); exitJButton.setFont(new java.awt.Font("黑体", 1, 14)); exitJButton.setText("关闭 "); exitJButton.setFocusable(false); exitJButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); exitJButton.setName("exitJButton"); // NOI18N exitJButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); sendJButton.setFont(new java.awt.Font("黑体", 1, 14)); sendJButton.setText("发送"); sendJButton.setName("sendJButton"); // NOI18N jTextField2.setEditable(false); jTextField2.setText("机密以后的密文在这里显示");
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -