tags:

views:

55

answers:

1

Hello, I need create custom dialog and put JPanel into it. Is it possible?

+2  A: 

Panel inside dialog box should have what you need.

Anthony Forloney
thanks a lot. And where I can implement what happend with values from components of panel in dialog? That panel will have some jTextFields and listBoxes.
joseph
In the example from the link it seems it is all done in the user's `createPane` method or you can try manually with: `your_dialog.getContentPane().add(whatever)`
Anthony Forloney
But when I click "OK", i need to get the values from the fields, or say to user that some are invalid.
joseph
I found it, probably it will be in void close(). Thanks.
joseph
No problem, good luck.
Anthony Forloney