Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Find component in java applet structure

Reply
Thread Tools

Find component in java applet structure

 
 
Delorean
Guest
Posts: n/a
 
      12-29-2006
Hi.

I have an applet. Applet consist of two parts, in left there is a
navigation tree, when you push on node appropriate interface with input
fields appear on the right side of applet. Interfaces are developed in
classes which are extended as JPanel.

Now i need to transport data from one interface to another. I need
destination interfaces object, so i can import data. Is there a way in
java how i can search for interfaces object if i know that interfaces
class name?

I know, there is possibilities to get object from
"Frame.getFrames()[0].getComponent(n)" and so on, but thing is, that
applets components hierarchy is very complicated (they are many) and i
cant find object in this way.

Can you help me in this problem?
Best regard

 
Reply With Quote
 
 
 
 
Delorean
Guest
Posts: n/a
 
      12-29-2006
Any one... ??

 
Reply With Quote
 
 
 
 
Andrew Thompson
Guest
Posts: n/a
 
      12-29-2006
Delorean wrote:
> Any one... ??


Well gee. It's sad that nobody deigned to answer
your question in the entire (checks watch) 35 minutes
since you posted it. I think you deserve a full refund
(and a cuff around the ears for being so impatient).

If it is really that urgent, perhaps you should pay
someone enough to care about your schedule.

BTW ..Delorean? Wasn't that the guy smuggling
cocaine to prop up his sports car company?
Maybe you should resist snorting the 'product'.

Andrew T.

 
Reply With Quote
 
Delorean
Guest
Posts: n/a
 
      12-29-2006
Happy new year for you Andrew, i feel sorry that my post made you write
those words.

Andrew Thompson wrote:
> Delorean wrote:
> > Any one... ??

>
> Well gee. It's sad that nobody deigned to answer
> your question in the entire (checks watch) 35 minutes
> since you posted it. I think you deserve a full refund
> (and a cuff around the ears for being so impatient).
>
> If it is really that urgent, perhaps you should pay
> someone enough to care about your schedule.
>
> BTW ..Delorean? Wasn't that the guy smuggling
> cocaine to prop up his sports car company?
> Maybe you should resist snorting the 'product'.
>
> Andrew T.


 
Reply With Quote
 
Oliver Wong
Guest
Posts: n/a
 
      12-29-2006

"Delorean" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) oups.com...
> Hi.
>
> I have an applet. Applet consist of two parts, in left there is a
> navigation tree, when you push on node appropriate interface with input
> fields appear on the right side of applet. Interfaces are developed in
> classes which are extended as JPanel.
>
> Now i need to transport data from one interface to another. I need
> destination interfaces object, so i can import data. Is there a way in
> java how i can search for interfaces object if i know that interfaces
> class name?
>
> I know, there is possibilities to get object from
> "Frame.getFrames()[0].getComponent(n)" and so on, but thing is, that
> applets components hierarchy is very complicated (they are many) and i
> cant find object in this way.
>
> Can you help me in this problem?


Have you considered having a central model which contains all the data,
and implementing your "interfaces" as views which query this data? See
http://en.wikipedia.org/wiki/Model-view-controller for more details, or
google for "Model View Controller".

- Oliver


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Java Applet loading in Applet Viewer but not in HTML page Archana Java 1 10-24-2004 11:41 PM
Can I use a swing Component (e.g. JTextField) in a Java Applet Prashanth Ravi Java 2 10-07-2004 09:58 AM
Can I use a swing Component (e.g. JTextField) in a Java Applet Prashanth Ravi Java 1 10-07-2004 09:30 AM
Java applet failed when I try to load the avi file in my java applet Krista Java 3 09-15-2004 02:53 AM
Re: play wave files using java.applet.Applet webster Java 0 07-20-2003 01:51 PM



Advertisments