Custom JPanel that clips children?
- From: Arabella <AZ@xxxxxxxx>
- Date: Fri, 26 Aug 2005 19:15:58 GMT
I'm trying to implement a JPanel with rounded corners that clips it's
children so they don't run outside the jpanel's (now rounded) corners.
I'm able to clip the JPanel, but the children keep painting outside the
jpanel parent.
Do I have to override the paint routines of every child, or is there a way
for a parent to clip children?
I tried overriding every paint method I could find, I even tried commenting
out the contents of every paint, repaint, print, update, etc method and the
child is still leaving artifacts outside the parent.
-A
.
- Follow-Ups:
- Re: Custom JPanel that clips children?
- From: Christian Kaufhold
- Re: Custom JPanel that clips children?
- From: Thomas Hawtin
- Re: Custom JPanel that clips children?
- Prev by Date: getting rid of text in TextArea
- Next by Date: Re: getting rid of text in TextArea
- Previous by thread: getting rid of text in TextArea
- Next by thread: Re: Custom JPanel that clips children?
- Index(es):
Relevant Pages
|
|