伍志坚的回答:我没有看到other 程序里有outer 就想其他语言中的go差不多 但是只有循环中有 而且基本上也不这么用。。 有这种写法 但是实际开发中基本上被废弃了 杨中武的回答:我没有看到other 程序里有outer 就想其他语言中的go差不多 但是只有循环中有 而且基本上也不这么用。。 有这种写法 但是实际开发中基本上被废弃了 ????i的回答:你好! createVerticalStrut public static Component createVerticalStrut(int height)Creates an invisible, fixed-height component. In a vertical box, you typically use this method to force a certain amount of space between two components. In a horizontal box, you might use this method to force the box to be at least the specified height. The invisible component has no width unless excess space is available, in which case it takes its share of available space, just like any other component that has no maximum width. Parameters: height - the height of the invisible component, in pixels >= 0 Returns: the component 简单的说作用是 设的两个控件的垂直距离. 如果对您有帮助,请记得采纳为满意答案,谢谢!祝您生活愉快! vaela 记得给问豆啊! 张喜秋的回答:标签 用来标记下一次符合要求的循环从这个标签开始; 当条件 continue outer满足时会跳到other:处 洪丽华的回答:没看到有other:啊 你说的outer:吧,这就是一个标号。程序里面的continue配对使用。当程序执行到continue outer时,就跳转到outer:处开始执行。 不建议这样使用,不太好。 |