Path: csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Eric Sosman Newsgroups: comp.lang.java.programmer Subject: Re: Can you lock a dialog and continue? Date: Fri, 30 Jun 2017 17:19:01 -0400 Organization: A noiseless patient Spider Lines: 17 Message-ID: References: <34333fbb-4b83-454b-9395-4efaa019e95e@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Fri, 30 Jun 2017 21:15:15 -0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="161b96caf829cfa25bb0efe69dfc8d9d"; logging-data="13252"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+QqXja1cJMsKKymbSxlBjD" User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 In-Reply-To: Content-Language: en-US Cancel-Lock: sha1:L3cp2MAIC2h4UwGyzn1SJNO0WfY= Xref: csiph.com comp.lang.java.programmer:36790 On 6/30/2017 4:52 PM, Eric Douglas wrote: > On Friday, June 30, 2017 at 4:40:44 PM UTC-4, Knute Johnson wrote: >> >> I think you ought to use a modal dialog for this unless you haven't >> completely described what you are trying to do (or I can't understand >> what you are up to :-). >> > > What I'm trying to do: Create a window (using JDialog for every window which allows linking to other JDialog and customizing decorations). Add something for user to do (ie a JTextField to type value, a JButton to submit value). They click button, it runs a background process, which could take a minute. While the process is running it displays a popup window with a progress bar that tells them it's running, and percentage complete if possible. When the background process finishes getting data we want to update the main screen, possibly populating a JTable. When the GUI is finished updating I want to close/hide the popup. https://docs.oracle.com/javase/8/docs/api/javax/swing/ProgressMonitor.html http://docs.oracle.com/javase/tutorial/uiswing/components/progress.html#monitors -- esosman@comcast-dot-net.invalid Thirteen hundred days to go.