Article View: borland.public.jbuilder.java.language
Article #17307Re: repaint in a panel
From: mariano podesta
Date: Sat, 28 Nov 1998 00:00
Date: Sat, 28 Nov 1998 00:00
30 lines
1388 bytes
1388 bytes
probaste redefiniendo el metodo paint del panel:
Panel miPanel = new Panel()
{
public void paint(...)
{
<los poligonos>
}
}
o algo similar?
Jose Villatoro wrote:
> Hi all
> I'm begining with JAVA and i've the follow trubel:
>
> My Applet have a frame and a panel(in the frame). I need to write in the
> panel some polygons (with drawPolygon() and fillPolygon()) but when i
> minimize and maximize the window; the polygon disapear. I know i must to use
> the paint(), but how can i use the paint of the panel and not the frame's
> paint?. if i use :
> public void paint(Graphics g)
> {
> ........ /*repaint all the poligons*/
> }
> it repaint the frame and not the panel; i can�t see the panel.
>
> I need helppppppp �pleaseeeeeeeeeeeeee!
> Thank all
Technical Details
Message-ID:
<365F888C.F99BDFD4@usa.net>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<73jr89$d5v10@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: f74b3,69c231d1472ed6c6 X-Google-Attributes: gidf74b3,public From: mariano podesta <marianopodesta@usa.net> Subject: Re: repaint in a panel Date: 1998/11/28 Message-ID: <365F888C.F99BDFD4@usa.net> X-Deja-AN: 416411751 Content-Transfer-Encoding: 8bit References: <73jr89$d5v10@forums.borland.com> X-Accept-Language: en Content-Type: text/plain; charset=iso-8859-1 Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language