• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java FormBuilder类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中com.intellij.util.ui.FormBuilder的典型用法代码示例。如果您正苦于以下问题:Java FormBuilder类的具体用法?Java FormBuilder怎么用?Java FormBuilder使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



FormBuilder类属于com.intellij.util.ui包,在下文中一共展示了FormBuilder类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: createCustomPanel

import com.intellij.util.ui.FormBuilder; //导入依赖的package包/类
@Nullable
@Override
protected JComponent createCustomPanel() {
  myIconProjectsLabel = new JBLabel("Icon Projects:", SwingConstants.RIGHT);
  myIconProjects = TextFieldWithAutoCompletion.create(
    myProject,
    Collections.emptyList(),
    true,
    myRepository.getIconProjects()
  );
  JBLabel descLabel = new JBLabel();
  descLabel.setCopyable(true);
  descLabel.setText("Only one icon is shown for each task. " +
                    "This icon is extracted from the projects the task belongs to.<br>" +
                    "You can specify the projects whose icons will be used first. " +
                    "Separate multiple projects with commas.");
  descLabel.setComponentStyle(UIUtil.ComponentStyle.SMALL);
  return FormBuilder.createFormBuilder()
    .addLabeledComponent(myIconProjectsLabel, myIconProjects)
    .addComponentToRightColumn(descLabel)
    .getPanel();
}
 
开发者ID:mmm444,项目名称:ijphab,代码行数:23,代码来源:PhabricatorRepositoryEditor.java


示例2: createNorthPanel

