Code example for TitledBorder

Methods: setTitle

0
     * Sets the title displayed in the panel. 
     * 
     * @param title the title to use for the panel. 
     */ 
    public void setTitle(String title) {
        _titledBorder.setTitle(title);
    } 
 
    /** 
     * Accessor for the title displayed in the panel. 
     * 
     * @return the title to use for the panel 
     */ 
    public String getTitle() {
        return _titledBorder.getTitle();
    } 
 
    /**  
     * Sets the layout for the main panel directly. 
     * 
Experience pair programming with AI  Get Codota for Java