Search code examples
javaswingopacitytitled-border

Is it possible to set a TitledBorder opaque on Swing?


Is it somehow possible on Swing to set a TitledBorder transparent so that a background image shines through?


Solution

  • Found the answer.

    Use the method

    setOpaque(false) 
    

    on the underlying panel.