Example usage for javax.swing JFormattedTextField getName

List of usage examples for javax.swing JFormattedTextField getName

Introduction

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

Prototype

public String getName() 

Source Link

Document

Gets the name of the component.

Usage

From source file:it.txt.access.capability.revocation.wizard.panel.PanelRevocationData.java

private boolean isMissingFormattedTextField(JFormattedTextField textBox, StringBuilder missingFieldMessage) {
    if (textBox.getValue() == null) {
        if (missingFieldMessage.length() > 0)
            missingFieldMessage.append(", " + textBox.getName());
        else/*from www . j  a  v  a  2 s  .c o m*/
            missingFieldMessage.append(textBox.getName());
        return true;
    }
    return false;
}