📄 corbaframe.java
字号:
package CorbaServer;
import java.awt.*;
import java.awt.event.*;
import com.sun.java.swing.*;
import CorbaServer.SimpleText;
import borland.jbcl.control.*;
import borland.jbcl.layout.*;
public class CorbaFrame extends JFrame {
//Construct the frame
TextFieldControl remoteText = new TextFieldControl();
XYLayout xYLayout1 = new XYLayout();
public CorbaFrame() {
enableEvents(AWTEvent.WINDOW_EVENT_MASK);
try {
jbInit();
}
catch (Exception e) {
e.printStackTrace();
}
}
//Component initialization
private void jbInit() throws Exception {
this.getContentPane().setLayout(xYLayout1);
this.setSize(new Dimension(400, 300));
this.setTitle("Corba Java Server Demo");
this.getContentPane().add(remoteText, new XYConstraints(49, 113, 289, 33));
}
//Overriden so we can exit on System Close
protected void processWindowEvent(WindowEvent e) {
super.processWindowEvent(e);
if (e.getID() == WindowEvent.WINDOW_CLOSING) {
System.exit(0);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -