Uhhhh
depends what you wish to input.
If it's a more complex set of variables which need adjusting before the script runs, you'll need a full gui which you design piece by piece with swing components. If you need just one (or maybe a couple) of variables changing for much more basic scripts, there are a few shortcuts.
String s = JOptionPane.showInputDialog("Title",
"Default option");
when you run this code, the script will open an input dialogue box which awaits user input. Once the user presses ok, it will save the input to the string 's' (as u can see from the code).
You can do this with ints too..
If you need a more complicated gui like that of my rock crabs script:
So ye, if you need something like that, I recommend you install the windowbuilderpro plugin for eclipse (if that's what you're using - if not then i'm sure you'll be able to find an equivalent plugin for your ide)
You can install this plugin here (it will give you instructions on this page too: http://www.eclipse.org/windowbuilder/download.php )
Once you have that, it will make your life 10x easier. All you need to do after that is build the gui and send the variables to the main class using an actionListener on a start jbutton (for example).
let me know if you have any further questions and i'll be willing to help
apa