当我将我的标签设置为可滚动时,它会将我所有的标签都设置到中心位置。但是我想找到一种方法,让我可以把所有的标签页都靠左对齐。有没有办法让标签页靠左对齐而不是居中?这是我的代码。谢谢。 class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
我想让我的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来做,但是它不能正确地对齐。我正在使用FlowLayou