Thanks, that's what I was trying to do. How do you name the tab?
Type: Posts; User: fride360
Thanks, that's what I was trying to do. How do you name the tab?
import javax.swing.*;
import javax.swing.JLabel;
import javax.swing.plaf.metal.MetalIconFactory;
public class Alignment {
protected JTabbedPane tabPane;
public Alignment() {
tabPane =...
I did check it out. I'm not sure how to do it.
I'm sorry, but I don't know how to post in SSCCE. I'm not getting any errors when I run it, it just doesn't align properly. Would it be better to post all of the code?
Thanks
I'm tryint to get my label to align top left and it aligns top center.
JLabel label1 = new JLabel("Text here", JLabel.LEFT);
label1.setVerticalAlignment(JLabel.TOP
...