Search in sources :

Example 1 with VerticalBox

use of com.intellij.ui.components.panels.VerticalBox in project android-parcelable-intellij-plugin by mcharmas.

the class GenerateDialog method createSouthPanel.

@Nullable
@Override
protected JComponent createSouthPanel() {
    JComponent southPanel = super.createSouthPanel();
    if (showCheckbox && southPanel != null) {
        final VerticalBox combinedView = new VerticalBox();
        combinedView.add(includeSubclasses);
        combinedView.add(southPanel);
        return combinedView;
    } else {
        return southPanel;
    }
}
Also used : VerticalBox(com.intellij.ui.components.panels.VerticalBox) JComponent(javax.swing.JComponent) Nullable(org.jetbrains.annotations.Nullable)

Example 2 with VerticalBox

use of com.intellij.ui.components.panels.VerticalBox in project intellij-community by JetBrains.

the class DebuggerLaunchingConfigurable method getComponent.

@NotNull
@Override
public JComponent getComponent() {
    myCbForceClassicVM = new StateRestoringCheckBox(DebuggerBundle.message("label.debugger.launching.configurable.force.classic.vm"));
    myCbDisableJIT = new JCheckBox(DebuggerBundle.message("label.debugger.launching.configurable.disable.jit"));
    myCbShowAlternativeSource = new JCheckBox(DebuggerBundle.message("label.debugger.general.configurable.show.alternative.source"));
    myRbSocket = new JRadioButton(DebuggerBundle.message("label.debugger.launching.configurable.socket"));
    myRbShmem = new JRadioButton(DebuggerBundle.message("label.debugger.launching.configurable.shmem"));
    myCbKillImmediately = new JCheckBox(DebuggerBundle.message("label.debugger.general.configurable.kill.immediately"));
    final ButtonGroup gr = new ButtonGroup();
    gr.add(myRbSocket);
    gr.add(myRbShmem);
    final Box box = Box.createHorizontalBox();
    box.add(myRbSocket);
    box.add(myRbShmem);
    final JPanel transportPanel = new JPanel(new BorderLayout());
    transportPanel.add(new JLabel(DebuggerBundle.message("label.debugger.launching.configurable.debugger.transport")), BorderLayout.WEST);
    transportPanel.add(box, BorderLayout.CENTER);
    VerticalBox panel = new VerticalBox();
    panel.setOpaque(false);
    panel.add(transportPanel);
    panel.add(myCbForceClassicVM);
    panel.add(myCbDisableJIT);
    panel.add(myCbShowAlternativeSource);
    panel.add(myCbKillImmediately);
    JPanel result = new JPanel(new BorderLayout());
    result.add(panel, BorderLayout.NORTH);
    return result;
}
Also used : VerticalBox(com.intellij.ui.components.panels.VerticalBox) StateRestoringCheckBox(com.intellij.ui.StateRestoringCheckBox) VerticalBox(com.intellij.ui.components.panels.VerticalBox) StateRestoringCheckBox(com.intellij.ui.StateRestoringCheckBox) NotNull(org.jetbrains.annotations.NotNull)

Aggregations

VerticalBox (com.intellij.ui.components.panels.VerticalBox)2 StateRestoringCheckBox (com.intellij.ui.StateRestoringCheckBox)1 JComponent (javax.swing.JComponent)1 NotNull (org.jetbrains.annotations.NotNull)1 Nullable (org.jetbrains.annotations.Nullable)1