Examples of JFontChooser


Examples of com.l2fprod.common.swing.JFontChooser

public class ChooseFont extends JPanel {

  public ChooseFont() {
    setLayout(new PercentLayout(PercentLayout.VERTICAL, 3));

    JFontChooser chooser = new JFontChooser();
    chooser.setSelectedFont(new Font("Dialog", Font.BOLD | Font.ITALIC, 56));
    add("*", chooser);

    JButton button = new JButton("Click here to show JFontChooser");
    button.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
View Full Code Here

Examples of com.l2fprod.common.swing.JFontChooser

      //  Warn the user that scripting is not enabled.
    }
  }

  private void DoChooseFont() {
    JFontChooser jfc = new JFontChooser();
    jfc.setSelectedFont(myTableCellRenderer.getDefaultFont());
    Font chosen = jfc.showFontDialog(null, "Please choose the default font for the auction table");
    if(chosen != null) {
      myTableCellRenderer.setDefaultFont(chosen);
      MQFactory.getConcrete("redraw").enqueue("#font");
    }
  }
View Full Code Here

Examples of say.swing.JFontChooser

        tfQuality.setText(String.valueOf(sd.getValue()));
    }//GEN-LAST:event_sdQualityHandler

    private void btExifFontActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btExifFontActionPerformed
       if(fontChooser == null){
           fontChooser = new JFontChooser();
       }
       fontChooser.setSelectedFont(exifFont);
       int result = fontChooser.showDialog(this);
       if (result == JFontChooser.OK_OPTION)
       {
View Full Code Here

Examples of say.swing.JFontChooser

        }
    }//GEN-LAST:event_cbLanguageActionPerformed

    private void btWmTextFontActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btWmTextFontActionPerformed
       if(fontChooser == null){
           fontChooser = new JFontChooser();
       }
       fontChooser.setSelectedFont(wmTextFont);
        int result = fontChooser.showDialog(this);
       if (result == JFontChooser.OK_OPTION)
       {
View Full Code Here

Examples of say.swing.JFontChooser

    /**
     * @param curretnFont
     * @return font selected
     */
    public Font selectFont(Font curretnFont) {
        JFontChooser jfc = new JFontChooser();
        if (curretnFont != null) {
            jfc.setSelectedFont(curretnFont);
        }
        int result = jfc.showDialog(this.reportSettings);
        return ((result == JFontChooser.OK_OPTION) ? jfc.getSelectedFont()
                : curretnFont);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.