Code example for TitledBorder

Methods: setTitle

0
        return null; 
    } 
 
    public void setTitle(String title) {
        this.title = title;
        titledBorder.setTitle(title);
        setBorder(titledBorder);
        repaint();
    } 
 
    public String getTitle() {
        return title;
    } 
 
    @Override 
    public void removeNotify() { 
        getTableModel().release(); 
        super.removeNotify(); 
    }