I'm having a problem of instantiating a class object, what I want to do is to instantiate the object with constructor accepting "String",
here is the code:
Object object = null;
Class classDefinition = Class.forName("javax.swing.JLabel");
object = classDefinition.newInstance();
it instantiate the JLabel object without a text, i want it to instantiate the object with a text "JLabel"...
any ideas will be much appreciated?