Java Code Examples for com.intellij.ui.components.JBScrollPane#setMinimumSize()

The following examples show how to use com.intellij.ui.components.JBScrollPane#setMinimumSize() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SimpleBaseDialog.java    From PackageTemplates with Apache License 2.0 5 votes vote down vote up
@Override
protected JComponent createCenterPanel() {
    panel = new JPanel(createLayout());
    buildView();

    JBScrollPane scrollPane = new JBScrollPane(panel);
    scrollPane.setMinimumSize(getMinSizeDimension());
    return scrollPane;
}
 
Example 2
Source File: BaseDialog.java    From PackageTemplates with Apache License 2.0 5 votes vote down vote up
@Override
protected JComponent createCenterPanel() {
    panel = new JPanel();
    JBScrollPane scrollPane = new JBScrollPane(panel);
    panel.setBorder(new EmptyBorder(PADDING, PADDING, PADDING, PADDING));
    scrollPane.setMinimumSize(new Dimension(MIN_WIDTH, MIN_HEIGHT));
    return scrollPane;
}
 
Example 3
Source File: CustomPathDialog.java    From PackageTemplates with Apache License 2.0 5 votes vote down vote up
@Override
protected JComponent createCenterPanel() {
    panel = new JPanel();
    JBScrollPane scrollPane = new JBScrollPane(panel);
    scrollPane.setMinimumSize(new Dimension(MIN_WIDTH, MIN_HEIGHT));
    return scrollPane;
}
 
Example 4
Source File: SelectBinaryFileDialog.java    From PackageTemplates with Apache License 2.0 5 votes vote down vote up
@Override
protected JComponent createCenterPanel() {
    presenter = new SelectBinaryFilePresenterImpl(this);
    panel = new JPanel();
    panel.setLayout(new MigLayout(new LC().gridGap("0", "8pt")));

    render();

    JBScrollPane scrollPane = new JBScrollPane(panel);
    scrollPane.setMinimumSize(new Dimension(600, 200));
    return scrollPane;
}
 
Example 5
Source File: WriteRulesDialog.java    From PackageTemplates with Apache License 2.0 5 votes vote down vote up
@Override
protected JComponent createCenterPanel() {
    panel = new JPanel();
    JBScrollPane scrollPane = new JBScrollPane(panel);
    scrollPane.setMinimumSize(new Dimension(MIN_WIDTH, MIN_HEIGHT));
    return scrollPane;
}
 
Example 6
Source File: RegexpHelperDialog.java    From PackageTemplates with Apache License 2.0 5 votes vote down vote up
@Override
protected JComponent createCenterPanel() {
    setModal(false);
    panel = new JPanel();
    JBScrollPane scrollPane = new JBScrollPane(panel);
    scrollPane.setMinimumSize(new Dimension(MIN_WIDTH, MIN_HEIGHT));
    return scrollPane;
}
 
Example 7
Source File: TextInjectionDialog.java    From PackageTemplates with Apache License 2.0 5 votes vote down vote up
@Override
protected JComponent createCenterPanel() {
    panel = new JPanel();
    JBScrollPane scrollPane = new JBScrollPane(panel);
    scrollPane.setMinimumSize(new Dimension(MIN_WIDTH, MIN_HEIGHT));
    return scrollPane;
}