Java JComponent Container getMandatoryPanel(JComponent c)

Here you can find the source of getMandatoryPanel(JComponent c)

Description

get Mandatory Panel

License

Apache License

Declaration

public static Component getMandatoryPanel(JComponent c) 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.awt.Component;

import javax.swing.Box;

import javax.swing.JComponent;

import javax.swing.JLabel;

public class Main {
    public static final String LABEL_MANDATORY = " *";

    public static Component getMandatoryPanel(JComponent c) {
        Box box = Box.createHorizontalBox();
        box.add(c);/* w w  w.j a va2 s. c o  m*/
        box.add(new JLabel(LABEL_MANDATORY));
        return box;
    }
}

Related

  1. getGtkStyle(Object styleFactory, JComponent component, String regionName)
  2. getInputHint(JComponent comp)
  3. getInsetBounds(JComponent comp)
  4. getInterior(JComponent comp)
  5. getLocalInsetBounds(JComponent component)
  6. getMaxVisibleY(JComponent comp)
  7. getModelObject(JComponent c)
  8. getOutermostRootPane(Component c)
  9. getOutermostRootPane(Component c)