Article View: borland.public.jbuilder.java.swing
Article #13054Repaint bug on JApplet class?!
From: Jari Nurminen
Date: Wed, 30 Sep 1998 00:00
Date: Wed, 30 Sep 1998 00:00
28 lines
1465 bytes
1465 bytes
Hi, I have just encountered a strange "feature" in Swing (1.1.6): I'm trying to create a modal dialog: I created a dummy frame on my applet class, which becomes then the parent frame for this dialog. BUT after I have closed the dialog (with dispose()) my applet doesn't repaint itself anymore. I can use all the components on the applet but I can't see them (=They are there and they react to mouse and keyboard actions but they are useless if the results can't be seen) AND THE STRANGEST thing is that this occures if I create this window outside of GUI-class: it works fine if I create a dialog from a GUI-class (e.q. a class derived from JApplet and which implements a button which creates a dialog), but if I try to do this from a non-GUI class (e.q. a class derived from Object) it doesn't work. This also works perfectly in a Java-application (with the "real" frame and with the dummy frame for the applet). What should I do for the applet to make it repaint itself right? Help, *please* Cheers, Jari
Technical Details
Message-ID:
<01bdec78$bc30fe40$2dd96fc2@pc12.gordion.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: 111d45,12c594bb75fb5731,start X-Google-Attributes: gid111d45,public From: "Jari Nurminen" <nospam_nurminen@gordion.com> Subject: Repaint bug on JApplet class?! Date: 1998/09/30 Message-ID: <01bdec78$bc30fe40$2dd96fc2@pc12.gordion.com> X-Deja-AN: 396334777 Organization: Gordion- Business Consulting Ltd. Newsgroups: borland.public.jbuilder.java.swing