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 / June 2004

Tip: Looking for answers? Try searching our database.

JLayeredPane painting problem

Thread view: 
YESHIVA UNIV - 28 Jun 2004 15:14 GMT
I have a JLayeredPane with a number of layers.  On a low layer a bunch of
polygons are drawn.  On a higher layer, there is a JPanel (with
setOpaque(false)) where JLabels are added.  The labels are added just fine,
and I can see them show up above the drawn polygons.  The problem is that
whenever something new gets painted on the lower level, it paints _over_ the
labels.  The labels seem to disappear.  However, if I Alt-Tab out of the
application, and the Alt-Tab back in, the labels are back.  What could
possibly be going on?
Andrew Thompson - 28 Jun 2004 15:29 GMT
> What could possibly be going on?

Line 86, column 23.  Change the '.' to ','.

If that does not fix it, try..
<http://www.physci.org/codes/sscce.jsp>

Signature

Andrew Thompson
http://www.PhySci.org/ Open-source software suite
http://www.PhySci.org/codes/ Web & IT Help
http://www.1point1C.org/ Science & Technology

YESHIVA UNIV - 28 Jun 2004 16:01 GMT
I know, I know, but the problem is that the code for the polygon drawing is
so large that I wouldn't know what to post.  I was just wondering whether
anyone has encountered anything similar before, when one layer in a
JLayeredPane overwrites ones which are higher up.


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.