Link samples table to GUI events
This commit is contained in:
@@ -34,7 +34,11 @@ public class SampleInfo extends HashMap {
|
||||
|
||||
int getInt(String key) {
|
||||
try {
|
||||
return Integer.valueOf((String) get(key));
|
||||
Object val =get(key);
|
||||
if (val instanceof Number){
|
||||
return ((Number)val).intValue();
|
||||
}
|
||||
return Integer.valueOf((String) val);
|
||||
} catch (Exception ex) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user