Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//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("");
        }
    }

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