Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #36790

Re: Can you lock a dialog and continue?

From Eric Sosman <esosman@comcast-dot-net.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: Can you lock a dialog and continue?
Date 2017-06-30 17:19 -0400
Organization A noiseless patient Spider
Message-ID <oj6f13$cu4$1@dont-email.me> (permalink)
References (1 earlier) <fc1ca100-85e5-49fc-9f28-f961288b34e9@googlegroups.com> <oj68qi$ohv$1@dont-email.me> <c4b02e21-c034-43a5-be42-c5b2d5276a83@googlegroups.com> <oj6cot$55h$2@dont-email.me> <c0a4a596-736b-48a8-8314-ff2282214aab@googlegroups.com>

Show all headers | View raw


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.

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Can you lock a dialog and continue? Eric Douglas <e.d.programmer@gmail.com> - 2017-06-30 10:35 -0700
  Re: Can you lock a dialog and continue? Eric Sosman <esosman@comcast-dot-net.invalid> - 2017-06-30 14:24 -0400
  Re: Can you lock a dialog and continue? Eric Douglas <e.d.programmer@gmail.com> - 2017-06-30 11:34 -0700
    Re: Can you lock a dialog and continue? Knute Johnson <nospam@rabbitbrush.frazmtn.com> - 2017-06-30 14:33 -0500
      Re: Can you lock a dialog and continue? Eric Douglas <e.d.programmer@gmail.com> - 2017-06-30 13:19 -0700
        Re: Can you lock a dialog and continue? Knute Johnson <nospam@rabbitbrush.frazmtn.com> - 2017-06-30 15:35 -0500
          Re: Can you lock a dialog and continue? Eric Douglas <e.d.programmer@gmail.com> - 2017-06-30 13:56 -0700
        Re: Can you lock a dialog and continue? Knute Johnson <nospam@rabbitbrush.frazmtn.com> - 2017-06-30 15:40 -0500
          Re: Can you lock a dialog and continue? Eric Douglas <e.d.programmer@gmail.com> - 2017-06-30 13:52 -0700
            Re: Can you lock a dialog and continue? Martin Gregorie <martin@address-in-sig.invalid> - 2017-06-30 21:14 +0000
            Re: Can you lock a dialog and continue? Eric Sosman <esosman@comcast-dot-net.invalid> - 2017-06-30 17:19 -0400

csiph-web