📄 messagerebuildserver.java
字号:
jTextField2.setName("jTextField2"); // NOI18N jScrollPane2.setName("jScrollPane2"); // NOI18N jTextArea1.setColumns(20); jTextArea1.setRows(5); jTextArea1.setName("jTextArea1"); // NOI18N jScrollPane2.setViewportView(jTextArea1); javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); jPanel1.setLayout(jPanel1Layout); jPanel1Layout.setHorizontalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jToolBar2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 365, Short.MAX_VALUE) .addComponent(jScrollPane2)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 30, Short.MAX_VALUE) .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, 303, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap()) .addGroup(jPanel1Layout.createSequentialGroup() .addGap(200, 200, 200) .addComponent(exitJButton) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(sendJButton, javax.swing.GroupLayout.PREFERRED_SIZE, 71, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(370, Short.MAX_VALUE)) ); jPanel1Layout.setVerticalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addComponent(jTextField2, javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup() .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 290, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jToolBar2, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 192, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGap(18, 23, Short.MAX_VALUE) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(exitJButton, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(sendJButton, javax.swing.GroupLayout.DEFAULT_SIZE, 32, Short.MAX_VALUE)) .addContainerGap()) ); jMenuBar1.setMaximumSize(new java.awt.Dimension(110, 32769)); jMenuBar1.setName("jMenuBar1"); // NOI18N servicesConfigJMenu.setText("服务设置"); servicesConfigJMenu.setFont(new java.awt.Font("黑体", 1, 14)); // NOI18N servicesConfigJMenu.setName("servicesConfigJMenu"); // NOI18N portConfigJMenuItem.setFont(new java.awt.Font("黑体", 1, 14)); // NOI18N portConfigJMenuItem.setText("端口设置"); portConfigJMenuItem.setName("portConfigJMenuItem"); // NOI18N servicesConfigJMenu.add(portConfigJMenuItem); startServicesJMenuItem.setFont(new java.awt.Font("黑体", 1, 14)); // NOI18N startServicesJMenuItem.setText("启动服务"); startServicesJMenuItem.setName("startServicesJMenuItem"); // NOI18N servicesConfigJMenu.add(startServicesJMenuItem); stopServicesJMenuItem.setFont(new java.awt.Font("黑体", 1, 14)); // NOI18N stopServicesJMenuItem.setText("停止服务"); stopServicesJMenuItem.setName("stopServicesJMenuItem"); // NOI18N servicesConfigJMenu.add(stopServicesJMenuItem); cancelJMenuItem.setFont(new java.awt.Font("黑体", 1, 14)); // NOI18N cancelJMenuItem.setText("退出"); cancelJMenuItem.setName("cancelJMenuItem"); // NOI18N servicesConfigJMenu.add(cancelJMenuItem); jMenuBar1.add(servicesConfigJMenu); helpJMenu.setText("帮助"); helpJMenu.setFont(new java.awt.Font("黑体", 1, 14)); // NOI18N helpJMenu.setName("helpJMenu"); // NOI18N helpJMenuItem.setFont(new java.awt.Font("黑体", 1, 14)); // NOI18N helpJMenuItem.setText("帮助"); helpJMenuItem.setName("helpJMenuItem"); // NOI18N helpJMenu.add(helpJMenuItem); jMenuBar1.add(helpJMenu); setJMenuBar(jMenuBar1); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(layout.createSequentialGroup() .addGap(10, 10, 10) .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, 718, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGap(24, 24, 24)) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, 611, javax.swing.GroupLayout.PREFERRED_SIZE)) ); pack(); }// </editor-fold>//GEN-END:initComponents private void startServicesJButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_startServicesJButtonActionPerformed // TODO add your handling code here:}//GEN-LAST:event_startServicesJButtonActionPerformed private void configPortJButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_configPortJButtonActionPerformed // TODO add your handling code here:}//GEN-LAST:event_configPortJButtonActionPerformed private void jTextField1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField1ActionPerformed // TODO add your handling code here:}//GEN-LAST:event_jTextField1ActionPerformed /** * @param args the command line arguments */ public static void main(String args[]) { java.awt.EventQueue.invokeLater(new Runnable() { public void run() { new MessageRebuildServer().setVisible(true); } }); } // Variables declaration - do not modify//GEN-BEGIN:variables private javax.swing.JMenuItem cancelJMenuItem; private javax.swing.JButton configPortJButton; private javax.swing.JButton exitJButton; private javax.swing.JMenu helpJMenu; private javax.swing.JMenuItem helpJMenuItem; private javax.swing.JComboBox jComboBox1; private javax.swing.JLabel jLabel1; private javax.swing.JMenuBar jMenuBar1; private javax.swing.JPanel jPanel1; private javax.swing.JPanel jPanel3; private javax.swing.JScrollPane jScrollPane1; private javax.swing.JScrollPane jScrollPane2; private javax.swing.JTextArea jTextArea1; private javax.swing.JTextField jTextField1; private javax.swing.JTextField jTextField2; private javax.swing.JToolBar jToolBar2; private javax.swing.JMenuItem portConfigJMenuItem; private javax.swing.JButton sendJButton; private javax.swing.JLabel sendToJLabel; private javax.swing.JMenu servicesConfigJMenu; private javax.swing.JButton startServicesJButton; private javax.swing.JMenuItem startServicesJMenuItem; private javax.swing.JButton stopServicesJButton; private javax.swing.JMenuItem stopServicesJMenuItem; // End of variables declaration//GEN-END:variables}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -