⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 corbaframe.java

📁 《Delphi开发人员指南》配书原码
💻 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 + -