![]() |
Using Dialog Boxes in this Script
I wrote this:
Code:
import java.util.*; //Needed for Scanner Class |
I won't go through the code you have here exactly, rather just go over the JOptionPane.
The method you want for input is JOptionPane.showInputDialog. This is always a string, so in order to capture it as valid data: PHP Code:
BTW, you can easily combine the swing and the system.out. That's not an issue, but it does mean if you want to see it you have to launch it from the command line as you won't see the messages unless you redirect them elsewhere. |
| All times are GMT +1. The time now is 08:19 AM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.