Package org.jfree.ui

Examples of org.jfree.ui.FontChooserDialog


         * @param e
         *            Description of the Parameter
         */
        public void actionPerformed(ActionEvent e) {
            JButton button = (JButton) e.getSource();
            FontChooserDialog dialog = new FontChooserDialog(prefs, resources
                    .getString("messageWindowFont"), true, button.getFont());

            dialog.setVisible(true);

            if (!dialog.isCancelled()) {
                Font newFont = dialog.getSelectedFont();
                button.setFont(newFont);
                button
                        .setText(getEncodedFontName(newFont).replaceAll("-",
                                " "));
            }
View Full Code Here


    /**
     * Checks that it is possible to create a dialog.
     */
    public void testCreateDialog () {
        try {
            new FontChooserDialog
                (new Frame(), "Title", false, new Font("Serif", Font.PLAIN, 10));
        }
        catch (UnsupportedOperationException use) {
            // Headless mode exception is instance of this ex.
        }
View Full Code Here

    /**
     * Checks that it is possible to create a dialog.
     */
    public void testCreateDialog () {
        try {
            new FontChooserDialog
                (new Frame(), "Title", false, new Font("Serif", Font.PLAIN, 10));
        }
        catch (UnsupportedOperationException use) {
            // Headless mode exception is instance of this ex.
        }
View Full Code Here

    /**
     * Checks that it is possible to create a dialog.
     */
    public void testCreateDialog () {
        try {
            new FontChooserDialog
                (new Frame(), "Title", false, new Font("Serif", Font.PLAIN, 10));
        }
        catch (UnsupportedOperationException use) {
            // Headless mode exception is instance of this ex.
        }
View Full Code Here

TOP

Related Classes of org.jfree.ui.FontChooserDialog

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.