Here you can find the source of getMethod(String methodName, Class[] params)
private static Method getMethod(String methodName, Class[] params) throws ClassNotFoundException, NoSuchMethodException
//package com.java2s; import java.lang.reflect.Method; public class Main { /**//from ww w .j a v a 2 s. c o m * color well class. */ private static Class m_cwc; /** * Returns the method object associated with the given method name. */ private static Method getMethod(String methodName, Class[] params) throws ClassNotFoundException, NoSuchMethodException { if (m_cwc == null) m_cwc = Class.forName("com.jeta.forms.components.colors.JETAColorWell"); return m_cwc.getMethod(methodName, params); } }