nanode
12-07-2000, 12:30 PM
I know and make use of JOption panes wherever possible, but my current project requires some more complex dialogs.
My basic needs:
1) a modal window that will stay up until 'ok' or 'cancel' is clicked
2) it will contain a JPanel with various JComponents (comboxes, checkboxes etc)
3) clicking 'ok' will return an object to whomever called this dialog.
I've been trying so many combinations or parents, super(), pack and so on, that I've really lost focus of what I need to do. Every example or tutorial I see does it differently.
I'd like to make a simple base class that does the above and extend that in a handful of dialogs that my app will use.
Is there a simple example, or some docs. that address what I need?
Thanks.
My basic needs:
1) a modal window that will stay up until 'ok' or 'cancel' is clicked
2) it will contain a JPanel with various JComponents (comboxes, checkboxes etc)
3) clicking 'ok' will return an object to whomever called this dialog.
I've been trying so many combinations or parents, super(), pack and so on, that I've really lost focus of what I need to do. Every example or tutorial I see does it differently.
I'd like to make a simple base class that does the above and extend that in a handful of dialogs that my app will use.
Is there a simple example, or some docs. that address what I need?
Thanks.