<?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</id>
		<title>Java by API/org.eclipse.swt.widgets - История изменений</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"/>
		<link rel="alternate" type="text/html" href="http://www.jexp.ru/index.php?title=Java_by_API/org.eclipse.swt.widgets&amp;action=history"/>
		<updated>2026-04-19T13:12:54Z</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&amp;diff=404&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&amp;diff=404&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&amp;diff=405&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&amp;diff=405&amp;oldid=prev"/>
				<updated>2010-05-31T14:16:44Z</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;* [[Java by API/org.eclipse.swt.widgets/Button | Button]]&lt;br /&gt;
* [[Java by API/org.eclipse.swt.widgets/ColorDialog | ColorDialog]]&lt;br /&gt;
* [[Java by API/org.eclipse.swt.widgets/Combo | Combo]]&lt;br /&gt;
* [[Java by API/org.eclipse.swt.widgets/Composite | Composite]]&lt;br /&gt;
* [[Java by API/org.eclipse.swt.widgets/CoolBar | CoolBar]]&lt;br /&gt;
* [[Java by API/org.eclipse.swt.widgets/CoolItem | CoolItem]]&lt;br /&gt;
* [[Java by API/org.eclipse.swt.widgets/Decorations | Decorations]]&lt;br /&gt;
* [[Java by API/org.eclipse.swt.widgets/Dialog | Dialog]]&lt;br /&gt;
* [[Java by API/org.eclipse.swt.widgets/DirectoryDialog | DirectoryDialog]]&lt;br /&gt;
* [[Java by API/org.eclipse.swt.widgets/Display | Display]]&lt;br /&gt;
* [[Java by API/org.eclipse.swt.widgets/FileDialog | FileDialog]]&lt;br /&gt;
* [[Java by API/org.eclipse.swt.widgets/Group | Group]]&lt;br /&gt;
* [[Java by API/org.eclipse.swt.widgets/Label | Label]]&lt;br /&gt;
* [[Java by API/org.eclipse.swt.widgets/List | List]]&lt;br /&gt;
* [[Java by API/org.eclipse.swt.widgets/Listener | Listener]]&lt;br /&gt;
* [[Java by API/org.eclipse.swt.widgets/Menu | Menu]]&lt;br /&gt;
* [[Java by API/org.eclipse.swt.widgets/MenuItem | MenuItem]]&lt;br /&gt;
* [[Java by API/org.eclipse.swt.widgets/MessageBox | MessageBox]]&lt;br /&gt;
* [[Java by API/org.eclipse.swt.widgets/ProgressBar | ProgressBar]]&lt;br /&gt;
* [[Java by API/org.eclipse.swt.widgets/Sash | Sash]]&lt;br /&gt;
* [[Java by API/org.eclipse.swt.widgets/ScrollBar | ScrollBar]]&lt;br /&gt;
* [[Java by API/org.eclipse.swt.widgets/Shell | Shell]]&lt;br /&gt;
* [[Java by API/org.eclipse.swt.widgets/Slider | Slider]]&lt;br /&gt;
* [[Java by API/org.eclipse.swt.widgets/TabFolder | TabFolder]]&lt;br /&gt;
* [[Java by API/org.eclipse.swt.widgets/TabItem | TabItem]]&lt;br /&gt;
* [[Java by API/org.eclipse.swt.widgets/Table | Table]]&lt;br /&gt;
* [[Java by API/org.eclipse.swt.widgets/TableColumn | TableColumn]]&lt;br /&gt;
* [[Java by API/org.eclipse.swt.widgets/TableItem | TableItem]]&lt;br /&gt;
* [[Java by API/org.eclipse.swt.widgets/Text | Text]]&lt;br /&gt;
* [[Java by API/org.eclipse.swt.widgets/ToolBar | ToolBar]]&lt;br /&gt;
* [[Java by API/org.eclipse.swt.widgets/ToolItem | ToolItem]]&lt;br /&gt;
* [[Java by API/org.eclipse.swt.widgets/Tree | Tree]]&lt;br /&gt;
* [[Java by API/org.eclipse.swt.widgets/TreeItem | TreeItem]]&lt;br /&gt;
&lt;br /&gt;
== FontDialog: open() ==&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.graphics.FontData;&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.Display;&lt;br /&gt;
import org.eclipse.swt.widgets.FontDialog;&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;
        FontDialog fd = new FontDialog(s, SWT.NONE);&lt;br /&gt;
        fd.setText(&amp;quot;Select Font&amp;quot;);&lt;br /&gt;
        fd.setRGB(new RGB(0,0,255));&lt;br /&gt;
        FontData defaultFont = new FontData(&amp;quot;Courier&amp;quot;,10,SWT.BOLD);&lt;br /&gt;
        fd.setFontData(defaultFont);     &lt;br /&gt;
        FontData newFont = fd.open();&lt;br /&gt;
        if(newFont==null)&lt;br /&gt;
            return;&lt;br /&gt;
        t.setFont(new Font(d, newFont));&lt;br /&gt;
        t.setForeground(new Color(d, fd.getRGB()));&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;
== FontDialog: setFontList(FontData[] fontData) ==&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.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;
           &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;
== FontDialog: setRGB(RGB rgb) ==&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;
== FontDialog: 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;
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.graphics.FontData;&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.Display;&lt;br /&gt;
import org.eclipse.swt.widgets.FontDialog;&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;
        FontDialog fd = new FontDialog(s, SWT.NONE);&lt;br /&gt;
        fd.setText(&amp;quot;Select Font&amp;quot;);&lt;br /&gt;
        fd.setRGB(new RGB(0,0,255));&lt;br /&gt;
        FontData defaultFont = new FontData(&amp;quot;Courier&amp;quot;,10,SWT.BOLD);&lt;br /&gt;
        fd.setFontData(defaultFont);     &lt;br /&gt;
        FontData newFont = fd.open();&lt;br /&gt;
        if(newFont==null)&lt;br /&gt;
            return;&lt;br /&gt;
        t.setFont(new Font(d, newFont));&lt;br /&gt;
        t.setForeground(new Color(d, fd.getRGB()));&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;
== new FontDialog(Shell parent, int style) ==&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.graphics.FontData;&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.Display;&lt;br /&gt;
import org.eclipse.swt.widgets.FontDialog;&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;
        FontDialog fd = new FontDialog(s, SWT.NONE);&lt;br /&gt;
        fd.setText(&amp;quot;Select Font&amp;quot;);&lt;br /&gt;
        fd.setRGB(new RGB(0,0,255));&lt;br /&gt;
        FontData defaultFont = new FontData(&amp;quot;Courier&amp;quot;,10,SWT.BOLD);&lt;br /&gt;
        fd.setFontData(defaultFont);     &lt;br /&gt;
        FontData newFont = fd.open();&lt;br /&gt;
        if(newFont==null)&lt;br /&gt;
            return;&lt;br /&gt;
        t.setFont(new Font(d, newFont));&lt;br /&gt;
        t.setForeground(new Color(d, fd.getRGB()));&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;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>