Java JLabel clear(JLabel... fields)

Here you can find the source of clear(JLabel... fields)

Description

clear

License

Open Source License

Declaration

public static void clear(JLabel... fields) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import javax.swing.JLabel;

import javax.swing.text.JTextComponent;

public class Main {
    public static void clear(JTextComponent... fields) {
        for (JTextComponent field : fields) {
            field.setText("");
        }//  w w  w. j a  va2  s.  c o  m
    }

    public static void clear(JLabel... fields) {
        for (JLabel field : fields) {
            field.setText("");
        }
    }
}

Related

  1. addMessageLogger(JLabel t)
  2. addParameterRow(Container container, JLabel label, Component component)
  3. ensureCustomBackgroundStored(JLabel comp)
  4. exibeMensagemTemporaria(final JLabel lblMensagem, String mensagem)
  5. extendByIcon(JLabel label, Dimension dm)
  6. findMaxLabelWidth(JLabel... jLabels)