listener : solved [message #49715] |
Sat, 09 April 2005 07:14 |
Eclipse User |
|
|
|
Originally posted by: problem.solved.forNow
hi-
i used this code. now i can run any query against any db in the database
entering sql in a text control and displaying the result in a table control
after i push a button.
i am scamming this code and will give credit to the author(s).
once in awhile i have to make a change here or there.
final Button testButton = new Button(shell,SWT.PUSH);
testButton.addSelectionListener(new SelectionListener(){
public void widgetSelected(SelectionEvent e){
System.out.println("go to bed");
}
public void widgetDefaultSelected(SelectionEvent e){
}
});
i found this link someone else posted and it is a huge help.
http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/plat form-swt-
home/dev.html#snippets
thanks everyone,
jim
|
|
|
Powered by
FUDForum. Page generated in 0.07155 seconds