error message with listener [message #49686] |
Sat, 09 April 2005 03:53 |
Eclipse User |
|
|
|
Originally posted by: are.you.listening
hi-
the first one works
widget.addListener(SWT.Selection, new Listener() {
public void handleEvent(Event event) {
System.out.println(widget.getText());
}
});
the second one gives the error message
cannot be resolved or is not a type and VerifyListener is underlined in
red.
widget.addVerifyListener(new VerifyListener(){
public void verifyText(VerifyEvent e){
e.widget=e.widget.toUpperCase();
}
});
i get this same error message when trying to type in other examples
in the book (for i.e. a listener for a button)
the program i am working on takes a sql statement i supply and
fills a table with the column names and row data. i now need to use
events to get the sql statement from a StyledText control when i push
a button. the program works when i use code to specify the sql statement.
that obviously isnt good enough :-(
thanks for any help,
jim
|
|
|
Powered by
FUDForum. Page generated in 0.04849 seconds