Hi All I am facing one problem. The problem is Suppose i have a button in my class named Button1 eg: JButton b1 = new JButton("Click"); I want to get the object name of the button i.e " b1 ". in actionPerformed method. how would i get the object name b1.
As an aside, b1 is not the name of an object, but of a reference variable. An object can be referenced by an arbitrary number of reference variables at the same time, and doesn't have a name by itself.
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus