Java Swing TitledBorder createBorder(String title)

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

Description

Creates titled JPanel Borders

License

Open Source License

Parameter

Parameter Description
title - the title of the border

Return

a Border

Declaration

public static Border createBorder(String title) 

Method Source Code


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

import javax.swing.*;
import javax.swing.border.Border;

public class Main {
    /**//from   w w w  .j av a  2s .c om
     * Creates titled JPanel Borders
     * @param title - the title of the border
     * @return a Border
     */
    public static Border createBorder(String title) {
        return BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), title);
    }
}

Related

  1. buildInfoPanelTextBorderScroll(final JComponent content, final String title)
  2. buildLabeledBorder(String label)
  3. createBorder()
  4. createBorder(String message)
  5. createBorder(String title)
  6. createBorderedPanel(String title, int margin)
  7. createGroupBorder(String title)
  8. createGuiElementBorder(final String title)
  9. createInsetTitledBorder(String title)