Changeset 154 for trunk/tests/SWT/java


Ignore:
Timestamp:
Jun 16, 2009, 11:33:49 PM (16 years ago)
Author:
lpino
Message:
  • Complete Scale event handling SWT.Selection
File:
1 edited

Legend:

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

    r153 r154  
    3131
    3232        void initComponents() {
    33             Scale scaleH = new Scale(shell, SWT.NULL);
     33            final Scale scaleH = new Scale(shell, SWT.NULL);
    3434            Scale scaleV = new Scale(shell, SWT.VERTICAL);
    3535//
     
    4343            scaleH.addListener(SWT.Selection, new Listener() {
    4444              public void handleEvent(Event event) {
    45                 String string = "SWT.NONE";
    46                 System.out.println("Scroll detail -> " + string);
     45                System.out.println("Scroll detail -> " + scaleH.getSelection());
    4746              }
    4847            });
Note: See TracChangeset for help on using the changeset viewer.