Java Swing TitledBorder myBorder(String title)

Here you can find the source of myBorder(String title)

Description

my Border

License

Open Source License

Declaration

public static Border myBorder(String title) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.awt.Color;

import java.awt.Font;

import javax.swing.BorderFactory;

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

public class Main {
    public static final Font fnt_label1 = new Font("Serif", Font.PLAIN, 16);

    public static Border myBorder(String title) {
        return BorderFactory.createTitledBorder(
                BorderFactory.createEtchedBorder(), title,
                TitledBorder.LEFT, TitledBorder.LEFT, fnt_label1,
                new Color(25, 25, 250));
    }/*ww w.  jav  a 2s.  com*/
}

Related

  1. getCompoundBorder(String text)
  2. getTitledBorderHeight(Border border)
  3. getTitleLabelBorder()
  4. makeBorderedPanel(String borderTitle)
  5. makeTitledBorder(String title)
  6. setBoldTitledBorder(String title, JComponent p)
  7. setBorder(Container panel, String title)
  8. setBorder(JComponent component, String text, int titleJustification)
  9. setLabelBorder(String label, JComponent c)