private void showFontEditorDialog() { FontEditorDialog dlg = new FontEditorDialog(myProject, myPropertyName); dlg.setValue(myValue); dlg.show(); if (dlg.getExitCode() == DialogWrapper.OK_EXIT_CODE) { myValue = dlg.getValue(); myTextField.setText(IntroFontProperty.descriptorToString(myValue)); fireValueCommitted(true, false); } }
protected void customize(FontDescriptor value) { setText(IntroFontProperty.descriptorToString(value)); }
private void updatePreview() { myPreviewTextLabel.setText(IntroFontProperty.descriptorToString(myValue)); myPreviewTextLabel.setFont(myValue.getResolvedFont(myRootPane.getFont())); }
public JComponent getComponent(RadComponent component, FontDescriptor value, InplaceContext inplaceContext) { myProject = component.getProject(); myValue = value != null ? value : new FontDescriptor(null, -1, -1); myTextField.setText(IntroFontProperty.descriptorToString(myValue)); return myTextField; }