Here you can find the source of createBorder(String title)
Parameter | Description |
---|---|
title | - the title of the border |
public static Border createBorder(String title)
//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); } }