- 博客(3)
- 收藏
- 关注
原创 对JMenuItem的鼠标监听器不生效
JMenuItem不能监听mouseClicked事件,可改用AcitonListener中的actionPerformed
2014-01-29 19:41:42 2122
原创 在JFrame中无法显示已经添加了的Label等控件
在JFrame的构造函数中添加setLayout(newFlowLayout())即可。至于原因,还不太了解
2014-01-28 12:00:06 2292 1
转载 使用内部类时提示No enclosing instance of type E is accessible. Must qualify the allocation with an enclosing
No enclosing instance of type E is accessible. Must qualify the allocation with an enclosing instance of type E(e.g. x.new A() where x is an instance of E). E指代我写的那个内部类。根据提示,没有可访问的内部类E的实例,必须分配一个合适的
2014-01-28 11:57:56 1012
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人