For simple questions, you can use JOptionPane.showInputDialog which comes in two versions, one that just prompts for a String and one that selects an item from a list.
Dialog is the AWT (Advanced Windowing Toolkit) equivalent of JDialog.
The above code is part of the com.mindprod.common18.Misc class. You can download it as part of the common18 bundle.
This page is posted
Optional Replicator mirror
Your face IP:[220.127.116.11]
You are visitor number|