Example usage for javax.swing JSeparator setMinimumSize

List of usage examples for javax.swing JSeparator setMinimumSize

Introduction

In this page you can find the example usage for javax.swing JSeparator setMinimumSize.

Prototype

@BeanProperty(description = "The minimum size of the component.")
public void setMinimumSize(Dimension minimumSize) 

Source Link

Document

Sets the minimum size of this component to a constant value.

Usage

From source file:net.sourceforge.squirrel_sql.client.preferences.UpdatePreferencesPanel.java

private JSeparator getSep() {
    JSeparator sep = new JSeparator(SwingConstants.HORIZONTAL);
    // separators need preferred size in GridBagLayout
    sep.setPreferredSize(new Dimension(100, 20));
    sep.setMinimumSize(new Dimension(100, 20));
    return sep;//from   w ww.j  a v  a  2 s.  c  om
}