创建Hello World图形界面
来源:互联网 发布:彩票合买系统源码 编辑:程序博客网 时间:2024/05/21 12:50
import java.awt.*;
import javax.swing.JLabel;
public class rcr {
public static void main(String[] args) {
// TODO Auto-generated method stub
Frame f=new Frame("标题-java图形用户界面");
Panel p1=new Panel();
JLabel lab=new JLabel("Hello World");
f.setSize(300,150);
f.setVisible(true);
f.setBackground(Color.pink);
f.add(p1);
p1.add(lab);
}
}
import javax.swing.JLabel;
public class rcr {
public static void main(String[] args) {
// TODO Auto-generated method stub
Frame f=new Frame("标题-java图形用户界面");
Panel p1=new Panel();
JLabel lab=new JLabel("Hello World");
f.setSize(300,150);
f.setVisible(true);
f.setBackground(Color.pink);
f.add(p1);
p1.add(lab);
}
}
阅读全文
1 0
- 创建Hello World图形界面
- 创建Hello World图形界面
- 创建“hello world”图形界面
- 图形界面版Hello World!
- Sciter:创建Hello World
- Xib文件创建hello world
- Xib文件创建hello world
- ABAP创建HELLO WORLD程序
- ssh总结,创建hello world
- 创建"Hello World"图形用户界面
- 创建“Hello World”图形用户界面
- 创建"hello.world"图形用户界面
- 创建"Hello World"图形用户界面
- 创建“Hello World“图形用户界面
- 创建Hello world 网页服务
- Hello world 运行成功后模拟器无图形界面显示
- C++_图形界面、Qt 简单的使用、Hello world
- Hello World!【Hello World】
- String、StringBuffer和StringBuilder的区别
- Spring AOP支持的AspectJ语法
- 黑马视频第一节课笔记重敲
- java捕获异常示例
- http请求头详解and爬虫
- 创建Hello World图形界面
- 数论——扩展欧几里得
- Context的应用场景
- 剑指offer39 二叉树的深度
- 第四周 项目5- 循环双链表应用
- 字符串拷贝--strcpy的代码实现
- gulp实战(1)
- java 基础练习-编写敏感词过滤程序
- AB1601编译优化参数引发的问题