📄 svrdialog.java
字号:
package tqChatting;
import javax.swing.JApplet;
import javax.swing.*;
import com.borland.jbcl.layout.XYLayout;
import com.borland.jbcl.layout.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
/**
* <p>Title: </p>
*
* <p>Description: </p>
*
* <p>Copyright: Copyright (c) 2006</p>
*
* <p>Company: </p>
*
* @author not attributable
* @version 1.0
*/
public class SvrDialog extends JFrame {
XYLayout xYLayout3 = new XYLayout();
JPanel jPanel1 = new JPanel();
XYLayout xYLayout2 = new XYLayout();
JScrollPane jScrollPane1 = new JScrollPane();
JTextArea taContent = new JTextArea();
JLabel jLabel1 = new JLabel();
JButton btStart = new JButton();
JButton btEnd = new JButton();
JTextField tfSend = new JTextField();
JButton btSend = new JButton();
//JScrollPane jScrollPane1 = new JScrollPane();
public SvrDialog() {
try {
jbInit();
} catch (Exception ex) {
ex.printStackTrace();
}
}
public static void main(String[] args) {
SvrDialog svrDialog = new SvrDialog();
// svrDialog.setTitle("客户端对话框");
svrDialog.setVisible(true);
}
private void jbInit() throws Exception {
this.getContentPane().setLayout(xYLayout3);
xYLayout3.setWidth(400);
xYLayout3.setHeight(452);
jPanel1.setLayout(xYLayout2);
taContent.setEditable(false);
jLabel1.setText("语音聊天");
btStart.setActionCommand("btStart");
btStart.setText("开始");
btEnd.setActionCommand("btEnd");
btEnd.setText("断开");
btEnd.addActionListener(new SvrDialog_jButton1_actionAdapter(this));
taContent.setText("");
tfSend.setText("");
tfSend.addActionListener(new SvrDialog_jTextField1_actionAdapter(this));
btSend.setActionCommand("btSend");
btSend.setText("发送");
jPanel1.add(jScrollPane1, new XYConstraints(6, 0, 357, 342));
jPanel1.add(jLabel1, new XYConstraints(9, 351, 53, 32));
jPanel1.add(btStart, new XYConstraints(70, 357, 98, 29));
jPanel1.add(btEnd, new XYConstraints(181, 357, 97, 30));
jScrollPane1.getViewport().add(taContent);
this.getContentPane().add(jPanel1, new XYConstraints( -4, 7, 401, 441));
jPanel1.add(tfSend, new XYConstraints(18, 391, 320, 41));
jPanel1.add(btSend, new XYConstraints(346, 394, 56, 34));
}
public void jButton1_actionPerformed(ActionEvent e) {
}
public void jTextField1_actionPerformed(ActionEvent e) {
}
}
class SvrDialog_jTextField1_actionAdapter implements ActionListener {
private SvrDialog adaptee;
SvrDialog_jTextField1_actionAdapter(SvrDialog adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.jTextField1_actionPerformed(e);
}
}
class SvrDialog_jButton1_actionAdapter implements ActionListener {
private SvrDialog adaptee;
SvrDialog_jButton1_actionAdapter(SvrDialog adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.jButton1_actionPerformed(e);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -