Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
The moose likes Swing / AWT / SWT and the fly likes awt JPanel Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Badass: Making Users Awesome this week in the Game Development forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "awt JPanel" Watch "awt JPanel" New topic

awt JPanel

joseph okon
Ranch Hand

Joined: Dec 07, 2004
Posts: 63
can anybody tell me how to make different Jpanel to interact with each other eg. like pressing a button in one JPanel and the action occurs in another JPanel
If there is two or three instance of the application
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15302

So you want to control once instance of an app with another instance of the same app? Is this what you are asking.

GenRocket - Experts at Building Test Data
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
you will have to explain your problem a lot better than you have been

August 7, to which you received a reply, but no follow-up to say it didn't
work or it wasn't what you wanted etc

August 18, this thread, again a reply asking for more info/clarification,
only follow-up a month later as a new post.

September 16, new post (follow-up to 2.) with a little extra info.

OK, working on this
> I want to control once instance of an app with another instance of the same app.

I have no idea what you are trying to do here, perhaps you can demonstrate
with this sample program.

compile it, then jar it, then double click the .jar file 3 times.

there will now be 3 small applications on your desktop, each with a
textfield and a button. lets say you enter "Hello World" into the left-most
app's textfield, then click the adjacent button.

What do you want to happen when the button is clicked
(note: the left most app. might not be the first app.)

I agree. Here's the link:
subject: awt JPanel