<?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%2FLabel</id>
		<title>Java by API/org.eclipse.swt.widgets/Label - История изменений</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%2FLabel"/>
		<link rel="alternate" type="text/html" href="http://www.jexp.ru/index.php?title=Java_by_API/org.eclipse.swt.widgets/Label&amp;action=history"/>
		<updated>2026-04-19T05:10:29Z</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/Label&amp;diff=364&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/Label&amp;diff=364&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/Label&amp;diff=365&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/Label&amp;diff=365&amp;oldid=prev"/>
				<updated>2010-05-31T14:16:21Z</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;== Label: setBounds(Rectangle rect) ==&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.widgets.Display;&lt;br /&gt;
import org.eclipse.swt.widgets.Label;&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;
    Label label = new Label(shell, SWT.CENTER);&lt;br /&gt;
    label.setText(&amp;quot;Hello, World&amp;quot;);&lt;br /&gt;
    label.setBounds(shell.getClientArea());&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;
== Label: setFont(Font f) ==&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.Font;&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.FontDialog;&lt;br /&gt;
import org.eclipse.swt.widgets.Label;&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;
    // Create the main window&lt;br /&gt;
    final Shell shell = new Shell(display);&lt;br /&gt;
    shell.setLayout(new GridLayout(2, false));&lt;br /&gt;
    final Label fontLabel = new Label(shell, SWT.NONE);&lt;br /&gt;
    fontLabel.setText(&amp;quot;The selected font&amp;quot;);&lt;br /&gt;
    Button button = new Button(shell, SWT.PUSH);&lt;br /&gt;
    button.setText(&amp;quot;Font...&amp;quot;);&lt;br /&gt;
    button.addSelectionListener(new SelectionAdapter() {&lt;br /&gt;
      public void widgetSelected(SelectionEvent event) {&lt;br /&gt;
        // Create the color-change dialog&lt;br /&gt;
        FontDialog dlg = new FontDialog(shell);&lt;br /&gt;
        Font font = null;&lt;br /&gt;
        Color color = null;&lt;br /&gt;
        if (font != null)&lt;br /&gt;
          dlg.setFontList(fontLabel.getFont().getFontData());&lt;br /&gt;
        if (color != null)&lt;br /&gt;
          dlg.setRGB(color.getRGB());&lt;br /&gt;
        if (dlg.open() != null) {&lt;br /&gt;
          if (font != null)&lt;br /&gt;
            font.dispose();&lt;br /&gt;
          if (color != null)&lt;br /&gt;
            color.dispose();&lt;br /&gt;
          font = new Font(shell.getDisplay(), dlg.getFontList());&lt;br /&gt;
          fontLabel.setFont(font);&lt;br /&gt;
          color = new Color(shell.getDisplay(), dlg.getRGB());&lt;br /&gt;
          fontLabel.setForeground(color);&lt;br /&gt;
          shell.pack();&lt;br /&gt;
        }&lt;br /&gt;
      }&lt;br /&gt;
    });&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;
== Label: setForeground(Color c) ==&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.Font;&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.FontDialog;&lt;br /&gt;
import org.eclipse.swt.widgets.Label;&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;
    // Create the main window&lt;br /&gt;
    final Shell shell = new Shell(display);&lt;br /&gt;
    shell.setLayout(new GridLayout(2, false));&lt;br /&gt;
    final Label fontLabel = new Label(shell, SWT.NONE);&lt;br /&gt;
    fontLabel.setText(&amp;quot;The selected font&amp;quot;);&lt;br /&gt;
    Button button = new Button(shell, SWT.PUSH);&lt;br /&gt;
    button.setText(&amp;quot;Font...&amp;quot;);&lt;br /&gt;
    button.addSelectionListener(new SelectionAdapter() {&lt;br /&gt;
      public void widgetSelected(SelectionEvent event) {&lt;br /&gt;
        // Create the color-change dialog&lt;br /&gt;
        FontDialog dlg = new FontDialog(shell);&lt;br /&gt;
        Font font = null;&lt;br /&gt;
        Color color = null;&lt;br /&gt;
        if (font != null)&lt;br /&gt;
          dlg.setFontList(fontLabel.getFont().getFontData());&lt;br /&gt;
        if (color != null)&lt;br /&gt;
          dlg.setRGB(color.getRGB());&lt;br /&gt;
        if (dlg.open() != null) {&lt;br /&gt;
          if (font != null)&lt;br /&gt;
            font.dispose();&lt;br /&gt;
          if (color != null)&lt;br /&gt;
            color.dispose();&lt;br /&gt;
          font = new Font(shell.getDisplay(), dlg.getFontList());&lt;br /&gt;
          fontLabel.setFont(font);&lt;br /&gt;
          color = new Color(shell.getDisplay(), dlg.getRGB());&lt;br /&gt;
          fontLabel.setForeground(color);&lt;br /&gt;
          shell.pack();&lt;br /&gt;
        }&lt;br /&gt;
      }&lt;br /&gt;
    });&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;
== Label: setImage(Image img) ==&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.graphics.Image;&lt;br /&gt;
import org.eclipse.swt.layout.GridData;&lt;br /&gt;
import org.eclipse.swt.layout.GridLayout;&lt;br /&gt;
import org.eclipse.swt.widgets.Display;&lt;br /&gt;
import org.eclipse.swt.widgets.Label;&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();&lt;br /&gt;
    shell.setLayout(new GridLayout(1, false));&lt;br /&gt;
    // Create a label&lt;br /&gt;
    new Label(shell, SWT.NONE).setText(&amp;quot;This is a plain label.&amp;quot;);&lt;br /&gt;
    // Create a vertical separator&lt;br /&gt;
    new Label(shell, SWT.SEPARATOR);&lt;br /&gt;
    // Create a label with a border&lt;br /&gt;
    new Label(shell, SWT.BORDER).setText(&amp;quot;This is a label with a border.&amp;quot;);&lt;br /&gt;
    // Create a horizontal separator&lt;br /&gt;
    Label separator = new Label(shell, SWT.HORIZONTAL | SWT.SEPARATOR);&lt;br /&gt;
    separator.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));&lt;br /&gt;
    // Create a label with an image&lt;br /&gt;
//    Image image = new Image(display, &amp;quot;interspatial.gif&amp;quot;);&lt;br /&gt;
//    Label imageLabel = new Label(shell, SWT.NONE);&lt;br /&gt;
//    imageLabel.setImage(image);&lt;br /&gt;
    &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;
== Label: setLayoutData(Object layoutData) ==&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.FormAttachment;&lt;br /&gt;
import org.eclipse.swt.layout.FormData;&lt;br /&gt;
import org.eclipse.swt.layout.FormLayout;&lt;br /&gt;
import org.eclipse.swt.widgets.Display;&lt;br /&gt;
import org.eclipse.swt.widgets.Label;&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;
    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 FormLayout Example&amp;quot;);&lt;br /&gt;
    s.setLayout(new FormLayout());&lt;br /&gt;
    &lt;br /&gt;
    final Label l1 = new Label(s, SWT.RIGHT);&lt;br /&gt;
    l1.setText(&amp;quot;First Name&amp;quot;);&lt;br /&gt;
    FormData fd = new FormData();&lt;br /&gt;
    fd.top = new FormAttachment(10, 10);&lt;br /&gt;
    fd.left = new FormAttachment(0, 10);&lt;br /&gt;
    fd.bottom = new FormAttachment(30,0);&lt;br /&gt;
    fd.right = new FormAttachment(40,0);&lt;br /&gt;
    l1.setLayoutData(fd);&lt;br /&gt;
    &lt;br /&gt;
    final Label l2 = new Label(s, SWT.RIGHT);&lt;br /&gt;
    l2.setText(&amp;quot;Last Name&amp;quot;);&lt;br /&gt;
    fd = new FormData();&lt;br /&gt;
    fd.top = new FormAttachment(l1, 5);&lt;br /&gt;
    fd.left = new FormAttachment(0, 10);&lt;br /&gt;
    fd.bottom = new FormAttachment(40,0);&lt;br /&gt;
    fd.right = new FormAttachment(40,0);&lt;br /&gt;
    l2.setLayoutData(fd);&lt;br /&gt;
    &lt;br /&gt;
    final Text t1 = new Text(s, SWT.BORDER | SWT.SINGLE);&lt;br /&gt;
    fd = new FormData();&lt;br /&gt;
    fd.top = new FormAttachment(l1, 0, SWT.TOP);&lt;br /&gt;
    fd.left = new FormAttachment(l1, 10);&lt;br /&gt;
    t1.setLayoutData(fd);&lt;br /&gt;
    &lt;br /&gt;
    final Text t2 = new Text(s, SWT.BORDER | SWT.SINGLE);&lt;br /&gt;
    fd = new FormData();&lt;br /&gt;
    fd.top = new FormAttachment(l2, 0, SWT.TOP);&lt;br /&gt;
    fd.left = new FormAttachment(l2, 10);&lt;br /&gt;
    t2.setLayoutData(fd);&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;
