找回密码
 注册
查看: 778|回复: 0

[JAVA][求助]JFrame 的Title 设置无效

[复制链接]
发表于 2005-3-2 19:23:24 | 显示全部楼层 |阅读模式
代码
public class KaoShi_S2 {
        public static void main(String args[])
        {               
                int N=5;                    //Integer.parseInt(args[0]);
                long M=5000;           //(long)Integer.parseInt(args[1]);
               
                JFrame mainFrame=new JFrame();
                mainFrame.setSize(500,100);
                String frameTitle=new String("Ellipse");
                mainFrame.setTitle(frameTitle);
                mainFrame.setVisible(true);
        }
}


窗口的标题是空的

任务栏显示"未命名窗口"
您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2025-2-9 05:58 , Processed in 0.021946 second(s), 15 queries .

© 2001-2025 Discuz! Team. Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表