Tabnine Logo
FontChooserPanel.getSelectedFont
Code IndexAdd Tabnine to your IDE (free)

How to use
getSelectedFont
method
in
org.jfree.ui.FontChooserPanel

Best Java code snippets using org.jfree.ui.FontChooserPanel.getSelectedFont (Showing top 7 results out of 315)

origin: jfree/jcommon

/**
 * Returns the selected font.
 *
 * @return the font.
 */
public Font getSelectedFont() {
  return this.fontChooserPanel.getSelectedFont();
}
origin: org.jfree/jcommon

/**
 * Returns the selected font.
 *
 * @return the font.
 */
public Font getSelectedFont() {
  return this.fontChooserPanel.getSelectedFont();
}
origin: org.jfree/com.springsource.org.jfree

/**
 * Returns the selected font.
 *
 * @return the font.
 */
public Font getSelectedFont() {
  return this.fontChooserPanel.getSelectedFont();
}
origin: org.codehaus.jtstand/jtstand-chart

/**
 * Presents a font selection dialog to the user.
 */
private void attemptLabelFontSelection() {
  FontChooserPanel panel = new FontChooserPanel(this.labelFont);
  int result = JOptionPane.showConfirmDialog(this, panel,
    localizationResources.getString("Font_Selection"),
    JOptionPane.OK_CANCEL_OPTION, JOptionPane.PLAIN_MESSAGE);
  if (result == JOptionPane.OK_OPTION) {
    this.labelFont = panel.getSelectedFont();
    this.labelFontField.setText(
      this.labelFont.getFontName() + " " + this.labelFont.getSize()
    );
  }
}
origin: org.codehaus.jtstand/jtstand-chart

/**
 * Presents a font selection dialog to the user.
 */
public void attemptFontSelection() {
  FontChooserPanel panel = new FontChooserPanel(this.titleFont);
  int result =
    JOptionPane.showConfirmDialog(
      this, panel, localizationResources.getString("Font_Selection"),
      JOptionPane.OK_CANCEL_OPTION, JOptionPane.PLAIN_MESSAGE
    );
  if (result == JOptionPane.OK_OPTION) {
    this.titleFont = panel.getSelectedFont();
    this.fontfield.setText(
      this.titleFont.getFontName() + " " + this.titleFont.getSize()
    );
  }
}
origin: org.codehaus.jtstand/jtstand-chart

/**
 * Presents a tick label font selection dialog to the user.
 */
public void attemptTickLabelFontSelection() {
  FontChooserPanel panel = new FontChooserPanel(this.tickLabelFont);
  int result = JOptionPane.showConfirmDialog(this, panel,
    localizationResources.getString("Font_Selection"),
    JOptionPane.OK_CANCEL_OPTION, JOptionPane.PLAIN_MESSAGE);
  if (result == JOptionPane.OK_OPTION) {
    this.tickLabelFont = panel.getSelectedFont();
    this.tickLabelFontField.setText(
      this.tickLabelFont.getFontName() + " "
      + this.tickLabelFont.getSize()
    );
  }
}
origin: jfree/jcommon

/**
 * Displays a primitive font chooser dialog to allow the user to change the font.
 */
private void displayFontDialog() {
  final FontChooserPanel panel = new FontChooserPanel(this.drawStringPanel1.getFont());
  final int result = JOptionPane.showConfirmDialog(this, panel, "Font Selection",
                        JOptionPane.OK_CANCEL_OPTION,
                        JOptionPane.PLAIN_MESSAGE);
  if (result == JOptionPane.OK_OPTION) {
    this.drawStringPanel1.setFont(panel.getSelectedFont());
    this.drawStringPanel2.setFont(panel.getSelectedFont());
  }
}
org.jfree.uiFontChooserPanelgetSelectedFont

Javadoc

Returns a Font object representing the selection in the panel.

Popular methods of FontChooserPanel

  • <init>
    Standard constructor - builds a FontChooserPanel initialised with the specified font.
  • add
  • getSelectedName
    Returns the selected name.
  • getSelectedSize
    Returns the selected size.
  • getSelectedStyle
    Returns the selected style.
  • setLayout
  • setSelectedFont
    Initializes the contents of the dialog from the given font object.

Popular in Java

  • Running tasks concurrently on multiple threads
  • putExtra (Intent)
  • runOnUiThread (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now