[izpack-devel] Previous Button -- Any Way To Notify the Panel When "Prev" is Pressed?
Hal Vaughan
hal at thresholddigital.com
Tue Jan 17 17:24:26 CET 2006
On Tuesday 17 January 2006 11:08 am, Miraodb wrote:
> hi hal,
>
> i was gonna send you the diff for that... but you already found the
> solution... still interested ?
> i'm not sure whereas we'll commit that. i need some other's opinions.
> I recall some comments on the behaviour of the previous button. It can be
> very tricky coz if you take the processpanel for example you don't want to
> execute the processes twice.
> adding the listener is a good idea... just gotta find a suitable solution.
> for your personal work i can send you the diff.
I figure if it's done by adding an extra method that panels can use, in most
cases, the behavior won't change. For example, ProcessPanel would still work
as is. It would allow a panel, though, to find out when someone is leaving
the panel by pressing "Prev." Here's an example: I am writing a panel that
searches the hard drive for specified versions of programs that my program
needs. That takes a while, and the only way I can do it without a sloppy
look is to make it a separate thread (once the "search" button is pressed, it
keeps that pressed look and the GUI is not updated until the search is done).
If "Next" is pressed, I can kill the search thread from isValidated().
(Actually, I lock "Next" while the search is being performed.) I'd like to
know when/if "Prev" is pressed so I can kill the thread, instead of leaving
it running while other panels are being used.
Hal
More information about the izpack-devel
mailing list