【发布时间】:2013-07-04 21:25:50
【问题描述】:
我想将我的 JLabel 向左对齐。
String lText = "<html><b><font color = white face = comic sans ms size = 20>mybook</font></b></html>";
JLabel label = new JLabel(lText);
label.setBorder(new EmptyBorder(25,0,25,500));
我尝试使用 EmptyBorder 进行此操作,但未正确对齐。我正在使用 FlowLayout
【问题讨论】:
标签: java swing jlabel layout-manager flowlayout