Events between Frames and applet

hi

it's true that java is quite powerfull and easy to use but when it comes to gui handeling it just sucks !

i want to communicate between two frames or between a frame and an applet(same concept i guess) :

lets say frame one has text field that i type something in and frame two has a label which will be update by frame one.

how am i supposed to do that?

[388 byte] By [tndfra] at [2007-10-1 1:04:57]
# 1

If you open both the frames (Im assuming here your talking about JFrame's) inside the same JVM you should have no trouble interacting them.

Have some base class instantiate 2 JFrames, the base class can then be used to pass messages between the 2 JFrame's bacause it has references to them like any other object.

You might want to have a look at some software design patterns, thay are helpful with this kind of thing where architecture poses a problem.

colr__

colr__a at 2007-7-8 1:23:09 > top of Java-index,Archived Forums,Java 2 Software Development Kit (J2SE SDK)...