第一个gui就没有调试成功,帮帮。。只有10分拉 单词写错了fr.setBackground()fr.setVisible() 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 import java.awt.*;public class ExGui extends Frame{ //Constructor public ExGui(String str) { super(str); } public static void main(String[] args) { ExGui fr=new ExGui("framewithPanel"); Panel pan=new Panel(); fr.setSize(400,400); fr.setBackground(Color.blue); fr.setLayout(null); pan.setSize(200,200); pan.setBackground(Color.green); fr.add(pan); fr.setVisible(true); }} socket的问题 考考你,一个关于静态成员变量的问题! 怎样把整型用unicode格式输出 关于singleton pattern的问题 有人用opencms的标签吗? 跪求:堆栈(stack)类源代码 【接龙】每人进来写一个和JAVA有关的技术名词。 各位仁兄,在哪儿可以下载jbuilder 9.0 我下载了一个 可是安装的时候提示有错 各位请帮忙,那里可以下载visibroker for java? 在java裡,怎麼樣讓按鈕無效(不能用)和有效? 请问界面设计 大家能说一下eclipse的优点吗?
{
//Constructor
public ExGui(String str)
{
super(str);
}
public static void main(String[] args)
{
ExGui fr=new ExGui("framewithPanel");
Panel pan=new Panel();
fr.setSize(400,400);
fr.setBackground(Color.blue);
fr.setLayout(null);
pan.setSize(200,200);
pan.setBackground(Color.green);
fr.add(pan);
fr.setVisible(true);
}
}