-
Notifications
You must be signed in to change notification settings - Fork 13
GTKStyleClass
Eric Bodden edited this page Mar 15, 2015
·
1 revision
package com.sun.java.swing.plaf.gtk;
GTKStyle.class
public Object createValue(UIDefaults table) {
try {
Class c = Class.forName(className, true,Thread.currentThread().
getContextClassLoader());
if (methodName == null) {
return c.newInstance();
}
Method m = c.getMethod(methodName, (Class[])null);
return m.invoke(c, (Object[])null);
} catch (ClassNotFoundException cnfe) {
} catch (IllegalAccessException iae) {
} catch (InvocationTargetException ite) {
} catch (NoSuchMethodException nsme) {
} catch (InstantiationException ie) {
}
return null;
}
}
//avoiding conversion type problem (an array in return)