• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Invoking a method from another JInternalFrame

Jean-Yves Tinevez
Posts: 22
Eclipse IDE Mac Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
[edit: err actually i just realized that this post would be more suited into the swing forum. can someone move it? thanks, jy]

Hello everyone!

I have a simple JTree into a JInternalFrame which is used to display some formatted data.

I would like to allow the user to double click on one of the item of the tree, which would result in loading the values embedded in this item and display them into *another* JInternalFrame.

How can i call a method belonging to a Frame form another Frame? One can think that the calling Frame as to be aware of the existence of the called Frame, but how could one do that in an *elegant* way?

[ March 12, 2007: Message edited by: Jean-Yves Tinevez ]
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic