Example usage for javax.swing.text JTextComponent getName

List of usage examples for javax.swing.text JTextComponent getName

Introduction

In this page you can find the example usage for javax.swing.text JTextComponent getName.

Prototype

public String getName() 

Source Link

Document

Gets the name of the component.

Usage

From source file:org.rockyroadshub.planner.core.gui.calendar.FormPane.java

private static boolean isEmpty(JTextComponent comp) {
    boolean b = StringUtils.isBlank(comp.getText());
    if (b) {// ww  w. jav  a2s  .c  o m
        MainFrame.showErrorDialog(comp.getName() + " is empty.");
    }
    return b;
}