🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #17295

repaint in a panel

#17295
From: Jose Villatoro
Date: Thu, 26 Nov 1998 00:00
16 lines
1046 bytes
    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: <73jr89$d5v10@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: f74b3,69c231d1472ed6c6,start
X-Google-Attributes: gidf74b3,public
From: "Jose Villatoro" <into@maptel.es>
Subject: repaint in a panel
Date: 1998/11/26
Message-ID: <73jr89$d5v10@forums.borland.com>
X-Deja-AN: 415910732
Organization: Another Netscape Collabra Server User
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Newsgroups: borland.public.jbuilder.java.language