26 Sep 2009

SWT

Posted by gavin

Checkboxes

To create a checkbox in SWT, you actually create a Button:

Button checkbox = new Button(parentComponent, SWT.CHECK);

To get the value (checked or not), the boolean method:

checkbox.getSelection();
VN:F [1.9.6_1107]
Rating: 0.0/10 (0 votes cast)
  • Print
  • Add to favorites
  • Facebook
  • StumbleUpon
  • del.icio.us
  • FriendFeed
  • Twitter
  • Digg

Tags: , ,

Leave a Reply

Message:

  • Browse

    or
  • Latest Content

  • Gallery

    200910_Wales0003 IMG_7017 2010_0102XmasAndNewYear0113 2010_0106Snowman0006
  • Tags

  • RSS<img src="http://www.gavinwillingham.com/wp-content/plugins/twitter-widget-pro/twitter_logo_s.png" height="21" width="92" alt="twitter logo" />

  • Comments