<?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%2FSWT_JFace_Eclipse</id>
		<title>Java/SWT JFace Eclipse - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://www.jexp.ru/index.php?action=history&amp;feed=atom&amp;title=Java%2FSWT_JFace_Eclipse"/>
		<link rel="alternate" type="text/html" href="http://www.jexp.ru/index.php?title=Java/SWT_JFace_Eclipse&amp;action=history"/>
		<updated>2026-04-21T12:59:57Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://www.jexp.ru/index.php?title=Java/SWT_JFace_Eclipse&amp;diff=5750&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://www.jexp.ru/index.php?title=Java/SWT_JFace_Eclipse&amp;diff=5750&amp;oldid=prev"/>
				<updated>2010-06-01T05:57:58Z</updated>
		
		<summary type="html">&lt;p&gt;1 версия&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;Версия 05:57, 1 июня 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>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>http://www.jexp.ru/index.php?title=Java/SWT_JFace_Eclipse&amp;diff=5749&amp;oldid=prev</id>
		<title> в 18:01, 31 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://www.jexp.ru/index.php?title=Java/SWT_JFace_Eclipse&amp;diff=5749&amp;oldid=prev"/>
				<updated>2010-05-31T18:01:43Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;* [[Java/SWT JFace Eclipse/2D | 2D]]&lt;br /&gt;
