Since Telcontar suggested adding Swing components (like JPanel) to the options panel. Thus, it is easy to use automatic button creation, rather than doing it from scratch, creating your own JDialog.
However, there is one small problem. The focus will be on the first button, and not on the first component of the panel. To work around this problem, you can try the solution presented in the dialog box .
camickr
source share