• Post Reply Bookmark Topic Watch Topic
  • New Topic

Reflection  RSS feed

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can any one help me in getting the reference of an Object composed in a class after the class is loaded with the help of reflection. The object is a static one.
I mean
In java.awt.Color there are static objects of Color red,blue,green etc. How do i get the reference of red, green through reflection. Can any one help me in this.
Thanks for your help.....
Chandar
 
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!