初学者求教:为什么界面上的组件第一次显示不出来 你试试是不是因为没有加 setVisible(true); 的原因 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 frame.getContentPane().add(cp);后面加上frame.show()就可以了 you should move this statement frame.setVisible(true);to end of your T422(). By the way, you are not in the correct way of using inheritance. You should not create another frame within T422 as T422 actually is a frame itself. 谢谢大家了,我刚开学习java 关于界面这方面知识!还很迷茫,不知道该怎么去学,希望大家给我一些指导! 一道java程序题 火龙果大侠:求教一正则表达式 请问有关swing不规则窗体 求一算法的实现 内部类如何继承? 高分求算法:求助一个取得数组中的次大值的数据下标的JAVA的算法 不用servlet 如何提交url请求 如何接收URL响应 百分求购一个登陆模块--要求有MD5加密和验证码 在图形界面下,如何分别设置不同对象的字体大小?谢谢 java中怎样格式化字符 如何在swing里设置背景图片? DataOutputStream简单输出问题?
后面加上
frame.show()就可以了
to end of your T422(). By the way, you are not in the correct way of using inheritance. You should not create another frame within T422 as T422 actually is a frame itself.