pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From V SANTOSH PAVAN RAJU BS <pavanraju....@gmail.com>
Subject Question regarding listeners
Date Fri, 06 Jan 2012 07:59:22 GMT
Is there any listeners that can be used to execute some block of code at
initialization time.
For example, buttonPressListeners  execute a block of code when that
corresponding button was clicked.
But, i want to execute a block of code that should run at initialization
time only, without any event occurs.

I wrote some code to do this.

this.getComponentClassListeners().add(new ComponentClassListener() {
public void focusedComponentChanged(Component component) {
 custIdTest = WindowContext.getCustomerId(AccountInformationPane.this);

Here i tried to get a value from other class which is WindowContext in to
AccountInformationPane class which extends BoxPane.
System.out.println(custIdTest); this statement was executed infinitely......

So is there any other way to do this?
Thanks & Regards
B.S.V.S.Pavan Raju.
Skype: skype_pavan1

View raw message