* [[Java/SWT JFace Eclipse/Application Window | Application Window]]&lt;br /&gt;
* [[Java/SWT JFace Eclipse/Browser HTML | Browser HTML]]&lt;br /&gt;
* [[Java/SWT JFace Eclipse/Busy Indicator | Busy Indicator]]&lt;br /&gt;
* [[Java/SWT JFace Eclipse/Button | Button]]&lt;br /&gt;
* [[Java/SWT JFace Eclipse/Calculator | Calculator]]&lt;br /&gt;
* [[Java/SWT JFace Eclipse/Calendar | Calendar]]&lt;br /&gt;
* [[Java/SWT JFace Eclipse/Canvas | Canvas]]&lt;br /&gt;
* [[Java/SWT JFace Eclipse/Caret | Caret]]&lt;br /&gt;
* [[Java/SWT JFace Eclipse/Clipboard | Clipboard]]&lt;br /&gt;
* [[Java/SWT JFace Eclipse/Combo | Combo]]&lt;br /&gt;
* [[Java/SWT JFace Eclipse/CoolBar | CoolBar]]&lt;br /&gt;
* [[Java/SWT JFace Eclipse/Cursor | Cursor]]&lt;br /&gt;
* [[Java/SWT JFace Eclipse/Custom Control | Custom Control]]&lt;br /&gt;
* [[Java/SWT JFace Eclipse/Dialog | Dialog]]&lt;br /&gt;
* [[Java/SWT JFace Eclipse/Drag Drop | Drag Drop]]&lt;br /&gt;
* [[Java/SWT JFace Eclipse/Eclipse Plugin | Eclipse Plugin]]&lt;br /&gt;
* [[Java/SWT JFace Eclipse/Editor | Editor]]&lt;br /&gt;
* [[Java/SWT JFace Eclipse/Event | Event]]&lt;br /&gt;
* [[Java/SWT JFace Eclipse/File Browser | File Browser]]&lt;br /&gt;
* [[Java/SWT JFace Eclipse/File Dir Chooser | File Dir Chooser]]&lt;br /&gt;
* [[Java/SWT JFace Eclipse/Focus | Focus]]&lt;br /&gt;
* [[Java/SWT JFace Eclipse/Form | Form]]&lt;br /&gt;
* [[Java/SWT JFace Eclipse/Group | Group]]&lt;br /&gt;
* [[Java/SWT JFace Eclipse/Image | Image]]&lt;br /&gt;
* [[Java/SWT JFace Eclipse/JFace Dialog | JFace Dialog]]&lt;br /&gt;
* [[Java/SWT JFace Eclipse/JFace Registry | JFace Registry]]&lt;br /&gt;
* [[Java/SWT JFace Eclipse/Label | Label]]&lt;br /&gt;
* [[Java/SWT JFace Eclipse/Layout | Layout]]&lt;br /&gt;
* [[Java/SWT JFace Eclipse/Link | Link]]&lt;br /&gt;
* [[Java/SWT JFace Eclipse/List | List]]&lt;br /&gt;
* [[Java/SWT JFace Eclipse/List Viewer | List Viewer]]&lt;br /&gt;
* [[Java/SWT JFace Eclipse/MVC | MVC]]&lt;br /&gt;
* [[Java/SWT JFace Eclipse/Menu | Menu]]&lt;br /&gt;
* [[Java/SWT JFace Eclipse/Monitor | Monitor]]&lt;br /&gt;
* [[Java/SWT JFace Eclipse/Mouse Key | Mouse Key]]&lt;br /&gt;
* [[Java/SWT JFace Eclipse/OpenGL | OpenGL]]&lt;br /&gt;
* [[Java/SWT JFace Eclipse/Password | Password]]&lt;br /&gt;
* [[Java/SWT JFace Eclipse/PopupList | PopupList]]&lt;br /&gt;
* [[Java/SWT JFace Eclipse/Preferences | Preferences]]&lt;br /&gt;
* [[Java/SWT JFace Eclipse/Print | Print]]&lt;br /&gt;
* [[Java/SWT JFace Eclipse/ProgressBar | ProgressBar]]&lt;br /&gt;
* [[Java/SWT JFace Eclipse/Radio Button | Radio Button]]&lt;br /&gt;
* [[Java/SWT JFace Eclipse/SWT Swing AWT | SWT Swing AWT]]&lt;br /&gt;
* [[Java/SWT JFace Eclipse/Sash | Sash]]&lt;br /&gt;
* [[Java/SWT JFace Eclipse/SashForm | SashForm]]&lt;br /&gt;
* [[Java/SWT JFace Eclipse/Scale | Scale]]&lt;br /&gt;
* [[Java/SWT JFace Eclipse/Scroll | Scroll]]&lt;br /&gt;
* [[Java/SWT JFace Eclipse/ScrollBar | ScrollBar]]&lt;br /&gt;
* [[Java/SWT JFace Eclipse/Shell Display | Shell Display]]&lt;br /&gt;
* [[Java/SWT JFace Eclipse/Slider | Slider]]&lt;br /&gt;
* [[Java/SWT JFace Eclipse/Small Application | Small Application]]&lt;br /&gt;
* [[Java/SWT JFace Eclipse/Spinner | Spinner]]&lt;br /&gt;
* [[Java/SWT JFace Eclipse/Split | Split]]&lt;br /&gt;
* [[Java/SWT JFace Eclipse/Status Bar | Status Bar]]&lt;br /&gt;
* [[Java/SWT JFace Eclipse/StyledText | StyledText]]&lt;br /&gt;
* [[Java/SWT JFace Eclipse/Tab | Tab]]&lt;br /&gt;
* [[Java/SWT JFace Eclipse/Table | Table]]&lt;br /&gt;
* [[Java/SWT JFace Eclipse/TableTree | TableTree]]&lt;br /&gt;
* [[Java/SWT JFace Eclipse/Text | Text]]&lt;br /&gt;
* [[Java/SWT JFace Eclipse/Thread | Thread]]&lt;br /&gt;
* [[Java/SWT JFace Eclipse/ToolBar | ToolBar]]&lt;br /&gt;
* [[Java/SWT JFace Eclipse/Tooltips | Tooltips]]&lt;br /&gt;
* [[Java/SWT JFace Eclipse/Tree | Tree]]&lt;br /&gt;
* [[Java/SWT JFace Eclipse/Undo Redo | Undo Redo]]&lt;br /&gt;
* [[Java/SWT JFace Eclipse/View Form | View Form]]&lt;br /&gt;
* [[Java/SWT JFace Eclipse/WIN32 | WIN32]]&lt;br /&gt;
* [[Java/SWT JFace Eclipse/Wizard | Wizard]]&lt;br /&gt;
&lt;br /&gt;
== Demonstrates FontMetrics and extents ==&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;
//Send questions, comments, bug reports, etc. to the authors:&lt;br /&gt;
//Rob Warner (rwarner@interspatial.ru)&lt;br /&gt;
//Robert Harris (rbrt_harris@yahoo.ru)&lt;br /&gt;
import org.eclipse.swt.SWT;&lt;br /&gt;
import org.eclipse.swt.custom.*;&lt;br /&gt;
import org.eclipse.swt.events.*;&lt;br /&gt;
import org.eclipse.swt.graphics.*;&lt;br /&gt;
import org.eclipse.swt.widgets.*;&lt;br /&gt;
/**&lt;br /&gt;
 * This class demonstrates FontMetrics and extents&lt;br /&gt;
 */&lt;br /&gt;