import com.intellij.util.ui.FormBuilder; //导入依赖的package包/类
protected JComponent createNorthPanel() {
  myNameField = new JTextField(myMigrationMap.getName());
  myNameField.getDocument().addDocumentListener(new DocumentAdapter() {
    protected void textChanged(DocumentEvent e) {
      validateOKButton();
    }
  });

  myDescriptionTextArea = new JTextArea(myMigrationMap.getDescription(), 3, 40) {
    @Override
    public Dimension getMinimumSize() {
      return super.getPreferredSize();
    }
  };
  myDescriptionTextArea.setLineWrap(true);
  myDescriptionTextArea.setWrapStyleWord(true);
  myDescriptionTextArea.setFont(myNameField.getFont());
  myDescriptionTextArea.setBackground(myNameField.getBackground());
  JScrollPane scrollPane = ScrollPaneFactory.createScrollPane(myDescriptionTextArea);
  scrollPane.setBorder(myNameField.getBorder());

  return FormBuilder.createFormBuilder()
    .addLabeledComponent(new JLabel(RefactoringBundle.message("migration.map.name.prompt")), myNameField)
    .addLabeledComponent(new JLabel(RefactoringBundle.message("migration.map.description.label")), scrollPane)
    .addVerticalGap(UIUtil.LARGE_VGAP).getPanel();
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:27,代码来源:EditMigrationDialog.java


示例3: createNorthPanel

import com.intellij.util.ui.FormBuilder; //导入依赖的package包/类
protected JComponent createNorthPanel() {
  final JPanel checkboxPanel = new JPanel(new BorderLayout());
  checkboxPanel.add(createInner, BorderLayout.WEST);
  checkboxPanel.add(extractAsEnum, BorderLayout.EAST);
  FormBuilder builder = FormBuilder.createFormBuilder()
    .addComponent(
      JBLabelDecorator.createJBLabelDecorator(RefactorJBundle.message("extract.class.from.label", sourceClass.getQualifiedName()))
        .setBold(true))
    .addLabeledComponent(RefactorJBundle.message("name.for.new.class.label"), classNameField, UIUtil.LARGE_VGAP)
    .addLabeledComponent(new JLabel(), checkboxPanel)
    .addLabeledComponent(RefactorJBundle.message("package.for.new.class.label"), packageTextField);

  if (JavaProjectRootsUtil.getSuitableDestinationSourceRoots(myProject).size() > 1) {
    builder.addLabeledComponent(RefactoringBundle.message("target.destination.folder"), myDestinationFolderComboBox);
  }

  return builder.addVerticalGap(5).getPanel();
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:19,代码来源:ExtractClassDialog.java


示例4: CertificateInfoPanel

import com.intellij.util.ui.FormBuilder; //导入依赖的package包/类
public CertificateInfoPanel(@NotNull X509Certificate certificate) {
  myCertificateWrapper = new CertificateWrapper(certificate);
  setLayout(new BorderLayout());

  FormBuilder builder = FormBuilder.createFormBuilder();

  // I'm not using separate panels and form builders to preserve alignment of labels
  updateBuilderWithTitle(builder, "Issued To");
  updateBuilderWithPrincipalData(builder, myCertificateWrapper.getSubjectFields());
  updateBuilderWithTitle(builder, "Issued By");
  updateBuilderWithPrincipalData(builder, myCertificateWrapper.getIssuerFields());
  updateBuilderWithTitle(builder, "Validity Period");
  String notBefore = DATE_FORMAT.format(myCertificateWrapper.getNotBefore());
  String notAfter = DATE_FORMAT.format(myCertificateWrapper.getNotAfter());
  builder = builder
    .setIndent(IdeBorderFactory.TITLED_BORDER_INDENT)
    .addLabeledComponent("Valid from:", createColoredComponent(notBefore, "not yet valid", myCertificateWrapper.isNotYetValid()))
    .addLabeledComponent("Valid until:", createColoredComponent(notAfter, "expired", myCertificateWrapper.isExpired()));
  builder.setIndent(0);
  updateBuilderWithTitle(builder, "Fingerprints");
  builder.setIndent(IdeBorderFactory.TITLED_BORDER_INDENT);
  builder.addLabeledComponent("SHA-256:", getTextPane(formatHex(myCertificateWrapper.getSha256Fingerprint())));
  builder.addLabeledComponent("SHA-1:", getTextPane(formatHex(myCertificateWrapper.getSha1Fingerprint())));
  add(builder.getPanel(), BorderLayout.NORTH);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:26,代码来源:CertificateInfoPanel.java


示例5: initMainPanel

import com.intellij.util.ui.FormBuilder; //导入依赖的package包/类
private void initMainPanel() {
  myFileNameField = new TextFieldWithBrowseButton();
  myReversePatchCheckbox = new JCheckBox(VcsBundle.message("create.patch.reverse.checkbox"));
  myEncoding = new ComboBox();
  myIncludeBaseRevisionTextCheckBox = new JCheckBox(VcsBundle.message("create.patch.base.revision", 0));
  myIncludeBaseRevisionTextCheckBox.setToolTipText(VcsBundle.message("create.patch.base.revision.tooltip"));
  myErrorLabel = new JLabel();

  myMainPanel = FormBuilder.createFormBuilder()
    .addLabeledComponent(VcsBundle.message("create.patch.file.path"), myFileNameField)
    .addComponent(myReversePatchCheckbox)
    .addComponent(myIncludeBaseRevisionTextCheckBox)
    .addLabeledComponent(VcsBundle.message("create.patch.encoding"), myEncoding)
    .addComponent(myErrorLabel)
    .getPanel();
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:17,代码来源:CreatePatchConfigurationPanel.java


示例6: CreateGradleLibraryFromFilesDialog

import com.intellij.util.ui.FormBuilder; //导入依赖的package包/类
public CreateGradleLibraryFromFilesDialog(@NotNull Project project, @NotNull List<OrderRoot> roots) {
  super(project, true);
  setTitle(COMMAND_TITLE);
  myProject = project;
  myRoots = roots;
  mySettingsFile = GradleSettingsFile.get(myProject);

  final FormBuilder builder = LibraryNameAndLevelPanel.createFormBuilder();
  myModulesComboBox = new ModulesComboBox();
  myModulesComboBox.fillModules(myProject);
  myModulesComboBox.setSelectedModule(findModule(roots));
  for (Iterator iter = ((SortedListModel)myModulesComboBox.getModel()).iterator(); iter.hasNext(); ) {
    Module module = (Module)iter.next();
    String path = GradleSettingsFile.getModuleGradlePath(module);
    if (path == null || !mySettingsFile.hasBuildFile(path)) {
      iter.remove();
    }
  }
  builder.addLabeledComponent("&Add to module:", myModulesComboBox);
  myPanel = builder.getPanel();
  init();
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:23,代码来源:CreateLibraryFromFilesAction.java


示例7: createCustomPanel

import com.intellij.util.ui.FormBuilder; //导入依赖的package包/类
@Nullable
@Override
protected JComponent createCustomPanel() {
  myField2Variable = new IdentityHashMap<JTextField, TemplateVariable>();
  FormBuilder builder = FormBuilder.createFormBuilder();
  for (final TemplateVariable variable : myRepository.getTemplateVariables()) {
    if (variable.isShownOnFirstTab()) {
      JTextField field = variable.isHidden() ? new JPasswordField(variable.getValue()) : new JTextField(variable.getValue());
      myField2Variable.put(field, variable);
      installListener(field);
      JBLabel label = new JBLabel(prettifyVariableName(variable.getName()) + ":", SwingConstants.RIGHT);
      label.setAnchor(getAnchor());
      builder.addLabeledComponent(label, field);
    }
  }
  return builder.getPanel();
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:18,代码来源:GenericRepositoryEditor.java


示例8: createCustomPanel

import com.intellij.util.ui.FormBuilder; //导入依赖的package包/类
@Nullable
@Override
protected JComponent createCustomPanel() {
  myBoardComboBox = new ComboBox(300);
  myBoardLabel = new JBLabel("Board:", SwingConstants.RIGHT);
  myBoardLabel.setLabelFor(myBoardComboBox);

  myListComboBox = new ComboBox(300);
  myListLabel = new JBLabel("List:", SwingConstants.RIGHT);
  myListLabel.setLabelFor(myListComboBox);

  myAllCardsCheckBox = new JBCheckBox("Include cards not assigned to me");

  return FormBuilder.createFormBuilder()
    .addLabeledComponent(myBoardLabel, myBoardComboBox)
    .addLabeledComponent(myListLabel, myListComboBox)
    .addComponentToRightColumn(myAllCardsCheckBox)
    .getPanel();
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:20,代码来源:TrelloRepositoryEditor.java


示例9: createOptionsPanel

import com.intellij.util.ui.FormBuilder; //导入依赖的package包/类
@Nullable
@Override
public JComponent createOptionsPanel() {
  final ComboBox comboBox = new ComboBox(new Object[]{
    InspectionGadgetsBundle.message("all.levels.option"),
    InspectionGadgetsBundle.message("warn.level.and.lower.option"),
    InspectionGadgetsBundle.message("info.level.and.lower.option"),
    InspectionGadgetsBundle.message("debug.level.and.lower.option"),
    InspectionGadgetsBundle.message("trace.level.option")
  });
  comboBox.setSelectedIndex(warnLevel);
  comboBox.addActionListener(new ActionListener() {
    @Override
    public void actionPerformed(ActionEvent e) {
      warnLevel = comboBox.getSelectedIndex();
    }
  });
  final JPanel panel = new JPanel(new BorderLayout());
  panel.add(FormBuilder.createFormBuilder().addLabeledComponent(InspectionGadgetsBundle.message("warn.on.label"), comboBox).getPanel(),
            BorderLayout.NORTH);
  return panel;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:23,代码来源:StringConcatenationArgumentToLogCallInspection.java


示例10: createOptionsPanel

import com.intellij.util.ui.FormBuilder; //导入依赖的package包/类
@Override
public JComponent createOptionsPanel() {
  final JPanel panel = new JPanel(new BorderLayout());
  final ListTable table = new ListTable(new ListWrappingTableModel(questionList, InspectionGadgetsBundle
    .message("boolean.method.name.must.start.with.question.table.column.name")));
  final JPanel tablePanel = UiUtils.createAddRemovePanel(table);

  final CheckBox checkBox1 =
    new CheckBox(InspectionGadgetsBundle.message("ignore.methods.with.boolean.return.type.option"), this, "ignoreBooleanMethods");
  final CheckBox checkBox2 =
    new CheckBox(InspectionGadgetsBundle.message("ignore.methods.overriding.super.method"), this, "onlyWarnOnBaseMethods");

  panel.add(tablePanel, BorderLayout.CENTER);
  panel.add(FormBuilder.createFormBuilder().addComponent(checkBox1).addComponent(checkBox2).getPanel(), BorderLayout.SOUTH);
  return panel;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:17,代码来源:NonBooleanMethodNameMayNotStartWithQuestionInspection.java


示例11: createOptionsPanel

import com.intellij.util.ui.FormBuilder; //导入依赖的package包/类
@Override
public JComponent createOptionsPanel() {
  final JFormattedTextField valueField = prepareNumberEditor("m_limit");
  final JComboBox comboBox = new ComboBox(new Object[] {Scope.NONE, Scope.PRIVATE, Scope.PACKAGE_LOCAL, Scope.PROTECTED});
  comboBox.setRenderer(new ListCellRendererWrapper() {
    @Override
    public void customize(JList list, Object value, int index, boolean selected, boolean hasFocus) {
      if (value instanceof Scope) setText(((Scope)value).getText());
    }
  });
  comboBox.setSelectedItem(ignoreScope);
  comboBox.addActionListener(new ActionListener() {
    @Override
    public void actionPerformed(ActionEvent e) {
      ignoreScope = (Scope)comboBox.getSelectedItem();
    }
  });
  comboBox.setPrototypeDisplayValue(Scope.PROTECTED);

  final FormBuilder formBuilder = FormBuilder.createFormBuilder();
  formBuilder.addLabeledComponent(getConfigurationLabel(), valueField);
  formBuilder.addLabeledComponent(InspectionGadgetsBundle.message("constructor.visibility.option"), comboBox);
  final JPanel panel = new JPanel(new BorderLayout());
  panel.add(formBuilder.getPanel(), BorderLayout.NORTH);
  return panel;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:27,代码来源:ParametersPerConstructorInspection.java


示例12: getRBSession

import com.intellij.util.ui.FormBuilder; //导入依赖的package包/类
public String getRBSession(String server) {
    JPasswordField pf = new JPasswordField();
    pf.grabFocus();
    JTextField username = new JTextField();
    JPanel panel = FormBuilder.createFormBuilder()
            .addLabeledComponent("User Name:", username)
            .addLabeledComponent("Password:", pf)
            .getPanel();
    int okCxl = JOptionPane.showConfirmDialog(null, panel, "Enter Password", JOptionPane.OK_CANCEL_OPTION, JOptionPane.PLAIN_MESSAGE);

    if (okCxl == JOptionPane.OK_OPTION) {
        String password = new String(pf.getPassword());
        try {
            String cookie = ReviewBoardClient.login(server, username.getText(), password);
            if (cookie != null) {
                getSettings().getState().cookie = cookie;
                return cookie;
            }
        } catch (Exception e1) {
            JOptionPane.showMessageDialog(null, e1.getMessage());
        }
    }
    return null;
}
 
开发者ID:kaneg,项目名称:reviewboard-plugin-for-idea,代码行数:25,代码来源:ReviewBoardSettings.java


示例13: createCustomPanel

import com.intellij.util.ui.FormBuilder; //导入依赖的package包/类
@Nullable
@Override
protected JComponent createCustomPanel() {
  myProjectLabel = new JBLabel("Project:", SwingConstants.RIGHT);
  myProjectCombobox = new ComboBox(200);
  myProjectCombobox.addItemListener(new ItemListener() {
    @Override
    public void itemStateChanged(final ItemEvent e) {
      updateFilters();
    }
  });
  installListener(myProjectCombobox);
  myFilterLabel = new JBLabel("Filter:", SwingConstants.RIGHT);
  myFilterCombobox = new ComboBox(200);
  installListener(myFilterCombobox);
  updateProjects();
  return FormBuilder.createFormBuilder().addLabeledComponent(myProjectLabel, myProjectCombobox)
    .addLabeledComponent(myFilterLabel, myFilterCombobox).getPanel();
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:20,代码来源:MantisRepositoryEditor.java


示例14: createCustomPanel

import com.intellij.util.ui.FormBuilder; //导入依赖的package包/类
@Nullable
@Override
protected JComponent createCustomPanel() {
    myUseNTLM = new JBCheckBox("Use NTLM Authentication");
    installListener(myUseNTLM);

    myHostLabel = new JBLabel("Host:", SwingConstants.RIGHT);
    myHost = new JTextField();
    myHost.setEnabled(false);
    installListener(myHost);

    myDomainLabel = new JBLabel("Domain:", SwingConstants.RIGHT);
    myDomain = new JTextField();
    myDomain.setEnabled(false);
    installListener(myDomain);

    return FormBuilder.createFormBuilder().addComponentToRightColumn(myUseNTLM, UIUtil.LARGE_VGAP).addLabeledComponent(myHostLabel, myHost)
            .addLabeledComponent(myDomainLabel, myDomain).getPanel();
}
 
开发者ID:switchfly,项目名称:targetprocess-intellij-plugin,代码行数:20,代码来源:TargetProcessRepositoryEditor.java


示例15: updateBuilderWithPrincipalData

import com.intellij.util.ui.FormBuilder; //导入依赖的package包/类
@SuppressWarnings("MethodMayBeStatic")
private FormBuilder updateBuilderWithPrincipalData(FormBuilder builder, X500Principal principal) {
  builder = builder.setIndent(IdeBorderFactory.TITLED_BORDER_INDENT);
  for (String field : principal.getName().split(",")) {
    field = field.trim();
    String[] parts = field.split("=", 2);
    if (parts.length != 2) {
      continue;
    }

    String name = parts[0];
    String value = parts[1];

    String longName = FIELD_ABBREVIATIONS.get(name.toUpperCase());
    if (longName == null) {
      continue;
    }

    builder = builder.addLabeledComponent(String.format("<html>%s (<b>%s</b>)</html>", longName, name), new JBLabel(value));
  }
  return builder.setIndent(0);
}
 
开发者ID:consulo,项目名称:consulo-tasks,代码行数:23,代码来源:UntrustedCertificateWarningDialog.java


示例16: CertificateInfoPanel

import com.intellij.util.ui.FormBuilder; //导入依赖的package包/类
public CertificateInfoPanel(@Nonnull X509Certificate certificate) {
  myCertificateWrapper = new CertificateWrapper(certificate);
  setLayout(new BorderLayout());

  FormBuilder builder = FormBuilder.createFormBuilder();

  // I'm not using separate panels and form builders to preserve alignment of labels
  updateBuilderWithTitle(builder, "Issued To");
  updateBuilderWithPrincipalData(builder, myCertificateWrapper.getSubjectFields());
  updateBuilderWithTitle(builder, "Issued By");
  updateBuilderWithPrincipalData(builder, myCertificateWrapper.getIssuerFields());
  updateBuilderWithTitle(builder, "Validity Period");
  String notBefore = DATE_FORMAT.format(myCertificateWrapper.getNotBefore());
  String notAfter = DATE_FORMAT.format(myCertificateWrapper.getNotAfter());
  builder = builder
    .setIndent(IdeBorderFactory.TITLED_BORDER_INDENT)
    .addLabeledComponent("Valid from:", createColoredComponent(notBefore, "not yet valid", myCertificateWrapper.isNotYetValid()))
    .addLabeledComponent("Valid until:", createColoredComponent(notAfter, "expired", myCertificateWrapper.isExpired()));
  builder.setIndent(0);
  updateBuilderWithTitle(builder, "Fingerprints");
  builder.setIndent(IdeBorderFactory.TITLED_BORDER_INDENT);
  builder.addLabeledComponent("SHA-256:", getTextPane(formatHex(myCertificateWrapper.getSha256Fingerprint())));
  builder.addLabeledComponent("SHA-1:", getTextPane(formatHex(myCertificateWrapper.getSha1Fingerprint())));
  add(builder.getPanel(), BorderLayout.NORTH);
}
 
开发者ID:consulo,项目名称:consulo,代码行数:26,代码来源:CertificateInfoPanel.java


示例17: createNorthPanel

import com.intellij.util.ui.FormBuilder; //导入依赖的package包/类
protected JComponent createNorthPanel() {
  myNameField = new EditorTextField("");

  String qualifiedName = getQualifiedName();
  myTfPackage = new PackageNameReferenceEditorCombo(qualifiedName, myProject, RECENTS_KEY, RefactoringBundle.message("choose.destination.package"));
  myTfPackage.setTextFieldPreferredWidth(Math.max(qualifiedName.length() + 5, 40));
  myPackageLabel.setText(RefactoringBundle.message("destination.package"));
  myPackageLabel.setLabelFor(myTfPackage);
  if (myDoClone) {
    myTfPackage.setVisible(false);
    myPackageLabel.setVisible(false);
  }

  final JLabel label = new JLabel(RefactoringBundle.message("target.destination.folder"));
  final boolean isMultipleSourceRoots = ProjectRootManager.getInstance(myProject).getContentSourceRoots().length > 1;
  myDestinationCB.setVisible(!myDoClone && isMultipleSourceRoots);
  label.setVisible(!myDoClone && isMultipleSourceRoots);
  label.setLabelFor(myDestinationCB);

  return FormBuilder.createFormBuilder()
    .addComponent(myInformationLabel)
    .addLabeledComponent(RefactoringBundle.message("copy.files.new.name.label"), myNameField, UIUtil.LARGE_VGAP)
    .addLabeledComponent(myPackageLabel, myTfPackage)
    .addLabeledComponent(label, myDestinationCB)
    .getPanel();
}
 
开发者ID:consulo,项目名称:consulo-java,代码行数:27,代码来源:CopyClassDialog.java


示例18: createNorthPanel

import com.intellij.util.ui.FormBuilder; //导入依赖的package包/类
protected JComponent createNorthPanel() {
  myNameField = new NameSuggestionsField(myProject);

  FormBuilder formBuilder = FormBuilder.createFormBuilder()
    .addLabeledComponent(RefactoringBundle.message("anonymousToInner.class.name.label.text"), myNameField);

  if(!myShowCanBeStatic) {
    myCbMakeStatic = new NonFocusableCheckBox(RefactoringBundle.message("anonymousToInner.make.class.static.checkbox.text"));
    myCbMakeStatic.setSelected(true);
    formBuilder.addComponent(myCbMakeStatic);
  }

  return formBuilder.getPanel();
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:15,代码来源:AnonymousToInnerDialog.java


示例19: createNorthPanel

import com.intellij.util.ui.FormBuilder; //导入依赖的package包/类
protected JComponent createNorthPanel() {
  myNameField = new EditorTextField("");

  String qualifiedName = getQualifiedName();
  myTfPackage = new PackageNameReferenceEditorCombo(qualifiedName, myProject, RECENTS_KEY, RefactoringBundle.message("choose.destination.package"));
  myTfPackage.setTextFieldPreferredWidth(Math.max(qualifiedName.length() + 5, 40));
  myPackageLabel.setText(RefactoringBundle.message("destination.package"));
  myPackageLabel.setLabelFor(myTfPackage);
  if (myDoClone) {
    myTfPackage.setVisible(false);
    myPackageLabel.setVisible(false);
  }

  final JLabel label = new JLabel(RefactoringBundle.message("target.destination.folder"));
  final boolean isMultipleSourceRoots = JavaProjectRootsUtil.getSuitableDestinationSourceRoots(myProject).size() > 1;
  myDestinationCB.setVisible(!myDoClone && isMultipleSourceRoots);
  label.setVisible(!myDoClone && isMultipleSourceRoots);
  label.setLabelFor(myDestinationCB);

  final JPanel panel = new JPanel(new BorderLayout());
  panel.add(myOpenInEditorCb, BorderLayout.EAST);
  return FormBuilder.createFormBuilder()
    .addComponent(myInformationLabel)
    .addLabeledComponent(RefactoringBundle.message("copy.files.new.name.label"), myNameField, UIUtil.LARGE_VGAP)
    .addLabeledComponent(myPackageLabel, myTfPackage)
    .addLabeledComponent(label, myDestinationCB)
    .addComponent(panel)
    .getPanel();
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:30,代码来源:CopyClassDialog.java


示例20: createNorthPanel

import com.intellij.util.ui.FormBuilder; //导入依赖的package包/类
@Override
protected JComponent createNorthPanel() {
  String currentName = myLibraryRootsComponent.getLibraryEditor().getName();
  myNameField = new JTextField(currentName);
  myNameField.selectAll();

  FormBuilder formBuilder = FormBuilder.createFormBuilder().addLabeledComponent("&Name:", myNameField);
  addNorthComponents(formBuilder);
  return formBuilder.addVerticalGap(10).getPanel();
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:11,代码来源:LibraryEditorDialogBase.java



注:本文中的com.intellij.util.ui.FormBuilder类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java CastMediaOptions类代码示例发布时间:2022-05-22
下一篇:
Java Select类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap