helloframe.java~4~

来自「文件加密软件」· JAVA~4~ 代码 · 共 32 行

JAVA~4~
32
字号
package com.borland.samples.welcome;

import javax.swing.*;

/**
 * <p>Title: </p>
 *
 * <p>Description: </p>
 *
 * <p>Copyright: Copyright (c) 2006</p>
 *
 * <p>Company: </p>
 *
 * @author not attributable
 * @version 1.0
 */
public class Helloframe
    extends JFrame {
  public Helloframe() {
    init();
  }
  void init(){
    JLabel j = new JLabel("hello word");
    JTextField jtf = new JTextField("          ");

    this.add(j);
    this.add(jtf);
    this.setSize(100,100);
    this.show(true);
  }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?