Create JSeparator - Java Swing

Java examples for Swing:JSeparator

Introduction

JSeparator adds a separator between two components.

Create a horizontal separator. By default, the type is horizontal.

JSeparator hs = new JSeparator();

Create a vertical separator

JSeparator vs = new JSeparator(SwingConstants.VERTICAL);

Related Tutorials