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.8.0_1031]
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

    2009_1220_XmasCards0006 IMG_6737 2010_0102XmasAndNewYear0098 DSCF2530 (2)
  • Tags

  • RSStwitter logo

  • Comments