🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #12328

Re: JDialog Repaint Problems

#12328
From: Matt Krevs
Date: Fri, 22 Jan 1999 00:00
31 lines
1645 bytes
I have this problem with modal dialogs.

I call requestFocus() within the class that opens the JDialog to sort of fix
it.

eg

MyDialog dialog = new myDialog();
dialog.pack();
dialog.setVisible(true);

requestFocus();

Not perfect but OK. Remember, when your application is deployed, you wont
have the DOS box in the background (at least I dont think you will ).

Bob Pfingsten wrote in message <787ps9$gkr10@forums.borland.com>...
>I have an application which extends Decorated Frame.  This application
>implements a BeanPanel (this is my main panel) which in turn instantiates
>other JPanels(menus and submenus which contain buttons) depending on user
>selections.  Some of the JPanels instantiate JDialogs and here is my
>question.  When a JDialog with modal set to true is disposed it causes what
>appears to be a repainting problem.  Usually I have the java console
running
>behind my main application and when the JDialog is closed(disposed) it
>causes the java console to flash to the front before the main application
is
>repainted.  Any questions or comments on this matter would be greatly
>appreciated.
>
>
Technical Details
Message-ID: <7888re$h4q17@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <787ps9$gkr10@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,fa5453eaf7ac66cc
X-Google-Attributes: gid111d45,public
From: "Matt Krevs" <mattkrevs@flex.com.au>
Subject: Re: JDialog Repaint Problems
Date: 1999/01/22
Message-ID: <7888re$h4q17@forums.borland.com>
X-Deja-AN: 435387613
References: <787ps9$gkr10@forums.borland.com>
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.jbuilder.java.swing