Package com.intellij.ui.components

Examples of com.intellij.ui.components.JBLabel


    final JPanel panel = new JPanel(new BorderLayout(UIUtil.DEFAULT_HGAP, UIUtil.DEFAULT_VGAP));
    myList = new JBList(myNamedElements);
    myList.setCellRenderer(new FQNameCellRenderer());
    panel.add(ScrollPaneFactory.createScrollPane(myList), BorderLayout.CENTER);

    panel.add(new JBLabel(CodeInsightBundle.message("dialog.paste.on.import.text"), SMALL, BRIGHTER), BorderLayout.NORTH);

    final JPanel buttonPanel = new JPanel(new VerticalFlowLayout());
    final JButton okButton = new JButton(CommonBundle.getOkButtonText());
    getRootPane().setDefaultButton(okButton);
    buttonPanel.add(okButton);
View Full Code Here


  public JComponent createComponent() {

    if (myWrapper == null) {
      myExecutablePath = PhoneGapUtil.createPhoneGapExecutableTextField(myProject);
      myWorkingDirectory = PhoneGapUtil.createPhoneGapWorkingDirectoryField(myProject);
      myVersion = new JBLabel();
      myUIController = new UIController();
      myRepositoryStore = new RepositoryStore();
      myUIController.reset(mySettings.getState());
      phoneGapPluginsView = new PhoneGapPluginsView(myProject);
      JPanel panel = FormBuilder.createFormBuilder()
View Full Code Here

        }
      }
    };

    final TableCellRenderer customPackageRootsCellRenderer = new TableCellRenderer() {
      private final JBLabel myLabel = new JBLabel();
      private final TextFieldWithBrowseButton myTextWithBrowse = new TextFieldWithBrowseButton() {
        public void setOpaque(final boolean isOpaque) {
          // never make this renderer opaque in order not to have cell selection background between text field and browse button
        }
      };

      public Component getTableCellRendererComponent(final JTable table,
                                                     final Object value,
                                                     final boolean isSelected,
                                                     final boolean hasFocus,
                                                     final int row,
                                                     final int column) {

        if (value instanceof List) {
          //noinspection unchecked
          final List<String> paths = (List<String>)value;

          final String text = StringUtil.join(paths, new Function<String, String>() {
            public String fun(final String s) {
              return FileUtil.toSystemDependentName(s);
            }
          }, SEMICOLON);

          if (isSelected) {
            myTextWithBrowse.setText(text);
            return myTextWithBrowse;
          }
          else {
            myLabel.setText(text);
            return myLabel;
          }
        }
        else {
          myLabel.setText("");
          return myLabel;
        }
      }
    };
View Full Code Here

  TestCaseRunSettingsSection(@Nullable TestMethodRunSettingsSection testMethodSettingsSection) {
    myTestMethodSettingsSection = testMethodSettingsSection;
    myJsFileRunSettingsSection = new JsFileRunSettingsSection();
    myTestCaseNameComboBox = createComboBox();
    myLabel = new JBLabel("Case:");
    setAnchor(SwingUtils.getWiderComponent(myLabel, myJsFileRunSettingsSection));
  }
View Full Code Here

  private final TextFieldWithBrowseButton myDirectoryTextFieldWithBrowseButton;
  private final JBLabel myLabel;

  AllInDirectoryRunSettingsSection() {
    myDirectoryTextFieldWithBrowseButton = new TextFieldWithBrowseButton();
    myLabel = new JBLabel("Directory:");
    setAnchor(myLabel);
  }
View Full Code Here

  private final JBLabel myLabel;

  TestMethodRunSettingsSection() {
    myTestCaseRunSettingsSection = new TestCaseRunSettingsSection(this);
    myTestMethodNameComboBox = createComboBox();
    myLabel = new JBLabel("Method:");
    setAnchor(SwingUtils.getWiderComponent(myLabel, myTestCaseRunSettingsSection));
  }
View Full Code Here

  private final JBLabel myLabel;

  JsFileRunSettingsSection() {
    myConfigFileRunSettingsSection = new ConfigFileRunSettingsSection();
    myJsTestFileTextFieldWithBrowseButton = new TextFieldWithBrowseButton();
    myLabel = new JBLabel("JavaScript test file:");
    setAnchor(SwingUtils.getWiderComponent(myLabel, myConfigFileRunSettingsSection));
  }
