MMDCfgPanel.java 文件源码

java
阅读 16 收藏 0 点赞 0 评论 0

项目:netbeans-mmd-plugin 作者:
private void buttonFontActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_buttonFontActionPerformed
  final PropertyEditor editor = PropertyEditorManager.findEditor(Font.class);
  if (editor == null) {
    LOGGER.error("Can't find any font editor");
    NbUtils.msgError(null, "Can't find editor! Unexpected state! Contact developer!");
    return;
  }
  editor.setValue(this.config.getFont());

  final DialogDescriptor descriptor = new DialogDescriptor(
      editor.getCustomEditor(),
      "Mind map font"
  );

  DialogDisplayer.getDefault().createDialog(descriptor).setVisible(true);
  if (descriptor.getValue() == DialogDescriptor.OK_OPTION) {
    this.config.setFont((Font) editor.getValue());
    updateFontButton(this.config);
    if (changeNotificationAllowed) {
      this.controller.changed();
    }
  }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号