[nbj2ee] Re: Lookup a topcomponent

  • From: Geertjan Wielenga < >
  • To:
  • Subject: [nbj2ee] Re: Lookup a topcomponent
  • Date: Thu, 29 Nov 2012 23:29:16 +0100


You're missing the correct mailing list: 


Gj

On 11/29/2012 05:43 PM, Eric55 wrote:
I'm missing something fundimental here.

I'm trying to loosely couple 2 modules, sender and receiver

In sender
private ReceiverTopComponent receivertopcomponent = new  ReceiverTopComponent 
();

in constructor it calls
associateLookup(Lookups.singleton(receivertopcomponent);

OnButtonPress it calls recievers setText Method.

In Reciver
setText justs puts text in a textfield.


This all works but the sender creates a new instance of receiver which is bad.


What am I missing?  How do I get sender to talk to the displayed instance of 
receiver?







[nbj2ee] Lookup a topcomponent

Eric55 11/29/2012

[nbj2ee] Re: Lookup a topcomponent

Geertjan Wielenga 11/29/2012

[nbj2ee] Re: Lookup a topcomponent

John Yeary 11/29/2012

[nbj2ee] Lookup a topcomponent

apiening 11/30/2012

Project Features

About this Project

www was started in November 2009, is owned by jpirek, and has 21 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20131025.e7cbc9d). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close