下面是JavaDoc文档的解释:
JLabel
public JLabel(String text,int horizontalAlignment)Creates a JLabel instance with the specified text and horizontal alignment. The label is centered vertically in its display area. Parameters:
text - The text to be displayed by the label.
horizontalAlignment - One of the following constants defined in SwingConstants: LEFT, CENTER, RIGHT, LEADING or TRAILING.------注意了只能是这些SwingConstants常量
JLabel
public JLabel(String text,int horizontalAlignment)Creates a JLabel instance with the specified text and horizontal alignment. The label is centered vertically in its display area. Parameters:
text - The text to be displayed by the label.
horizontalAlignment - One of the following constants defined in SwingConstants: LEFT, CENTER, RIGHT, LEADING or TRAILING.------注意了只能是这些SwingConstants常量
解决方案 »
- 请问 ssh 这里面三个各需要引入哪几个包
- 怎样用java实现最短路径搜索?在线急等高手!
- 正则表达式问题??
- String a=new String("a");创建了几个String对象?
- 求《Thinking in JAVA 第三版》的课后答案,谢谢
- 恳求大家帮我想想:除了用JApplet以外,还有什么方式可以在网页上加载一个GUI页面?
- 用什么函数取回 canvas 的长和宽?
- 怎么运行小应用程序??
- 如何把已有的类制作成package来调用?等待中。。。
- ★200分求教★ :JCreator pro如何Debug Java 程序?
- JAVA基础问题
- 有用过jacob的高人吗?调试总有一个小问题,等待高人指教!
再问一下LEADING ,是从左到右 和从右到左 的语言的开始。是不是就是说,如果该语言是从左到右的,那么LEADING = LEFT ,要是从右到左的,那么LEADING = RIGHT。是这样的吗?TRAILING同上。
tomcatjava(小鱼儿),我再开个贴,你进来接分哈。