Java JLabel leftAlignJLabel(JLabel label)

Here you can find the source of leftAlignJLabel(JLabel label)

Description

left Align J Label

License

Open Source License

Declaration

public static Box leftAlignJLabel(JLabel label) 

Method Source Code


//package com.java2s;
// it under the terms of the GNU General Public License as published by      //

import javax.swing.*;

public class Main {
    public static Box leftAlignJLabel(JLabel label) {
        Box box = Box.createHorizontalBox();
        box.add(label);//www  .  j  av  a 2  s .c o  m
        box.add(Box.createHorizontalGlue());
        return box;
    }
}

Related

  1. getRoughStroke(final JLabel _jlbl_stroke)
  2. getStoredBackground(JLabel comp)
  3. getStroke(final JLabel _jlbl_stroke)
  4. getTimeWidth(JLabel label)
  5. highlightLabel(JLabel label)
  6. parseIntFromLabel(JLabel jLabel)
  7. setBoundsForJLabel(JLabel label, int xOffset, int yOffset)
  8. setErrorBackground(JLabel comp)
  9. setMnemonic(JLabel label, JComponent message, char mnemonic)