<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>http://www.jexp.ru/index.php?action=history&amp;feed=atom&amp;title=Java_by_API%2Forg.eclipse.swt.widgets%2FButton</id>
		<title>Java by API/org.eclipse.swt.widgets/Button - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://www.jexp.ru/index.php?action=history&amp;feed=atom&amp;title=Java_by_API%2Forg.eclipse.swt.widgets%2FButton"/>
		<link rel="alternate" type="text/html" href="http://www.jexp.ru/index.php?title=Java_by_API/org.eclipse.swt.widgets/Button&amp;action=history"/>
		<updated>2026-04-19T06:20:28Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://www.jexp.ru/index.php?title=Java_by_API/org.eclipse.swt.widgets/Button&amp;diff=372&amp;oldid=prev</id>
		<title> в 17:43, 31 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://www.jexp.ru/index.php?title=Java_by_API/org.eclipse.swt.widgets/Button&amp;diff=372&amp;oldid=prev"/>
				<updated>2010-05-31T17:43:48Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 17:43, 31 мая 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;text-align: center;&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
			</entry>

	<entry>
		<id>http://www.jexp.ru/index.php?title=Java_by_API/org.eclipse.swt.widgets/Button&amp;diff=373&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://www.jexp.ru/index.php?title=Java_by_API/org.eclipse.swt.widgets/Button&amp;diff=373&amp;oldid=prev"/>
				<updated>2010-05-31T14:16:24Z</updated>
		
		<summary type="html">&lt;p&gt;1 версия&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Button: addSelectionListener(SelectionListener sel) ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
