Java 类org.jfree.ui.FontChooserPanel 实例源码

项目:parabuild-ci    文件:LegendPropertyEditPanel.java   
/**
 * Allows the user the opportunity to change the series label font.
 */
public void attemptModifySeriesFont() {

    FontChooserPanel panel = new FontChooserPanel(this.seriesFont);
    int result = 
        JOptionPane.showConfirmDialog(this, panel,
                                      localizationResources.getString("Font_Selection"),
                                      JOptionPane.OK_CANCEL_OPTION, JOptionPane.PLAIN_MESSAGE);

    if (result == JOptionPane.OK_OPTION) {
        this.seriesFont = panel.getSelectedFont();
        this.fontDisplayField.setText(
            this.seriesFont.getFontName() + ", " + this.seriesFont.getSize()
        );
    }

}
项目:parabuild-ci    文件:AxisPropertyEditPanel.java   
/**
 * 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()
        );
    }

}
项目:parabuild-ci    文件:DefaultTitleEditor.java   
/**
 * 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()
        );
    }
}
项目:parabuild-ci    文件:DefaultAxisEditor.java   
/**
 * 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()
        );
    }

}
项目:parabuild-ci    文件:DefaultAxisEditor.java   
/**
 * 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()
        );
    }

}
项目:ccu-historian    文件:DefaultTitleEditor.java   
/**
 * 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()
        );
    }
}
项目:ccu-historian    文件:DefaultAxisEditor.java   
/**
 * 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()
        );
    }

}
项目:ccu-historian    文件:DefaultAxisEditor.java   
/**
 * 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()
        );
    }

}
项目:aya-lang    文件:DefaultTitleEditor.java   
/**
 * 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()
        );
    }
}
项目:aya-lang    文件:DefaultAxisEditor.java   
/**
 * 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()
        );
    }

}
项目:aya-lang    文件:DefaultAxisEditor.java   
/**
 * 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()
        );
    }

}
项目:HTML5_WebSite    文件:DefaultTitleEditor.java   
/**
 * 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()
        );
    }
}
项目:HTML5_WebSite    文件:DefaultAxisEditor.java   
/**
 * 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()
        );
    }

}
项目:HTML5_WebSite    文件:DefaultAxisEditor.java   
/**
 * 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()
        );
    }

}
项目:populus    文件:DefaultTitleEditor.java   
/**
 * 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()
        );
    }
}
项目:populus    文件:DefaultAxisEditor.java   
/**
 * 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()
        );
    }

}
项目:populus    文件:DefaultAxisEditor.java   
/**
 * 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()
        );
    }

}
项目:PI    文件:DefaultTitleEditor.java   
/**
 * 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()
        );
    }
}
项目:PI    文件:DefaultAxisEditor.java   
/**
 * 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()
        );
    }

}
项目:PI    文件:DefaultAxisEditor.java   
/**
 * 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()
        );
    }

}
项目:nabs    文件:DefaultTitleEditor.java   
/**
 * 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()
        );
    }
}
项目:nabs    文件:DefaultAxisEditor.java   
/**
 * 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()
        );
    }

}
项目:nabs    文件:DefaultAxisEditor.java   
/**
 * 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()
        );
    }

}
项目:ECG-Viewer    文件:DefaultTitleEditor.java   
/**
 * 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()
        );
    }
}
项目:ECG-Viewer    文件:DefaultAxisEditor.java   
/**
 * 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()
        );
    }

}
项目:ECG-Viewer    文件:DefaultAxisEditor.java   
/**
 * 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()
        );
    }

}
项目:opensim-gui    文件:DefaultTitleEditor.java   
/**
 * 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()
        );
    }
}
项目:opensim-gui    文件:DefaultAxisEditor.java   
/**
 * 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()
        );
    }

}
项目:opensim-gui    文件:DefaultAxisEditor.java   
/**
 * 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()
        );
    }

}
项目:group-five    文件:DefaultTitleEditor.java   
/**
 * 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()
        );
    }
}
项目:group-five    文件:DefaultAxisEditor.java   
/**
 * 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()
        );
    }

}
项目:group-five    文件:DefaultAxisEditor.java   
/**
 * 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()
        );
    }

}
项目:manydesigns.cn    文件:DefaultTitleEditor.java   
/**
 * 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()
        );
    }
}
项目:manydesigns.cn    文件:DefaultAxisEditor.java   
/**
 * 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()
        );
    }

}
项目:manydesigns.cn    文件:DefaultAxisEditor.java   
/**
 * 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()
        );
    }

}
项目:buffer_bci    文件:DefaultTitleEditor.java   
/**
 * 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()
        );
    }
}
项目:buffer_bci    文件:DefaultAxisEditor.java   
/**
 * 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()
        );
    }

}
项目:buffer_bci    文件:DefaultAxisEditor.java   
/**
 * 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()
        );
    }

}
项目:buffer_bci    文件:DefaultTitleEditor.java   
/**
 * 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()
        );
    }
}
项目:buffer_bci    文件:DefaultAxisEditor.java   
/**
 * 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()
        );
    }

}