Search:

Type: Posts; User: fride360

Search: Search took 0.18 seconds.

  1. Replies
    9
    Views
    1,481

    Re: Alignment issues

    Thanks, that's what I was trying to do. How do you name the tab?
  2. Replies
    9
    Views
    1,481

    Re: Alignment issues

    import javax.swing.*;
    import javax.swing.JLabel;
    import javax.swing.plaf.metal.MetalIconFactory;

    public class Alignment {
    protected JTabbedPane tabPane;
    public Alignment() {
    tabPane =...
  3. Replies
    9
    Views
    1,481

    Re: Alignment issues

    I did check it out. I'm not sure how to do it.
  4. Replies
    9
    Views
    1,481

    Re: Alignment issues

    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
  5. Replies
    9
    Views
    1,481

    Alignment issues

    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
    ...
Results 1 to 5 of 5