Example jButton1 = new JButton(); How do I code something for jButton.??? to return to me the string "jButton1"? It is the bit of ??? that has me stumped.
Welcome to the Ranch Calvin. If you mean the name of the instance variable, it can be found out with reflection. If you mean the name field of awt.Component it can be accessed by getName and setName.
SCJP2. Please Indent your code using UBB Code
It looks like it's time for me to write you a reality check! Or maybe a tiny ad!