Just wondering, ive got a big jLabel, and on that label ive set a .jpeg as a
Icon..
Ive then put jLabels over the top of this, aswell as a combo Box.
The thing is, when i run my program, all these labels ontop of the main
jLabel with the icon do not show up, the only show up once i do say,
jLabel1.setText("test") from say a mouse click event
They should all show initially really, cannot work out whats up with it. Any
ideas?
VisionSet - 26 Nov 2003 10:48 GMT
> Just wondering, ive got a big jLabel, and on that label ive set a .jpeg as a
> Icon..
[quoted text clipped - 7 lines]
> They should all show initially really, cannot work out whats up with it. Any
> ideas?
JLabels are transparent by default.
Try setOpaque(true);
--
Mike W