Java Swing TitledBorder createBorder(String title)

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

Description

create Border

License

Apache License

Declaration

public static Border createBorder(String title) 

Method Source Code


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

import javax.swing.BorderFactory;

import javax.swing.border.Border;

public class Main {
    public static Border createBorder(String title) {
        return BorderFactory.createCompoundBorder(BorderFactory.createEmptyBorder(3, 3, 3, 3),
                BorderFactory.createCompoundBorder(BorderFactory.createTitledBorder(title),
                        BorderFactory.createEmptyBorder(2, 2, 2, 2)));
    }//  www.j  a  v  a2s  . c o m
}

Related

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