BaconAndCabbage
asked on
Putting a value in a JSpinner
Just a simple question....how do you insert a default value into a JSpinner?
try {
settingsGui.spinnerPort.se tValue("25 ");
}
catch (IllegalArgumentException iae) {
}
If i wanted to put the int value '25' in there, what would i put in? What i have above doesn't work
try {
settingsGui.spinnerPort.se
}
catch (IllegalArgumentException iae) {
}
If i wanted to put the int value '25' in there, what would i put in? What i have above doesn't work
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Don't have empty catch blocks - it can (if it has not already) lead to bugs that are difficult to detect
try {
settingsGui.spinnerPort.se
}
catch (IllegalArgumentException iae) {
}