== Label: 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.graphics.Color;&lt;br /&gt;
import org.eclipse.swt.graphics.Font;&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.FontDialog;&lt;br /&gt;
import org.eclipse.swt.widgets.Label;&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;
    // Create the main window&lt;br /&gt;
    final Shell shell = new Shell(display);&lt;br /&gt;
    shell.setLayout(new GridLayout(2, false));&lt;br /&gt;
    final Label fontLabel = new Label(shell, SWT.NONE);&lt;br /&gt;
    fontLabel.setText(&amp;quot;The selected font&amp;quot;);&lt;br /&gt;
    Button button = new Button(shell, SWT.PUSH);&lt;br /&gt;
    button.setText(&amp;quot;Font...&amp;quot;);&lt;br /&gt;
    button.addSelectionListener(new SelectionAdapter() {&lt;br /&gt;
      public void widgetSelected(SelectionEvent event) {&lt;br /&gt;
        // Create the color-change dialog&lt;br /&gt;
        FontDialog dlg = new FontDialog(shell);&lt;br /&gt;
        Font font = null;&lt;br /&gt;
        Color color = null;&lt;br /&gt;
        if (font != null)&lt;br /&gt;
          dlg.setFontList(fontLabel.getFont().getFontData());&lt;br /&gt;
        if (color != null)&lt;br /&gt;
          dlg.setRGB(color.getRGB());&lt;br /&gt;
        if (dlg.open() != null) {&lt;br /&gt;
          if (font != null)&lt;br /&gt;
            font.dispose();&lt;br /&gt;
          if (color != null)&lt;br /&gt;
            color.dispose();&lt;br /&gt;
          font = new Font(shell.getDisplay(), dlg.getFontList());&lt;br /&gt;
          fontLabel.setFont(font);&lt;br /&gt;
          color = new Color(shell.getDisplay(), dlg.getRGB());&lt;br /&gt;
          fontLabel.setForeground(color);&lt;br /&gt;
          shell.pack();&lt;br /&gt;
        }&lt;br /&gt;
      }&lt;br /&gt;
    });&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 Label(Shell shell, 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.graphics.Image;&lt;br /&gt;
import org.eclipse.swt.layout.GridData;&lt;br /&gt;
import org.eclipse.swt.layout.GridLayout;&lt;br /&gt;
import org.eclipse.swt.widgets.Display;&lt;br /&gt;
import org.eclipse.swt.widgets.Label;&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();&lt;br /&gt;
    shell.setLayout(new GridLayout(1, false));&lt;br /&gt;
    // Create a label&lt;br /&gt;
    new Label(shell, SWT.NONE).setText(&amp;quot;This is a plain label.&amp;quot;);&lt;br /&gt;
    // Create a vertical separator&lt;br /&gt;
    new Label(shell, SWT.SEPARATOR);&lt;br /&gt;
    // Create a label with a border&lt;br /&gt;
    new Label(shell, SWT.BORDER).setText(&amp;quot;This is a label with a border.&amp;quot;);&lt;br /&gt;
    // Create a horizontal separator&lt;br /&gt;
    Label separator = new Label(shell, SWT.HORIZONTAL | SWT.SEPARATOR);&lt;br /&gt;
    separator.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));&lt;br /&gt;
    // Create a label with an image&lt;br /&gt;
