>Thanks Andrew, that's clear.
>
>But the point of the exercise was to accomplish this without
>JOptionPane.showXXXDialog (for flexibility reasons).

Signature
Andrew Thompson
http://www.athompson.info/andrew/
> OK well.. I really still don't understand quite
> what you are trying to achieve here. The 'foos'
> and 'bars' do not help - can you turn that into
> 'browse' 'open' 'cancel', or somthing meaningful?
Definitely. But that doesn't teach me anything. I'm trying to understand the
mechanism of the sucker. What would I have to do if
JOptionPane.showXXXdialog doesn't fit the bill? I find the whole shebang of
GUI's, listeners, callbacks and what not a big pool to drown in. It's a
matter of education, raelly :-)
> Is the object to return a single selected option?
Yes. Pobably. An example could be a dialog with a grid of of buttons (a
puzzle perhaps) where one click of a button closes the window and leads you
to the next.
Koos

Signature
43rd Law of Computing: Anything that can go wr
fortune: Segmentation violation -- Core dumped
Andrew Thompson - 07 May 2007 23:55 GMT
>> OK well.. I really still don't understand quite
>> what you are trying to achieve here. The 'foos'
[quoted text clipped - 4 lines]
>mechanism of the sucker. What would I have to do if
>JOptionPane.showXXXdialog doesn't fit the bill?
You might be right there. JOptionPane can be handy
for those situations where you really don't need to
customize it much. Anything much beyond the trivial,
and it is easier to code the entire thing as a JDialog,
rather than trying to 'make JOP fit'.
>> Is the object to return a single selected option?
>
>Yes. Pobably. An example could be a dialog with a grid of of buttons (a
>puzzle perhaps) where one click of a button closes the window and leads you
>to the next.
JOP is well suited to returning 'one of various' options, as
shown in my example. Once more sophisticated layout
(style, subtlety etc.) comes into it - I would look to a JDialog.

Signature
Andrew Thompson
http://www.athompson.info/andrew/
Koos Pol - 08 May 2007 16:03 GMT
Thanks a bunch for your remarks, Andrew. You've been very helpful.
Cheers,
Koos

Signature
43rd Law of Computing: Anything that can go wr
fortune: Segmentation violation -- Core dumped