Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » error message with listener
error message with listener [message #49686] Sat, 09 April 2005 03:53
Eclipse UserFriend
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
Previous Topic:importing Class files for use (summary)
Next Topic:listener : solved
Goto Forum:
  


Current Time: Sun Jun 30 13:53:43 GMT 2024

Powered by FUDForum. Page generated in 0.07964 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top