Java Swing TitledBorder buildLabeledBorder(String label)

Here you can find the source of buildLabeledBorder(String label)

Description

build Labeled Border

License

Apache License

Declaration

public static Border buildLabeledBorder(String label) 

Method Source Code

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

import javax.swing.border.Border;
import javax.swing.border.EtchedBorder;
import javax.swing.border.TitledBorder;

public class Main {
    public static Border buildLabeledBorder(String label) {
        TitledBorder ret = new TitledBorder(new EtchedBorder(), label);
        return ret;
    }/*from w w  w .  j  a  v  a2 s  .co  m*/
}

Related

  1. addMarginBorder(JPanel panel, String title, int top, int left, int bottom, int right)
  2. borderTitle(JComponent component, String title)
  3. buildInfoPanelTextBorder(final JLabel content, final String title)
  4. buildInfoPanelTextBorderScroll(final JComponent content, final String title)
  5. createBorder()
  6. createBorder(String message)
  7. createBorder(String title)
  8. createBorder(String title)