Example usage for javax.swing.border TitledBorder setTitlePosition

List of usage examples for javax.swing.border TitledBorder setTitlePosition

Introduction

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

Prototype

public void setTitlePosition(int titlePosition) 

Source Link

Document

Sets the title-position of the titled border.

Usage

From source file:BorderDemo.java

void addCompForTitledBorder(TitledBorder border, String description, int justification, int position,
        Container container) {//w ww .j  a  v a  2s  .c  o m
    border.setTitleJustification(justification);
    border.setTitlePosition(position);
    addCompForBorder(border, description, container);
}