How can we draw the boundary of the Jpanel to be invisible or transparent such taht the underlying boundar can be visible without ugly ridges and edges , please help, I need this for one of my Swing forms wher the Panel sits above a background image.
Sorry I missd out that I was using the jLabels inside the Jpanel . I mean over the jPanel which does not have a setOpaque class
How do I implement this!
Dushyant Chhetri wrote:Sorry I missd out that I was using the jLabels inside the Jpanel . I mean over the jPanel which does not have a setOpaque class
How do I implement this!
You can use setBorder() or setOpaque() methods of the JLabel. Please use the documentation for your help so that you can see what methods the particular component supports.
BorderFactory has a createEmptyBorder() method. Check out the API docs for what it does
JLabel is already set to be borderless (visible) and transparent by default.