//    Image image = new Image(display, &amp;quot;interspatial.gif&amp;quot;);&lt;br /&gt;
//    Label imageLabel = new Label(shell, SWT.NONE);&lt;br /&gt;
//    imageLabel.setImage(image);&lt;br /&gt;
    &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 Label(Shell shell, SWT.NONE) ==&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.graphics.Image;&lt;br /&gt;
import org.eclipse.swt.layout.GridData;&lt;br /&gt;
import org.eclipse.swt.layout.GridLayout;&lt;br /&gt;
import org.eclipse.swt.widgets.Display;&lt;br /&gt;
import org.eclipse.swt.widgets.Label;&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();&lt;br /&gt;
    shell.setLayout(new GridLayout(1, false));&lt;br /&gt;
    // Create a label&lt;br /&gt;
    new Label(shell, SWT.NONE).setText(&amp;quot;This is a plain label.&amp;quot;);&lt;br /&gt;
    // Create a vertical separator&lt;br /&gt;
    new Label(shell, SWT.SEPARATOR);&lt;br /&gt;
    // Create a label with a border&lt;br /&gt;
    new Label(shell, SWT.BORDER).setText(&amp;quot;This is a label with a border.&amp;quot;);&lt;br /&gt;
    // Create a horizontal separator&lt;br /&gt;
    Label separator = new Label(shell, SWT.HORIZONTAL | SWT.SEPARATOR);&lt;br /&gt;
    separator.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));&lt;br /&gt;
    // Create a label with an image&lt;br /&gt;
//    Image image = new Image(display, &amp;quot;interspatial.gif&amp;quot;);&lt;br /&gt;
//    Label imageLabel = new Label(shell, SWT.NONE);&lt;br /&gt;
//    imageLabel.setImage(image);&lt;br /&gt;
    &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 Label(Shell shell, SWT.SEPARATOR) ==&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.graphics.Image;&lt;br /&gt;
import org.eclipse.swt.layout.GridData;&lt;br /&gt;
import org.eclipse.swt.layout.GridLayout;&lt;br /&gt;
import org.eclipse.swt.widgets.Display;&lt;br /&gt;
import org.eclipse.swt.widgets.Label;&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();&lt;br /&gt;
    shell.setLayout(new GridLayout(1, false));&lt;br /&gt;
    // Create a label&lt;br /&gt;
    new Label(shell, SWT.NONE).setText(&amp;quot;This is a plain label.&amp;quot;);&lt;br /&gt;
    // Create a vertical separator&lt;br /&gt;
    new Label(shell, SWT.SEPARATOR);&lt;br /&gt;
    // Create a label with a border&lt;br /&gt;
    new Label(shell, SWT.BORDER).setText(&amp;quot;This is a label with a border.&amp;quot;);&lt;br /&gt;
    // Create a horizontal separator&lt;br /&gt;
    Label separator = new Label(shell, SWT.HORIZONTAL | SWT.SEPARATOR);&lt;br /&gt;
    separator.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));&lt;br /&gt;
    // Create a label with an image&lt;br /&gt;
//    Image image = new Image(display, &amp;quot;interspatial.gif&amp;quot;);&lt;br /&gt;
//    Label imageLabel = new Label(shell, SWT.NONE);&lt;br /&gt;
//    imageLabel.setImage(image);&lt;br /&gt;
    &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;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>