Changeset 153 for trunk/tests/SWT/java


Ignore:
Timestamp:
Jun 16, 2009, 4:18:08 AM (16 years ago)
Author:
lpino
Message:
  • Begin to handle events
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/SWT/java/SWT009_09.java

    r151 r153  
    3838//
    3939            System.out.println("Increment: " + scaleH.getIncrement());
    40             scaleH.setSelection(11);
     40            scaleH.setSelection(10);
    4141            System.out.println("Get Selection: " + scaleH.getSelection());
     42           
     43            scaleH.addListener(SWT.Selection, new Listener() {
     44              public void handleEvent(Event event) {
     45                String string = "SWT.NONE";
     46                System.out.println("Scroll detail -> " + string);
     47              }
     48            });
    4249
    4350            shell.pack();
Note: See TracChangeset for help on using the changeset viewer.