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 / General / February 2007

Tip: Looking for answers? Try searching our database.

Making a panel and its contents transparent

Thread view: 
Kaish - 27 Feb 2007 18:23 GMT
Hi guys,

I'm coding an app that draws a little circle every time a user clicks
the mouse. This is fine and working. However, I want to be able to
toggle all the circles between visible and invisible.

The best way I can think of is to create one big panel and put all my
other panels containing their components inside it, then make a
checkbox that sets that big panel's opacity to false. I do this, but
the panel remains exactly the same.

I thought it might have been a repaint() problem, so I tried making
the panel not opaque at initialization, but all the components inside
still remain visible.

Am I missing something obvious?

Thanks,
Kaish
Andrew Thompson - 28 Feb 2007 07:24 GMT
..
> I'm coding an app that draws a little circle every time a user clicks
> the mouse. This is fine and working. However, I want to be able to
[quoted text clipped - 10 lines]
>
> Am I missing something obvious?

The Opacity of the panel does not apply
to things inside it, only things *behind*
it.

Andrew T.


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.