View Full Code Here

      myRevealNotFoundOrIncompatible = new HyperlinkLabel();
      myRevealNotFoundOrIncompatible.setIcon(AllIcons.RunConfigurations.ConfigurationWarning);
      myRevealNotFoundOrIncompatible.setHyperlinkTarget("http://revealapp.com");

      myNotAvailable = new JBLabel("<html>" +
                                   "Reveal integration is only available for iOS applications.<br>" +
                                   "OS X targets are not yet supported.<br>" +
                                   "</html>");

      myInjectCheckBox = new JBCheckBox("Inject Reveal library on launch");
      myInstallCheckBox = new JBCheckBox("Upload Reveal library on the device if necessary");

      myInjectHint = new JBLabel(UIUtil.ComponentStyle.SMALL);
      myInstallHint = new JBLabel(UIUtil.ComponentStyle.SMALL);

      myInjectCheckBox.addItemListener(new ItemListener() {
        @Override
        public void itemStateChanged(ItemEvent e) {
          updateControls();
View Full Code Here

    @Override
    protected JComponent createContentPane() {
        final JPanel panel = new JPanel(new BorderLayout());
        panel.add(table(tableModel = new AppsTableModel(), selectedRow = new AtomicInteger(-1)),BorderLayout.CENTER);
        DefaultFormBuilder builder=new DefaultFormBuilder(new FormLayout("right:pref, 6dlu, pref","pref"));
        builder.append("Git-Integration", gitIntegration = new JBLabel());
        builder.append("Current Heroku-Git-Remote:", remoteLabel = new JBLabel());
        panel.add(builder.getPanel(), BorderLayout.NORTH);
        doUpdate();
        return panel;
    }
View Full Code Here

       
        JPanel leinPanel = new JPanel(new FormLayout("80dlu, fill:80dlu:grow, 20dlu, 80dlu", "p,p,p"));

        CellConstraints c = new CellConstraints();
        int row = 1;
        leinPanel.add(new JBLabel("Leiningen executable:"), c.xy(1,row));
        this.leinBinSelectorField = new TextFieldWithBrowseButton();
        leinBinSelectorField
                .addBrowseFolderListener("Select the Leiningen executable", "'lein' on Linux/MacOS, 'lein.bat' on Windows. ", null,
                        new FileChooserDescriptor(true, false, false, false, false, false));
        leinPanel.add(leinBinSelectorField, c.xy(2,row));

        row++;

        leinPanel.add(new JBLabel("Leiningen Home:"), c.xy(1,row));
        this.leinHomeSelectorField = new TextFieldWithBrowseButton();
        leinHomeSelectorField
                .addBrowseFolderListener("Select the Leiningen home directory", "usually at $USER_HOME/.lein", null,
                        new FileChooserDescriptor(false, true, false, false, false, false));

        leinPanel.add(leinHomeSelectorField, c.xy(2,row));
        this.overrideLeinHome = new JBCheckBox();
        leinPanel.add(overrideLeinHome, c.xy(3,row));
        leinPanel.add(new JBLabel("Override"), c.xy(4,row));

        row++;

        leinPanel.add(new JBLabel("Leiningen Jar:"), c.xy(1,row));
        this.leinJarSelectorField = new TextFieldWithBrowseButton();
        leinJarSelectorField
                .addBrowseFolderListener("Select the Leiningen Jar", "usually at $USER_HOME/.lein/self-installs/leinigen-VERSION-standalone.jar", null,
                        new FileChooserDescriptor(true, false, true, true, false, false));

        leinPanel.add(leinJarSelectorField, c.xy(2,row));
        this.overrideLeinJar = new JBCheckBox();
        leinPanel.add(overrideLeinJar, c.xy(3,row));
        leinPanel.add(new JBLabel("Override"), c.xy(4,row));

        outerPanel.add(leinPanel, BorderLayout.NORTH);

        myWatcher = new UserActivityWatcher();
        myWatcher.register(outerPanel);
View Full Code Here

TOP

Related Classes of com.intellij.ui.components.JBLabel

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.