FocusListener on Section [message #331149] |
Tue, 26 August 2008 13:29 |
Eclipse User |
|
|
|
I try to add a FocusListener to a Section, but my Listener is never called.
Section section = toolkit.createSection(form.getBody(),
Section.DESCRIPTION|Section.TITLE_BAR|
Section.TWISTIE|Section.EXPANDED);
section.addExpansionListener(new ExpansionAdapter() {
public void expansionStateChanged(ExpansionEvent e) {
form.reflow(true);
}
});
section.addFocusListener(new FocusListener());
private class FocusListener extends FocusAdapter {
@Override
public void focusGained(FocusEvent e) {
System.out.println("Focus Gained");
super.focusGained(e);
}
}
What am I doing wrong ? Thanks.
|
|
|
Powered by
FUDForum. Page generated in 0.05550 seconds