Accessing a calling-class' public method
Posted on 1997-04-29
JPanel jp = null;
Class c = Class.forName((String)arg);
jp = (JPanel)c.newInstance();
catch (Exception e)
The above code extract instantiates a new Class and starts the object.
This new class begins execution and I would now like this class (the newly executed class) to access the callers method (called int getInt ()).
How is this possible?