Code example for TitledBorder

Methods: setTitleJustification

0
        titledBorder.setTitle(title);
    } 
 
    public void setTitleJustification(int titleJustification)
    { 
        titledBorder.setTitleJustification(titleJustification);
    } 
 
    public void setTitleColor(Color titleColor)
    { 
        titledBorder.setTitleColor(titleColor);
    } 
 
    public void setTitleFont(Font font)
    { 
        titledBorder.setTitleFont(font);
    } 
 
    public void setTitlePosition(int titlePosition)
    { 
Contextual code suggestions in your IDE  Get Codota for Java