posted 19 years ago
here's a possible solution:
Create a JPanel with all the input components you needUse the showOptionDialog method and use the JPanel you created as the message
When you receive the result, you can get the values of each component individually.
Like this:
Just one detail, since all those components are the "message", none of them will start with focus.
Hope it helps.
Francisco
Francisco<br />SCJP<br />please use the [code][/code] tags when showing code.Click <a href="http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=ubb_code_page" target="_blank">here</a> to see an example.