 |
AppletTalk.com Java discussions newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Jimbob Guest
|
Posted: Wed Nov 26, 2003 9:13 am Post subject: Labels not showing up after icons.. |
|
|
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?
|
|
| Back to top |
|
 |
VisionSet Guest
|
Posted: Wed Nov 26, 2003 10:48 am Post subject: Re: Labels not showing up after icons.. |
|
|
"Jimbob" <Jimbob (AT) memail (DOT) com> wrote
| Quote: | 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?
|
JLabels are transparent by default.
Try setOpaque(true);
--
Mike W
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|