Re: Dynamic JLabel display within a JPanel



On 4/17/2005 at 11:40:34 AM, sean.james.molloy@xxxxxxxxx wrote:

> I beleive my code to update the image displayed is correct. It
> is executed so quickly that each image doesn't have time to be
> displayed. I am not that familair with using threads within a
> GUI application,

If you are not doing your computations in a separate thread, then it seems
likely that your images are not being displayed because they will not be
painted until your computations are complete.

Of course, without seeing any code it is impossible to tell, but based on
what I have been able to glean from your description, I cannot imagine how
it could work.

--
Regards,

John McGrath
.



Relevant Pages

  • Re: How Do I Make My Application "Feel" Faster
    ... method of an ActionListener, which executes on the Event Dispatch Thread ... then the repainting of the menu and other GUI components occurs ... Much of what's done in that separate thread is not likely ... Steve W. Jackson ...
    (comp.lang.java.gui)
  • Re: AfxBeginThread and wait for the window creation before return to the caller
    ... You should not be creating the dialog in a separate thread so the ... Move the long computation to a separate thread, and use PostMessage to notify the main GUI ... >The dialog that I want to perform is a simple window with animated GIF, ... >sends a message to my MyWaitingDialog to kill it. ...
    (microsoft.public.vc.mfc)
  • Re: Why not event-driven packages in other than the main thread?
    ... I've developed an application were I've used Tkinter for the GUI. ... Can you post a minimal example to reproduce this to Twisted's bug ... However, I was aiming to build a scalable HTTP server, and tried using Twisted for the task. ... Whenever I started the thing from the main thread (as a separate thread), ...
    (comp.lang.python)
  • Re: Tam Lin podcast site
    ... to understand the tools used for automated testing of GUI ... I imagine there's a component of painful ... Firefox is a GUI application, many tests exist to test the GUI. ... take all or most of the drudgery out of the process. ...
    (rec.arts.sf.fandom)
  • Re: Pygtk, libglade
    ... > The GUI won't show up w/o calling this function. ... the control of my program will stay in the mainloop ... I don't know if running mainloop in separate thread is a good idea. ...
    (comp.lang.python)