How to align JLabel to the left of JPanel?
I want to align JLabel to the left.
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)); I tried to do this using EmptyBorder, but it does not align correctly. I am using FlowLayout
+6