• Post Reply Bookmark Topic Watch Topic
  • New Topic

JInternalFrame  RSS feed

 
Prashanth Bhanu
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends,
If subclass of JinternalFrame implements the listener.Its Container is a JPanel with some Swing components on them.When i register a JTextfIeld with the listener and passing the parameter as "this".When i click on the JTextfield, evnt is not getting fired why???. can any body help me to know this.
Thanx in advance
bye
 
Pat Hays
Ranch Hand
Posts: 138
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Can you give some of your code?
 
Craig Wood
Ranch Hand
Posts: 1535
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"this" refers to the enclosing class. It's a convenient way to refer to the class from within it.

Since "this" is a class object you can query it for information using methods in the Class class

You can also ask your components for the class name of their listeners.
Here's an exploration
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!