2 回答
TA贡献1829条经验 获得超7个赞
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | public ui() { // TODO Auto-generated constructor stub rs = new rs232() { @Override public void back(String s1) { // TODO Auto-generated method stub ReceiveArea.setText(s1); } }; Events(); setLayout(gbl); setParamePanel(); add(ParamePanel, constraints); setLabel(); add(new JLabel("接收缓冲区"), constraints); constraints.gridx = 1;// 列 constraints.gridy = 4;// 行 add(new JLabel("发送缓冲区"), constraints); setReceiveArea(); add(jsp1, constraints); setSendArea(); add(jsp2, constraints); setLF(); setDefaultCloseOperation(EXIT_ON_CLOSE); setTitle("我是标题"); setVisible(true); setSize(575, 410); setResizable(false); } |
添加回答
举报