• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Invoking a method from another JInternalFrame

 
Greenhorn
Posts: 22
Mac Eclipse IDE Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?

Thanks!
jy
[ March 12, 2007: Message edited by: Jean-Yves Tinevez ]
reply
    Bookmark Topic Watch Topic
  • New Topic