The Artima Developer Community
Sponsored Link

Java Answers Forum
Communicate with two JFrames

1 reply on 1 page. Most recent reply: May 26, 2006 6:42 AM by James Watson

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
Sanjay Perera

Posts: 42
Nickname: angel6
Registered: Apr, 2004

Communicate with two JFrames Posted: May 25, 2006 11:38 PM
Reply to this message Reply
Advertisement
Dear friends,

Have two JFrame applications, from one JFrame I should be able to access other frame's properties or methods. This can be done in applets but I don't know how to do this in applications.
I.e JFrame1.java should be able to communicate with JFrame2.java

1. Any idea?

2. What is the technical term used to present this scenario? Is it concurrent? Remote method invocation? Anything else?


James Watson

Posts: 2024
Nickname: watson
Registered: Sep, 2005

Re: Communicate with two JFrames Posted: May 26, 2006 6:42 AM
Reply to this message Reply
> I.e JFrame1.java should be able to communicate with
> JFrame2.java

These are source files. They don't communicate. They don't DO anything.

> 1. Any idea?

I think you either want the two classes to communicate or two Object instances of those classes to communicate.

> 2. What is the technical term used to present this
> scenario? Is it concurrent? Remote method invocation?
> Anything else?

In Object oriented terms you would call those messages. In Java you normally invoke methods.

Flat View: This topic has 1 reply on 1 page
Topic: Applet Servlet Communication Previous Topic   Next Topic Topic: Class Path (Manifest) Problem

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use