public class Extents {&lt;br /&gt;
  // The string to display&lt;br /&gt;
  private static final String STRING = &amp;quot;Go Celtics!&amp;quot;;&lt;br /&gt;
  // The size options for the combo&lt;br /&gt;
  private static final String[] SIZES = { &amp;quot;8&amp;quot;, &amp;quot;10&amp;quot;, &amp;quot;12&amp;quot;, &amp;quot;14&amp;quot;, &amp;quot;16&amp;quot;, &amp;quot;18&amp;quot;};&lt;br /&gt;
  // The font used to draw the string&lt;br /&gt;
  private Font font;&lt;br /&gt;
  /**&lt;br /&gt;
   * Runs the application&lt;br /&gt;
   */&lt;br /&gt;
  public void run() {&lt;br /&gt;
    Display display = new Display();&lt;br /&gt;
    Shell shell = new Shell(display);&lt;br /&gt;
    shell.setText(&amp;quot;Extents&amp;quot;);&lt;br /&gt;
    createContents(shell);&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;
    if (font != null) font.dispose();&lt;br /&gt;
    display.dispose();&lt;br /&gt;
  }&lt;br /&gt;
  /**&lt;br /&gt;
   * Creates the main window&amp;quot;s contents&lt;br /&gt;
   * &lt;br /&gt;
   * @param shell the main window&lt;br /&gt;
   */&lt;br /&gt;
  private void createContents(final Shell shell) {&lt;br /&gt;
    // Create a canvas to draw on&lt;br /&gt;
    final Canvas canvas = new Canvas(shell, SWT.NONE);&lt;br /&gt;
    // Add a listener to the shell to resize the canvas to fill the window&lt;br /&gt;
    // any time the window is resized&lt;br /&gt;
    shell.addControlListener(new ControlAdapter() {&lt;br /&gt;
      public void controlResized(ControlEvent event) {&lt;br /&gt;
        canvas.setBounds(shell.getClientArea());&lt;br /&gt;
      }&lt;br /&gt;
    });&lt;br /&gt;
    // Add a listener to the canvas. This is where we draw the text.&lt;br /&gt;
    canvas.addPaintListener(new PaintListener() {&lt;br /&gt;
      public void paintControl(PaintEvent event) {&lt;br /&gt;
        // Set the font into the gc&lt;br /&gt;
        event.gc.setFont(font);&lt;br /&gt;
        // Calcalute the width (nad height) of the string&lt;br /&gt;
        Point pt = event.gc.stringExtent(STRING);&lt;br /&gt;
        // Figure out how big our drawing area is&lt;br /&gt;
        Rectangle rect = canvas.getBounds();&lt;br /&gt;
        // Calculate the height of the font. We could have used pt.y,&lt;br /&gt;
        // but this demonstrates FontMetrics&lt;br /&gt;
        int height = event.gc.getFontMetrics().getHeight();&lt;br /&gt;
        // Outside loop goes from the top of the window to the bottom.&lt;br /&gt;
        // Since the (x, y) passed to drawString represents the upper left&lt;br /&gt;
        // corner, subtract the height of the font from the height of the&lt;br /&gt;
        // drawing area, so we don&amp;quot;t have any partial drawing.&lt;br /&gt;
        for (int i = 0, n = rect.height - height; i &amp;lt; n; i += height) {&lt;br /&gt;
          // Inside loop goes from the left to the right, stopping far enough&lt;br /&gt;
          // from the right to ensure no partial string drawing.&lt;br /&gt;
          for (int j = 0, m = rect.width - pt.x; j &amp;lt; m; j += pt.x) {&lt;br /&gt;
            // Draw the string&lt;br /&gt;
            event.gc.drawString(STRING, j, i);&lt;br /&gt;
          }&lt;br /&gt;
        }&lt;br /&gt;
      }&lt;br /&gt;
    });&lt;br /&gt;
    // Create an editor to house the dropdown&lt;br /&gt;
    ControlEditor editor = new ControlEditor(canvas);&lt;br /&gt;
    // Create the combo and fill it&lt;br /&gt;
    final Combo combo = new Combo(canvas, SWT.READ_ONLY);&lt;br /&gt;
    for (int i = 0, n = SIZES.length; i &amp;lt; n; i++) {&lt;br /&gt;
      combo.add(SIZES[i]);&lt;br /&gt;
    }&lt;br /&gt;
    // Set up the editor&lt;br /&gt;
    editor.horizontalAlignment = SWT.CENTER;&lt;br /&gt;
    editor.verticalAlignment = SWT.TOP;&lt;br /&gt;
    Point size = combo.ruputeSize(SWT.DEFAULT, SWT.DEFAULT);&lt;br /&gt;
    editor.minimumWidth = size.x;&lt;br /&gt;
    editor.minimumHeight = size.y;&lt;br /&gt;
    editor.setEditor(combo);&lt;br /&gt;
    // Add a listener to the combo, so that when the selection changes,&lt;br /&gt;
    // we change the font and redraw the canvas&lt;br /&gt;
    combo.addSelectionListener(new SelectionAdapter() {&lt;br /&gt;
      public void widgetSelected(SelectionEvent event) {&lt;br /&gt;
        if (font != null) font.dispose();&lt;br /&gt;
        font = new Font(shell.getDisplay(), &amp;quot;Helvetica&amp;quot;, new Integer(combo&lt;br /&gt;
            .getText()).intValue(), SWT.BOLD);&lt;br /&gt;
        canvas.redraw();&lt;br /&gt;
      }&lt;br /&gt;
    });&lt;br /&gt;
    // Select the first item in the combo&lt;br /&gt;
    combo.select(0);&lt;br /&gt;
  }&lt;br /&gt;
  /**&lt;br /&gt;
   * The application entry point&lt;br /&gt;
   * &lt;br /&gt;
   * @param args the command line arguments&lt;br /&gt;
   */&lt;br /&gt;
  public static void main(String[] args) {&lt;br /&gt;
    new Extents().run();&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;
== Font: create a large font for use by a text widget ==&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;
/*&lt;br /&gt;
 * Font example snippet: create a large font for use by a text widget&lt;br /&gt;
 *&lt;br /&gt;
 * For a list of all SWT example snippets see&lt;br /&gt;
 * http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/platform-swt-home/dev.html#snippets&lt;br /&gt;
 */&lt;br /&gt;
import org.eclipse.swt.SWT;&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.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 Snippet100 {&lt;br /&gt;
  public static void main(String[] args) {&lt;br /&gt;
    Display display = new Display();&lt;br /&gt;
    Shell shell = new Shell(display);&lt;br /&gt;
    shell.setBounds(10, 10, 200, 200);&lt;br /&gt;
    Text text = new Text(shell, SWT.MULTI);&lt;br /&gt;
    text.setBounds(10, 10, 150, 150);&lt;br /&gt;
    Font initialFont = text.getFont();&lt;br /&gt;
    FontData[] fontData = initialFont.getFontData();&lt;br /&gt;
    for (int i = 0; i &amp;lt; fontData.length; i++) {&lt;br /&gt;
      fontData[i].setHeight(24);&lt;br /&gt;
    }&lt;br /&gt;
    Font newFont = new Font(display, fontData);&lt;br /&gt;
    text.setFont(newFont);&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;
    newFont.dispose();&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;
== SWT Font Registry Example ==&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;
/******************************************************************************&lt;br /&gt;
 * Copyright (c) 1998, 2004 Jackwind Li Guojie&lt;br /&gt;
 * All right reserved. &lt;br /&gt;
 * &lt;br /&gt;
 * Created on Jan 8, 2004 3:09:29 PM by JACK&lt;br /&gt;
 * $Id$&lt;br /&gt;
 * &lt;br /&gt;
 * visit: http://www.asprise.ru/swt&lt;br /&gt;
 *****************************************************************************/&lt;br /&gt;
&lt;br /&gt;
import org.eclipse.jface.resource.FontRegistry;&lt;br /&gt;
import org.eclipse.swt.SWT;&lt;br /&gt;
import org.eclipse.swt.graphics.FontData;&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.Button;&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 FontRegistryExample {&lt;br /&gt;
  Display display = new Display();&lt;br /&gt;
  Shell shell = new Shell(display);&lt;br /&gt;
  &lt;br /&gt;
  FontRegistry fontRegistry;&lt;br /&gt;
  public FontRegistryExample() {&lt;br /&gt;
    init();&lt;br /&gt;
    shell.pack();&lt;br /&gt;
    shell.open();&lt;br /&gt;
    //textUser.forceFocus();&lt;br /&gt;
    // Set up the event loop.&lt;br /&gt;
    while (!shell.isDisposed()) {&lt;br /&gt;
      if (!display.readAndDispatch()) {&lt;br /&gt;
        // If no more entries in event queue&lt;br /&gt;
        display.sleep();&lt;br /&gt;
      }&lt;br /&gt;
    }&lt;br /&gt;
    display.dispose();&lt;br /&gt;
  }&lt;br /&gt;
  private void init() {&lt;br /&gt;
    shell.setLayout(new GridLayout(2, false));&lt;br /&gt;
    &lt;br /&gt;
    fontRegistry = new FontRegistry(display);&lt;br /&gt;
    &lt;br /&gt;
    fontRegistry.put(&amp;quot;button-text&amp;quot;, new FontData[]{new FontData(&amp;quot;Arial&amp;quot;, 9, SWT.BOLD)} );&lt;br /&gt;
    fontRegistry.put(&amp;quot;code&amp;quot;, new FontData[]{new FontData(&amp;quot;Courier New&amp;quot;, 10, SWT.NORMAL)});&lt;br /&gt;
    &lt;br /&gt;
    Text text = new Text(shell, SWT.MULTI | SWT.BORDER | SWT.WRAP);&lt;br /&gt;
    text.setFont(fontRegistry.get(&amp;quot;code&amp;quot;));&lt;br /&gt;
    text.setForeground(display.getSystemColor(SWT.COLOR_BLUE));&lt;br /&gt;
    text.setText(&amp;quot;public static void main() {\n\tSystem.out.println(\&amp;quot;Hello\&amp;quot;); \n}&amp;quot;);&lt;br /&gt;
    GridData gd = new GridData(GridData.FILL_BOTH);&lt;br /&gt;
    gd.horizontalSpan = 2;&lt;br /&gt;
    text.setLayoutData(gd);&lt;br /&gt;
    &lt;br /&gt;
    Button executeButton = new Button(shell, SWT.PUSH);&lt;br /&gt;
    executeButton.setText(&amp;quot;Execute&amp;quot;);&lt;br /&gt;
    executeButton.setFont(fontRegistry.get(&amp;quot;button-text&amp;quot;));&lt;br /&gt;
    &lt;br /&gt;
    Button cancelButton = new Button(shell, SWT.PUSH);&lt;br /&gt;
    cancelButton.setText(&amp;quot;Cancel&amp;quot;);&lt;br /&gt;
    cancelButton.setFont(fontRegistry.get(&amp;quot;button-text&amp;quot;));&lt;br /&gt;
    &lt;br /&gt;
    &lt;br /&gt;
  }&lt;br /&gt;
  public static void main(String[] args) {&lt;br /&gt;
    new FontRegistryExample();&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>
			</entry>

	</feed>