Example usage for javax.swing.border CompoundBorder CompoundBorder

List of usage examples for javax.swing.border CompoundBorder CompoundBorder

Introduction

In this page you can find the example usage for javax.swing.border CompoundBorder CompoundBorder.

Prototype

public CompoundBorder() 

Source Link

Document

Creates a compound border with null outside and inside borders.

Usage

From source file:com.prezerak.windmill.gui.AveragesPanel.java

private void createChartPanel() {
    // TODO Auto-generated method stub
    if (chartPanel == null) {
        chartPanel = new ChartPanel(chart);
        chartPanel.setBorder(new CompoundBorder());
        add(chartPanel, BorderLayout.CENTER);
    }// ww w.  j  a va2  s  . co m

    if (chart != null)
        chartPanel.setChart(chart);
}