• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 6. SWT Buttons > Creating Arrow Buttons

6.10. Creating Arrow Buttons

The final style attribute that you can apply to the Button class is SWT.ARROW. SWT.ARROW buttons, as the name implies, display an arrow graphic indicating the direction in which something that will occur when the button is pressed. SWT.ARROW style buttons also need to specify an additional style that determines in which direction the arrow graphic points. Possibilities are SWT.UP, SWT.DOWN, SWT.LEFT, and SWT.RIGHT.

A common use for arrow buttons is to enable the user to increment a value in an associated text box.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint