how to set JFrame background transparent but JPanel or JLabel Background opaque?
The problem is, the JFrame‘s default Layout manager is a BorderLayout, this means that your ShowImage pane is filling the entire area of the frame (in black). I bet if you changed the background of the ShowPane to red. It would show up completely filled in red instead Now you can have a look at … Read more