jfml
发贴: 708
积分: 30
|
于 2003-04-28 16:02
API Doc看了,好像不支持这么干啊
JLabel public JLabel(String text, Icon icon, int horizontalAlignment) Creates a JLabel instance with the specified text, image, and horizontal alignment. The label is centered vertically in its display area. The text is on the trailing edge of the image. Parameters: text - The text to be displayed by the label. icon - The image to be displayed by the label. horizontalAlignment - One of the following constants defined in SwingConstants: LEFT, CENTER, RIGHT, LEADING or TRAILING.
|