posted 11 years ago
I am trying to place a loading circle (Image in a JLabel (lblImage)) on top of an image (Image in a JLabel (lblDndImage)) in a JPanel with GridBagLayout (panelTop). lblImage and lblDndImage are both set elsewhere. When I change the panelTop (JPanel) to a BoxLayout, both images show up, but in the GridBagLayout, they do not show up. What am I doing wrong or missing? I have even tried placing the JlayeredPane in a Jpanel with BoxLayout, and placing that in my final JPanel (panelTop), but it does not work.
Basic code is: