Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / November 2003

Tip: Looking for answers? Try searching our database.

Labels not showing up after icons..

Thread view: 
Jimbob - 26 Nov 2003 09:13 GMT
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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.