Article View: borland.public.jbuilder.java.language
Article #15883calling repaint?
From: Olivares
Date: Mon, 26 Apr 1999 00:00
Date: Mon, 26 Apr 1999 00:00
18 lines
953 bytes
953 bytes
Hi
I I'm proging a small net playable game and I need to call the repaint()
method immediately after calling a static function.
the problem is when I try to call repaint a get an error: cannot run non
static method in a static context.
or something like that.
is there any way I can get around this?
ie:
public static void flipCard()
{ Code.....
Code....
repaint();
}
The game runs as an application not an applet.
and im new at Java :)
Technical Details
Message-ID:
<7g3955$hle13@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,7d65a4f221c7a305,start X-Google-Attributes: gidf74b3,public From: "Olivares" <olivar@idirect.com> Subject: calling repaint? Date: 1999/04/26 Message-ID: <7g3955$hle13@forums.borland.com> X-Deja-AN: 471304546 X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 Organization: Another Netscape Collabra Server User X-MSMail-Priority: Normal Newsgroups: borland.public.jbuilder.java.language