首先想到的是看java api了
isShowing
public boolean isShowing()
Determines whether this component is showing on screen. This means that the component must be visible, and it must be in a container that is visible and showing. isVisible
public boolean isVisible()
Determines whether this component should be visible when its parent is visible. Components are initially visible, with the exception of top level components such as Frame objects.
isShowing
public boolean isShowing()
Determines whether this component is showing on screen. This means that the component must be visible, and it must be in a container that is visible and showing. isVisible
public boolean isVisible()
Determines whether this component should be visible when its parent is visible. Components are initially visible, with the exception of top level components such as Frame objects.
解决方案 »
- pdfbox创建pdf文档出错 求大神给看看
- Java是面向对象的高级语言,那我是不是写报告的时候就不能用流程图了?
- 求一个java软键盘
- 封装的变量必须是private的??
- jfreechart怎么控制轴上的刻度
- 请问java中对字符串操作有没有类似c语言中的sscanf函数
- (讨论)大家来谈谈java容器的用途(Collection、Set、Map)
- 大家帮我分析以下程序!!哪里错了?
- 配置问题,请教了*************************************************
- out.println("你好")怎么解决汉字问题?
- 请问高手,如何让java支持托盘的功能??
- JReport的子报表的问题,高手请进
public boolean isShowing()
Determines whether this component is showing on screen. This means that the component must be visible, and it must be in a container that is visible and showing. isVisible
public boolean isVisible()
Determines whether this component should be visible when its parent is visible. Components are initially visible, with the exception of top level components such as Frame objects.
两个方法下面的英语是什么意思呢?
我看我是完了
什么都不懂啊!!!救命啊
如果组件当前完全可见,那么返回为trueisShowing():
如果组件的visible属性为true,(比如我们setVisible(true);),那么不管组件看不看的到
(当前),都返回true也就是说,只要组件(或者它的父类)的visible属性是true,那么它的isShowing()肯定是true,
但它的isVisible()只有它能被看到才是true,如果它被其他组件遮挡了(比如一个下拉菜单),
那么它的isVisible()就是false,尽管它的isShowing()是true