import org.eclipse.swt.SWT;&lt;br /&gt;
import org.eclipse.swt.events.SelectionAdapter;&lt;br /&gt;
import org.eclipse.swt.events.SelectionEvent;&lt;br /&gt;
import org.eclipse.swt.widgets.Button;&lt;br /&gt;
import org.eclipse.swt.widgets.Display;&lt;br /&gt;
import org.eclipse.swt.widgets.List;&lt;br /&gt;
import org.eclipse.swt.widgets.Shell;&lt;br /&gt;
public class MainClass {&lt;br /&gt;
  public static void main(String[] a) {&lt;br /&gt;
    Display d = new Display();&lt;br /&gt;
    Shell s = new Shell(d);&lt;br /&gt;
    s.setSize(250, 250);&lt;br /&gt;
    s.setText(&amp;quot;A List Example&amp;quot;);&lt;br /&gt;
    final List l = new List(s, SWT.MULTI | SWT.BORDER);&lt;br /&gt;
    l.setBounds(50, 50, 75, 75);&lt;br /&gt;
    l.add(&amp;quot;Item One&amp;quot;);&lt;br /&gt;
    l.add(&amp;quot;Item Two&amp;quot;);&lt;br /&gt;
    l.add(&amp;quot;Item Three&amp;quot;);&lt;br /&gt;
    l.add(&amp;quot;Item Four&amp;quot;);&lt;br /&gt;
    l.add(&amp;quot;Item Five&amp;quot;);&lt;br /&gt;
    final Button b1 = new Button(s, SWT.PUSH | SWT.BORDER);&lt;br /&gt;
    b1.setBounds(150, 150, 50, 25);&lt;br /&gt;
    b1.setText(&amp;quot;Click Me&amp;quot;);&lt;br /&gt;
    b1.addSelectionListener(new SelectionAdapter() {&lt;br /&gt;
      public void widgetSelected(SelectionEvent e) {&lt;br /&gt;
        String selected[] = l.getSelection();&lt;br /&gt;
        for (int i = 0; i &amp;lt; selected.length; i++) {&lt;br /&gt;
          System.out.println(selected[i]);&lt;br /&gt;
        }&lt;br /&gt;
      }&lt;br /&gt;
    });&lt;br /&gt;
    s.open();&lt;br /&gt;
    while (!s.isDisposed()) {&lt;br /&gt;
      if (!d.readAndDispatch())&lt;br /&gt;
        d.sleep();&lt;br /&gt;
    }&lt;br /&gt;
    d.dispose();&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- end source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Button: setText(String text) ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
import org.eclipse.swt.SWT;&lt;br /&gt;
import org.eclipse.swt.events.SelectionAdapter;&lt;br /&gt;
import org.eclipse.swt.events.SelectionEvent;&lt;br /&gt;
import org.eclipse.swt.widgets.Button;&lt;br /&gt;
import org.eclipse.swt.widgets.Display;&lt;br /&gt;
import org.eclipse.swt.widgets.List;&lt;br /&gt;
import org.eclipse.swt.widgets.Shell;&lt;br /&gt;
public class MainClass {&lt;br /&gt;
  public static void main(String[] a) {&lt;br /&gt;
    Display d = new Display();&lt;br /&gt;
    Shell s = new Shell(d);&lt;br /&gt;
    s.setSize(250, 250);&lt;br /&gt;
    s.setText(&amp;quot;A List Example&amp;quot;);&lt;br /&gt;
    final List l = new List(s, SWT.MULTI | SWT.BORDER);&lt;br /&gt;
    l.setBounds(50, 50, 75, 75);&lt;br /&gt;
    l.add(&amp;quot;Item One&amp;quot;);&lt;br /&gt;
    l.add(&amp;quot;Item Two&amp;quot;);&lt;br /&gt;
    l.add(&amp;quot;Item Three&amp;quot;);&lt;br /&gt;
    l.add(&amp;quot;Item Four&amp;quot;);&lt;br /&gt;
    l.add(&amp;quot;Item Five&amp;quot;);&lt;br /&gt;
    final Button b1 = new Button(s, SWT.PUSH | SWT.BORDER);&lt;br /&gt;
    b1.setBounds(150, 150, 50, 25);&lt;br /&gt;
    b1.setText(&amp;quot;Click Me&amp;quot;);&lt;br /&gt;
    b1.addSelectionListener(new SelectionAdapter() {&lt;br /&gt;
      public void widgetSelected(SelectionEvent e) {&lt;br /&gt;
        String selected[] = l.getSelection();&lt;br /&gt;
        for (int i = 0; i &amp;lt; selected.length; i++) {&lt;br /&gt;
          System.out.println(selected[i]);&lt;br /&gt;
        }&lt;br /&gt;
      }&lt;br /&gt;
    });&lt;br /&gt;
    s.open();&lt;br /&gt;
    while (!s.isDisposed()) {&lt;br /&gt;
      if (!d.readAndDispatch())&lt;br /&gt;
        d.sleep();&lt;br /&gt;
    }&lt;br /&gt;
    d.dispose();&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- end source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== new Button(Composite parent, int style) (SWT.PUSH | SWT.BORDER) ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
import org.eclipse.swt.SWT;&lt;br /&gt;
import org.eclipse.swt.events.SelectionAdapter;&lt;br /&gt;
import org.eclipse.swt.events.SelectionEvent;&lt;br /&gt;
import org.eclipse.swt.graphics.Color;&lt;br /&gt;
import org.eclipse.swt.graphics.RGB;&lt;br /&gt;
import org.eclipse.swt.layout.FillLayout;&lt;br /&gt;
import org.eclipse.swt.widgets.Button;&lt;br /&gt;
import org.eclipse.swt.widgets.ColorDialog;&lt;br /&gt;
import org.eclipse.swt.widgets.Display;&lt;br /&gt;
import org.eclipse.swt.widgets.Shell;&lt;br /&gt;
import org.eclipse.swt.widgets.Text;&lt;br /&gt;
public class MainClass {&lt;br /&gt;
  public static void main(String[] a) {&lt;br /&gt;
    final Display d = new Display();&lt;br /&gt;
    final Shell s = new Shell(d);&lt;br /&gt;
    s.setSize(300, 300);&lt;br /&gt;
    s.setText(&amp;quot;A ColorDialog Example&amp;quot;);&lt;br /&gt;
    s.setLayout(new FillLayout(SWT.VERTICAL));&lt;br /&gt;
    final Text t = new Text(s, SWT.BORDER | SWT.MULTI);&lt;br /&gt;
    final Button b = new Button(s, SWT.PUSH | SWT.BORDER);&lt;br /&gt;
    b.setText(&amp;quot;Change Color&amp;quot;);&lt;br /&gt;
    b.addSelectionListener(new SelectionAdapter() {&lt;br /&gt;
      public void widgetSelected(SelectionEvent e) {&lt;br /&gt;
        ColorDialog cd = new ColorDialog(s);&lt;br /&gt;
        cd.setText(&amp;quot;ColorDialog Demo&amp;quot;);&lt;br /&gt;
        cd.setRGB(new RGB(255, 255, 255));&lt;br /&gt;
        RGB newColor = cd.open();&lt;br /&gt;
        if (newColor == null) {&lt;br /&gt;
          return;&lt;br /&gt;
        }&lt;br /&gt;
        t.setBackground(new Color(d, newColor));&lt;br /&gt;
      }&lt;br /&gt;
    });&lt;br /&gt;
    s.open();&lt;br /&gt;
    while (!s.isDisposed()) {&lt;br /&gt;
      if (!d.readAndDispatch())&lt;br /&gt;
        d.sleep();&lt;br /&gt;
    }&lt;br /&gt;
    d.dispose();&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- end source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== new Button(Group g, SWT.RADIO) ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
import org.eclipse.swt.SWT;&lt;br /&gt;
import org.eclipse.swt.layout.FillLayout;&lt;br /&gt;
import org.eclipse.swt.widgets.Button;&lt;br /&gt;
import org.eclipse.swt.widgets.ruposite;&lt;br /&gt;
import org.eclipse.swt.widgets.Display;&lt;br /&gt;
import org.eclipse.swt.widgets.Group;&lt;br /&gt;
import org.eclipse.swt.widgets.Shell;&lt;br /&gt;
public class MainClass {&lt;br /&gt;
  public static void main(String[] a) {&lt;br /&gt;
    Display d = new Display();&lt;br /&gt;
    Shell s = new Shell(d);&lt;br /&gt;
    s.setText(&amp;quot;A Shell Composite Example&amp;quot;);&lt;br /&gt;
    GroupExample ge = new GroupExample(s, SWT.SHADOW_ETCHED_IN);&lt;br /&gt;
    ge.setLocation(20, 20);&lt;br /&gt;
    s.open();&lt;br /&gt;
    while (!s.isDisposed()) {&lt;br /&gt;
      if (!d.readAndDispatch())&lt;br /&gt;
        d.sleep();&lt;br /&gt;
    }&lt;br /&gt;
    d.dispose();&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
class GroupExample extends Composite {&lt;br /&gt;
  final Button b1;&lt;br /&gt;
  final Button b2;&lt;br /&gt;
  final Button b3;&lt;br /&gt;
  public GroupExample(Composite c, int style) {&lt;br /&gt;
    super(c, SWT.NO_BACKGROUND);&lt;br /&gt;
    this.setSize(110, 75);&lt;br /&gt;
    this.setLayout(new FillLayout());&lt;br /&gt;
    final Group g = new Group(this, style);&lt;br /&gt;
    g.setSize(110, 75);&lt;br /&gt;
    g.setText(&amp;quot;Options Group&amp;quot;);&lt;br /&gt;
    b1 = new Button(g, SWT.RADIO);&lt;br /&gt;
    b1.setBounds(10, 20, 75, 15);&lt;br /&gt;
    b1.setText(&amp;quot;Option One&amp;quot;);&lt;br /&gt;
    b2 = new Button(g, SWT.RADIO);&lt;br /&gt;
    b2.setBounds(10, 35, 75, 15);&lt;br /&gt;
    b2.setText(&amp;quot;Option Two&amp;quot;);&lt;br /&gt;
    b3 = new Button(g, SWT.RADIO);&lt;br /&gt;
    b3.setBounds(10, 50, 80, 15);&lt;br /&gt;
    b3.setText(&amp;quot;Option Three&amp;quot;);&lt;br /&gt;
  }&lt;br /&gt;
  public String getSelected() {&lt;br /&gt;
    if (b1.getSelection())&lt;br /&gt;
      return &amp;quot;Option One&amp;quot;;&lt;br /&gt;
    if (b2.getSelection())&lt;br /&gt;
      return &amp;quot;Option Two&amp;quot;;&lt;br /&gt;
    if (b3.getSelection())&lt;br /&gt;
      return &amp;quot;Option Three&amp;quot;;&lt;br /&gt;
    return &amp;quot;None Selected&amp;quot;;&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- end source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== new Button(Shell shell, SWT.ARROW) ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
import org.eclipse.swt.SWT;&lt;br /&gt;
import org.eclipse.swt.layout.GridLayout;&lt;br /&gt;
import org.eclipse.swt.widgets.Button;&lt;br /&gt;
import org.eclipse.swt.widgets.Display;&lt;br /&gt;
import org.eclipse.swt.widgets.Shell;&lt;br /&gt;
public class MainClass {&lt;br /&gt;
  public static void main(String[] a) {&lt;br /&gt;
    Display display = new Display();&lt;br /&gt;
    Shell shell = new Shell(display);&lt;br /&gt;
    shell.setLayout(new GridLayout(3, true));&lt;br /&gt;
    &lt;br /&gt;
    // Create three push buttons&lt;br /&gt;
    new Button(shell, SWT.PUSH).setText(&amp;quot;Push 1&amp;quot;);&lt;br /&gt;
    new Button(shell, SWT.PUSH).setText(&amp;quot;Push 2&amp;quot;);&lt;br /&gt;
    new Button(shell, SWT.PUSH).setText(&amp;quot;Push 3&amp;quot;);&lt;br /&gt;
    &lt;br /&gt;
    // Create three checkboxes&lt;br /&gt;
    new Button(shell, SWT.CHECK).setText(&amp;quot;Checkbox 1&amp;quot;);&lt;br /&gt;
    new Button(shell, SWT.CHECK).setText(&amp;quot;Checkbox 2&amp;quot;);&lt;br /&gt;
    new Button(shell, SWT.CHECK).setText(&amp;quot;Checkbox 3&amp;quot;);&lt;br /&gt;
    &lt;br /&gt;
    // Create three toggle buttons&lt;br /&gt;
    new Button(shell, SWT.TOGGLE).setText(&amp;quot;Toggle 1&amp;quot;);&lt;br /&gt;
    new Button(shell, SWT.TOGGLE).setText(&amp;quot;Toggle 2&amp;quot;);&lt;br /&gt;
    new Button(shell, SWT.TOGGLE).setText(&amp;quot;Toggle 3&amp;quot;);&lt;br /&gt;
    &lt;br /&gt;
    // Create three radio buttons&lt;br /&gt;
    new Button(shell, SWT.RADIO).setText(&amp;quot;Radio 1&amp;quot;);&lt;br /&gt;
    new Button(shell, SWT.RADIO).setText(&amp;quot;Radio 2&amp;quot;);&lt;br /&gt;
    new Button(shell, SWT.RADIO).setText(&amp;quot;Radio 3&amp;quot;);&lt;br /&gt;
    &lt;br /&gt;
    // Create three flat buttons&lt;br /&gt;
    new Button(shell, SWT.FLAT).setText(&amp;quot;Flat 1&amp;quot;);&lt;br /&gt;
    new Button(shell, SWT.FLAT).setText(&amp;quot;Flat 2&amp;quot;);&lt;br /&gt;
    new Button(shell, SWT.FLAT).setText(&amp;quot;Flat 3&amp;quot;);&lt;br /&gt;
    &lt;br /&gt;
    // Create three arrow buttons&lt;br /&gt;
    new Button(shell, SWT.ARROW);&lt;br /&gt;
    new Button(shell, SWT.ARROW | SWT.LEFT);&lt;br /&gt;
    new Button(shell, SWT.ARROW | SWT.DOWN);&lt;br /&gt;
    shell.pack();&lt;br /&gt;
    shell.open();&lt;br /&gt;
    while (!shell.isDisposed()) {&lt;br /&gt;
      if (!display.readAndDispatch()) {&lt;br /&gt;
        display.sleep();&lt;br /&gt;
      }&lt;br /&gt;
    }&lt;br /&gt;
    display.dispose();&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- end source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== new Button(Shell shell, SWT.CHECK) ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
import org.eclipse.swt.SWT;&lt;br /&gt;
import org.eclipse.swt.layout.GridLayout;&lt;br /&gt;
import org.eclipse.swt.widgets.Button;&lt;br /&gt;
import org.eclipse.swt.widgets.Display;&lt;br /&gt;
import org.eclipse.swt.widgets.Shell;&lt;br /&gt;
public class MainClass {&lt;br /&gt;
  public static void main(String[] a) {&lt;br /&gt;
    Display display = new Display();&lt;br /&gt;
    Shell shell = new Shell(display);&lt;br /&gt;
    shell.setLayout(new GridLayout(3, true));&lt;br /&gt;
    &lt;br /&gt;
    // Create three push buttons&lt;br /&gt;
    new Button(shell, SWT.PUSH).setText(&amp;quot;Push 1&amp;quot;);&lt;br /&gt;
    new Button(shell, SWT.PUSH).setText(&amp;quot;Push 2&amp;quot;);&lt;br /&gt;
    new Button(shell, SWT.PUSH).setText(&amp;quot;Push 3&amp;quot;);&lt;br /&gt;
    &lt;br /&gt;
    // Create three checkboxes&lt;br /&gt;
    new Button(shell, SWT.CHECK).setText(&amp;quot;Checkbox 1&amp;quot;);&lt;br /&gt;
    new Button(shell, SWT.CHECK).setText(&amp;quot;Checkbox 2&amp;quot;);&lt;br /&gt;
    new Button(shell, SWT.CHECK).setText(&amp;quot;Checkbox 3&amp;quot;);&lt;br /&gt;
    &lt;br /&gt;
    // Create three toggle buttons&lt;br /&gt;
    new Button(shell, SWT.TOGGLE).setText(&amp;quot;Toggle 1&amp;quot;);&lt;br /&gt;
    new Button(shell, SWT.TOGGLE).setText(&amp;quot;Toggle 2&amp;quot;);&lt;br /&gt;
    new Button(shell, SWT.TOGGLE).setText(&amp;quot;Toggle 3&amp;quot;);&lt;br /&gt;
    &lt;br /&gt;
    // Create three radio buttons&lt;br /&gt;
    new Button(shell, SWT.RADIO).setText(&amp;quot;Radio 1&amp;quot;);&lt;br /&gt;
    new Button(shell, SWT.RADIO).setText(&amp;quot;Radio 2&amp;quot;);&lt;br /&gt;
    new Button(shell, SWT.RADIO).setText(&amp;quot;Radio 3&amp;quot;);&lt;br /&gt;
    &lt;br /&gt;
    // Create three flat buttons&lt;br /&gt;
    new Button(shell, SWT.FLAT).setText(&amp;quot;Flat 1&amp;quot;);&lt;br /&gt;
    new Button(shell, SWT.FLAT).setText(&amp;quot;Flat 2&amp;quot;);&lt;br /&gt;
    new Button(shell, SWT.FLAT).setText(&amp;quot;Flat 3&amp;quot;);&lt;br /&gt;
    &lt;br /&gt;
    // Create three arrow buttons&lt;br /&gt;
    new Button(shell, SWT.ARROW);&lt;br /&gt;
    new Button(shell, SWT.ARROW | SWT.LEFT);&lt;br /&gt;
    new Button(shell, SWT.ARROW | SWT.DOWN);&lt;br /&gt;
    shell.pack();&lt;br /&gt;
    shell.open();&lt;br /&gt;
    while (!shell.isDisposed()) {&lt;br /&gt;
      if (!display.readAndDispatch()) {&lt;br /&gt;
        display.sleep();&lt;br /&gt;
      }&lt;br /&gt;
    }&lt;br /&gt;
    display.dispose();&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- end source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== new Button(Shell shell, SWT.FLAT) ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
import org.eclipse.swt.SWT;&lt;br /&gt;
import org.eclipse.swt.layout.GridLayout;&lt;br /&gt;
import org.eclipse.swt.widgets.Button;&lt;br /&gt;
import org.eclipse.swt.widgets.Display;&lt;br /&gt;
import org.eclipse.swt.widgets.Shell;&lt;br /&gt;
public class MainClass {&lt;br /&gt;
  public static void main(String[] a) {&lt;br /&gt;
    Display display = new Display();&lt;br /&gt;
    Shell shell = new Shell(display);&lt;br /&gt;
    shell.setLayout(new GridLayout(3, true));&lt;br /&gt;
    &lt;br /&gt;
    // Create three push buttons&lt;br /&gt;
    new Button(shell, SWT.PUSH).setText(&amp;quot;Push 1&amp;quot;);&lt;br /&gt;
    new Button(shell, SWT.PUSH).setText(&amp;quot;Push 2&amp;quot;);&lt;br /&gt;
    new Button(shell, SWT.PUSH).setText(&amp;quot;Push 3&amp;quot;);&lt;br /&gt;
    &lt;br /&gt;
    // Create three checkboxes&lt;br /&gt;
    new Button(shell, SWT.CHECK).setText(&amp;quot;Checkbox 1&amp;quot;);&lt;br /&gt;
    new Button(shell, SWT.CHECK).setText(&amp;quot;Checkbox 2&amp;quot;);&lt;br /&gt;
    new Button(shell, SWT.CHECK).setText(&amp;quot;Checkbox 3&amp;quot;);&lt;br /&gt;
    &lt;br /&gt;
    // Create three toggle buttons&lt;br /&gt;
    new Button(shell, SWT.TOGGLE).setText(&amp;quot;Toggle 1&amp;quot;);&lt;br /&gt;
    new Button(shell, SWT.TOGGLE).setText(&amp;quot;Toggle 2&amp;quot;);&lt;br /&gt;
    new Button(shell, SWT.TOGGLE).setText(&amp;quot;Toggle 3&amp;quot;);&lt;br /&gt;
    &lt;br /&gt;
    // Create three radio buttons&lt;br /&gt;
    new Button(shell, SWT.RADIO).setText(&amp;quot;Radio 1&amp;quot;);&lt;br /&gt;
    new Button(shell, SWT.RADIO).setText(&amp;quot;Radio 2&amp;quot;);&lt;br /&gt;
    new Button(shell, SWT.RADIO).setText(&amp;quot;Radio 3&amp;quot;);&lt;br /&gt;
    &lt;br /&gt;
    // Create three flat buttons&lt;br /&gt;
    new Button(shell, SWT.FLAT).setText(&amp;quot;Flat 1&amp;quot;);&lt;br /&gt;
    new Button(shell, SWT.FLAT).setText(&amp;quot;Flat 2&amp;quot;);&lt;br /&gt;
    new Button(shell, SWT.FLAT).setText(&amp;quot;Flat 3&amp;quot;);&lt;br /&gt;
    &lt;br /&gt;
    // Create three arrow buttons&lt;br /&gt;
    new Button(shell, SWT.ARROW);&lt;br /&gt;
    new Button(shell, SWT.ARROW | SWT.LEFT);&lt;br /&gt;
    new Button(shell, SWT.ARROW | SWT.DOWN);&lt;br /&gt;
    shell.pack();&lt;br /&gt;
    shell.open();&lt;br /&gt;
    while (!shell.isDisposed()) {&lt;br /&gt;
      if (!display.readAndDispatch()) {&lt;br /&gt;
        display.sleep();&lt;br /&gt;
      }&lt;br /&gt;
    }&lt;br /&gt;
    display.dispose();&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- end source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== new Button(Shell shell, SWT.PUSH) ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
import org.eclipse.swt.SWT;&lt;br /&gt;
import org.eclipse.swt.layout.GridLayout;&lt;br /&gt;
import org.eclipse.swt.widgets.Button;&lt;br /&gt;
import org.eclipse.swt.widgets.Display;&lt;br /&gt;
import org.eclipse.swt.widgets.Shell;&lt;br /&gt;
public class MainClass {&lt;br /&gt;
  public static void main(String[] a) {&lt;br /&gt;
    Display display = new Display();&lt;br /&gt;
    Shell shell = new Shell(display);&lt;br /&gt;
    shell.setLayout(new GridLayout(3, true));&lt;br /&gt;
    &lt;br /&gt;
    // Create three push buttons&lt;br /&gt;
    new Button(shell, SWT.PUSH).setText(&amp;quot;Push 1&amp;quot;);&lt;br /&gt;
    new Button(shell, SWT.PUSH).setText(&amp;quot;Push 2&amp;quot;);&lt;br /&gt;
    new Button(shell, SWT.PUSH).setText(&amp;quot;Push 3&amp;quot;);&lt;br /&gt;
    &lt;br /&gt;
    // Create three checkboxes&lt;br /&gt;
    new Button(shell, SWT.CHECK).setText(&amp;quot;Checkbox 1&amp;quot;);&lt;br /&gt;
    new Button(shell, SWT.CHECK).setText(&amp;quot;Checkbox 2&amp;quot;);&lt;br /&gt;
    new Button(shell, SWT.CHECK).setText(&amp;quot;Checkbox 3&amp;quot;);&lt;br /&gt;
    &lt;br /&gt;
    // Create three toggle buttons&lt;br /&gt;
    new Button(shell, SWT.TOGGLE).setText(&amp;quot;Toggle 1&amp;quot;);&lt;br /&gt;
    new Button(shell, SWT.TOGGLE).setText(&amp;quot;Toggle 2&amp;quot;);&lt;br /&gt;
    new Button(shell, SWT.TOGGLE).setText(&amp;quot;Toggle 3&amp;quot;);&lt;br /&gt;
    &lt;br /&gt;
    // Create three radio buttons&lt;br /&gt;
    new Button(shell, SWT.RADIO).setText(&amp;quot;Radio 1&amp;quot;);&lt;br /&gt;
    new Button(shell, SWT.RADIO).setText(&amp;quot;Radio 2&amp;quot;);&lt;br /&gt;
    new Button(shell, SWT.RADIO).setText(&amp;quot;Radio 3&amp;quot;);&lt;br /&gt;
    &lt;br /&gt;
    // Create three flat buttons&lt;br /&gt;
    new Button(shell, SWT.FLAT).setText(&amp;quot;Flat 1&amp;quot;);&lt;br /&gt;
    new Button(shell, SWT.FLAT).setText(&amp;quot;Flat 2&amp;quot;);&lt;br /&gt;
    new Button(shell, SWT.FLAT).setText(&amp;quot;Flat 3&amp;quot;);&lt;br /&gt;
    &lt;br /&gt;
    // Create three arrow buttons&lt;br /&gt;
    new Button(shell, SWT.ARROW);&lt;br /&gt;
    new Button(shell, SWT.ARROW | SWT.LEFT);&lt;br /&gt;
    new Button(shell, SWT.ARROW | SWT.DOWN);&lt;br /&gt;
    shell.pack();&lt;br /&gt;
    shell.open();&lt;br /&gt;
    while (!shell.isDisposed()) {&lt;br /&gt;
      if (!display.readAndDispatch()) {&lt;br /&gt;
        display.sleep();&lt;br /&gt;
      }&lt;br /&gt;
    }&lt;br /&gt;
    display.dispose();&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- end source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== new Button(Shell shell, SWT.RADIO) ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
import org.eclipse.swt.SWT;&lt;br /&gt;
import org.eclipse.swt.layout.GridLayout;&lt;br /&gt;
import org.eclipse.swt.widgets.Button;&lt;br /&gt;
import org.eclipse.swt.widgets.Display;&lt;br /&gt;
import org.eclipse.swt.widgets.Shell;&lt;br /&gt;
public class MainClass {&lt;br /&gt;
  public static void main(String[] a) {&lt;br /&gt;
    Display display = new Display();&lt;br /&gt;
    Shell shell = new Shell(display);&lt;br /&gt;
    shell.setLayout(new GridLayout(3, true));&lt;br /&gt;
    &lt;br /&gt;
    // Create three push buttons&lt;br /&gt;
    new Button(shell, SWT.PUSH).setText(&amp;quot;Push 1&amp;quot;);&lt;br /&gt;
    new Button(shell, SWT.PUSH).setText(&amp;quot;Push 2&amp;quot;);&lt;br /&gt;
    new Button(shell, SWT.PUSH).setText(&amp;quot;Push 3&amp;quot;);&lt;br /&gt;
    &lt;br /&gt;
    // Create three checkboxes&lt;br /&gt;
    new Button(shell, SWT.CHECK).setText(&amp;quot;Checkbox 1&amp;quot;);&lt;br /&gt;
    new Button(shell, SWT.CHECK).setText(&amp;quot;Checkbox 2&amp;quot;);&lt;br /&gt;
    new Button(shell, SWT.CHECK).setText(&amp;quot;Checkbox 3&amp;quot;);&lt;br /&gt;
    &lt;br /&gt;
    // Create three toggle buttons&lt;br /&gt;
    new Button(shell, SWT.TOGGLE).setText(&amp;quot;Toggle 1&amp;quot;);&lt;br /&gt;
    new Button(shell, SWT.TOGGLE).setText(&amp;quot;Toggle 2&amp;quot;);&lt;br /&gt;
    new Button(shell, SWT.TOGGLE).setText(&amp;quot;Toggle 3&amp;quot;);&lt;br /&gt;
    &lt;br /&gt;
    // Create three radio buttons&lt;br /&gt;
    new Button(shell, SWT.RADIO).setText(&amp;quot;Radio 1&amp;quot;);&lt;br /&gt;
    new Button(shell, SWT.RADIO).setText(&amp;quot;Radio 2&amp;quot;);&lt;br /&gt;
    new Button(shell, SWT.RADIO).setText(&amp;quot;Radio 3&amp;quot;);&lt;br /&gt;
    &lt;br /&gt;
    // Create three flat buttons&lt;br /&gt;
    new Button(shell, SWT.FLAT).setText(&amp;quot;Flat 1&amp;quot;);&lt;br /&gt;
    new Button(shell, SWT.FLAT).setText(&amp;quot;Flat 2&amp;quot;);&lt;br /&gt;
    new Button(shell, SWT.FLAT).setText(&amp;quot;Flat 3&amp;quot;);&lt;br /&gt;
    &lt;br /&gt;
    // Create three arrow buttons&lt;br /&gt;
    new Button(shell, SWT.ARROW);&lt;br /&gt;
    new Button(shell, SWT.ARROW | SWT.LEFT);&lt;br /&gt;
    new Button(shell, SWT.ARROW | SWT.DOWN);&lt;br /&gt;
    shell.pack();&lt;br /&gt;
    shell.open();&lt;br /&gt;
    while (!shell.isDisposed()) {&lt;br /&gt;
      if (!display.readAndDispatch()) {&lt;br /&gt;
        display.sleep();&lt;br /&gt;
      }&lt;br /&gt;
    }&lt;br /&gt;
    display.dispose();&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- end source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== new Button(Shell shell, SWT.TOGGLE) ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
import org.eclipse.swt.SWT;&lt;br /&gt;
import org.eclipse.swt.layout.GridLayout;&lt;br /&gt;
import org.eclipse.swt.widgets.Button;&lt;br /&gt;
import org.eclipse.swt.widgets.Display;&lt;br /&gt;
import org.eclipse.swt.widgets.Shell;&lt;br /&gt;
public class MainClass {&lt;br /&gt;
  public static void main(String[] a) {&lt;br /&gt;
    Display display = new Display();&lt;br /&gt;
    Shell shell = new Shell(display);&lt;br /&gt;
    shell.setLayout(new GridLayout(3, true));&lt;br /&gt;
    &lt;br /&gt;
    // Create three push buttons&lt;br /&gt;
    new Button(shell, SWT.PUSH).setText(&amp;quot;Push 1&amp;quot;);&lt;br /&gt;
    new Button(shell, SWT.PUSH).setText(&amp;quot;Push 2&amp;quot;);&lt;br /&gt;
    new Button(shell, SWT.PUSH).setText(&amp;quot;Push 3&amp;quot;);&lt;br /&gt;
    &lt;br /&gt;
    // Create three checkboxes&lt;br /&gt;
    new Button(shell, SWT.CHECK).setText(&amp;quot;Checkbox 1&amp;quot;);&lt;br /&gt;
    new Button(shell, SWT.CHECK).setText(&amp;quot;Checkbox 2&amp;quot;);&lt;br /&gt;
    new Button(shell, SWT.CHECK).setText(&amp;quot;Checkbox 3&amp;quot;);&lt;br /&gt;
    &lt;br /&gt;
    // Create three toggle buttons&lt;br /&gt;
    new Button(shell, SWT.TOGGLE).setText(&amp;quot;Toggle 1&amp;quot;);&lt;br /&gt;
    new Button(shell, SWT.TOGGLE).setText(&amp;quot;Toggle 2&amp;quot;);&lt;br /&gt;
    new Button(shell, SWT.TOGGLE).setText(&amp;quot;Toggle 3&amp;quot;);&lt;br /&gt;
    &lt;br /&gt;
    // Create three radio buttons&lt;br /&gt;
    new Button(shell, SWT.RADIO).setText(&amp;quot;Radio 1&amp;quot;);&lt;br /&gt;
    new Button(shell, SWT.RADIO).setText(&amp;quot;Radio 2&amp;quot;);&lt;br /&gt;
    new Button(shell, SWT.RADIO).setText(&amp;quot;Radio 3&amp;quot;);&lt;br /&gt;
    &lt;br /&gt;
    // Create three flat buttons&lt;br /&gt;
    new Button(shell, SWT.FLAT).setText(&amp;quot;Flat 1&amp;quot;);&lt;br /&gt;
    new Button(shell, SWT.FLAT).setText(&amp;quot;Flat 2&amp;quot;);&lt;br /&gt;
    new Button(shell, SWT.FLAT).setText(&amp;quot;Flat 3&amp;quot;);&lt;br /&gt;
    &lt;br /&gt;
    // Create three arrow buttons&lt;br /&gt;
    new Button(shell, SWT.ARROW);&lt;br /&gt;
    new Button(shell, SWT.ARROW | SWT.LEFT);&lt;br /&gt;
    new Button(shell, SWT.ARROW | SWT.DOWN);&lt;br /&gt;
    shell.pack();&lt;br /&gt;
    shell.open();&lt;br /&gt;
    while (!shell.isDisposed()) {&lt;br /&gt;
      if (!display.readAndDispatch()) {&lt;br /&gt;
        display.sleep();&lt;br /&gt;
      }&lt;br /&gt;
    }&lt;br /&gt;
    display.dispose();&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- end source code --&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>