use of com.intellij.ui.components.JBLabel in project intellij-community by JetBrains.
the class GitCompareBranchesLogPanel method layoutCommitListPanel.
private JPanel layoutCommitListPanel(@NotNull String currentBranch, boolean forward) {
String desc = makeDescription(currentBranch, forward);
JPanel bth = new JPanel(new BorderLayout());
JBLabel descriptionLabel = new JBLabel(desc, UIUtil.ComponentStyle.SMALL);
descriptionLabel.setBorder(JBUI.Borders.emptyBottom(5));
bth.add(descriptionLabel, BorderLayout.NORTH);
bth.add(forward ? myHeadToBranchListPanel : myBranchToHeadListPanel);
return bth;
}
use of com.intellij.ui.components.JBLabel in project intellij-community by JetBrains.
the class MavenEnvironmentForm method createUIComponents.
private void createUIComponents() {
mavenHomeField = new TextFieldWithHistory();
mavenHomeField.setHistorySize(-1);
final ArrayList<String> foundMavenHomes = new ArrayList<>();
foundMavenHomes.add(MavenServerManager.BUNDLED_MAVEN_2);
foundMavenHomes.add(MavenServerManager.BUNDLED_MAVEN_3);
final File mavenHomeDirectory = MavenUtil.resolveMavenHomeDirectory(null);
if (mavenHomeDirectory != null) {
foundMavenHomes.add(FileUtil.toSystemIndependentName(mavenHomeDirectory.getPath()));
}
mavenHomeField.setHistory(foundMavenHomes);
mavenHomeComponent = LabeledComponent.create(new ComponentWithBrowseButton<>(mavenHomeField, null), "Maven &home directory");
final JBLabel versionLabel = new JBLabel();
versionLabel.setOpaque(true);
versionLabel.setVerticalAlignment(SwingConstants.TOP);
versionLabel.setVerticalTextPosition(SwingConstants.TOP);
mavenVersionLabelComponent = LabeledComponent.create(versionLabel, "");
}
use of com.intellij.ui.components.JBLabel in project intellij-community by JetBrains.
the class ShelfProjectConfigurationPanel method createStoreBaseRevisionOption.
private JComponent createStoreBaseRevisionOption() {
final JBLabel noteLabel = new JBLabel("The base content of files larger than " + ourMaximumFileForBaseRevisionSize / 1000 + "K will not be stored");
noteLabel.setComponentStyle(UIUtil.ComponentStyle.SMALL);
noteLabel.setFontColor(UIUtil.FontColor.BRIGHTER);
noteLabel.setBorder(JBUI.Borders.empty(2, 25, 5, 0));
final JPanel panel = new JPanel(new BorderLayout());
panel.add(myBaseRevisionTexts, BorderLayout.NORTH);
panel.add(noteLabel, BorderLayout.SOUTH);
return panel;
}
use of com.intellij.ui.components.JBLabel in project intellij-community by JetBrains.
the class ShelfStorageConfigurationDialog method createNorthPanel.
@Nullable
@Override
protected JComponent createNorthPanel() {
JPanel contentPanel = new JPanel(new BorderLayout(DEFAULT_HGAP, DEFAULT_VGAP));
JBLabel label = new JBLabel("Store shelves in:");
contentPanel.add(label, BorderLayout.NORTH);
JPanel buttonPanel = new JPanel(new BorderLayout(DEFAULT_HGAP, DEFAULT_VGAP));
buttonPanel.setBorder(JBUI.Borders.emptyLeft(20));
buttonPanel.add(createCustomShelveLocationPanel(), BorderLayout.NORTH);
buttonPanel.add(createDefaultLocationPanel(), BorderLayout.SOUTH);
contentPanel.add(buttonPanel, BorderLayout.CENTER);
myMoveShelvesCheckBox.setAlignmentX(Component.LEFT_ALIGNMENT);
myMoveShelvesCheckBox.setBorder(null);
contentPanel.add(myMoveShelvesCheckBox, BorderLayout.SOUTH);
return contentPanel;
}
use of com.intellij.ui.components.JBLabel in project intellij-community by JetBrains.
the class VcsDirectoryConfigurationPanel method createProjectMappingDescription.
private JComponent createProjectMappingDescription() {
final JBLabel label = new JBLabel(myProjectMessage);
label.setComponentStyle(UIUtil.ComponentStyle.SMALL);
label.setFontColor(UIUtil.FontColor.BRIGHTER);
label.setBorder(JBUI.Borders.empty(2, 5, 2, 0));
return label;
}
Aggregations