Showing posts with label Reflection. Show all posts
Showing posts with label Reflection. Show all posts
Wednesday, November 6, 2013
Reflection: Instantiation
Class<?> cl = Class.forName("javax.swing.JLabel");
Constructor<?> cons = cl.getConstructor(String.class);
Object o = cons.newInstance("JLabel");
Wednesday, May 15, 2013
Object Reflection
"Retrieving Class Objects (The Java™ Tutorials > The Reflection API > Classes)" ( http://bit.ly/10WYmfe )
"Trail: The Reflection API (The Java™ Tutorials)" ( http://bit.ly/16dIKgn )
Subscribe to:
Posts (Atom)