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.

transparent JComponents above JLabel

Thread view: 
VisionSet - 20 Nov 2003 14:30 GMT
I'll describe what I think I want, which hopefully conveys my intent.
I would like a text label with a (1,2) gridlayout which is a container for 2
JComponents.
The JComponents will register action listeners and visually be just a block
of colour.
I would of course like the text below to show through.
How can I achieve this?

Or should I just *resort* to Graphics and custom paint the JLabel and handle
events via mouse position?

TIA
Signature

Mike W

VisionSet - 20 Nov 2003 15:46 GMT
It's okay I've sorted it.

private int colour = (int)(Math.random()*0xffffffff); // doh! 0x7fffffff

Signature

Mike W

> I'll describe what I think I want, which hopefully conveys my intent.
> I would like a text label with a (1,2) gridlayout which is a container for 2
[quoted text clipped - 6 lines]
> Or should I just *resort* to Graphics and custom paint the JLabel and handle
> events via mouse position?


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



©2009 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.