Java JTextComponent fillWith(String value, JTextComponent... fields)

Here you can find the source of fillWith(String value, JTextComponent... fields)

Description

fill With

License

Open Source License

Declaration

public static void fillWith(String value, JTextComponent... fields) 

Method Source Code

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

import javax.swing.text.JTextComponent;

public class Main {
    public static void fillWith(String value, JTextComponent... fields) {
        for (JTextComponent field : fields) {
            field.setText(value);/* w w w . j av  a 2s  .  c om*/
        }
    }
}

Related

  1. clear(JTextComponent... fields)
  2. currentLineChanged(final JTextComponent c)
  3. enableJTextField(JTextComponent component, boolean enable, Color color)
  4. ensureCustomBackgroundStored(JTextComponent comp)
  5. ensureCustomBackgroundStored(JTextComponent comp)
  6. getAdjustedClickCount(JTextComponent comp, MouseEvent e)
  7. getCurrentTextBlock(JTextComponent textComponent)
  8. getNumberOfLines(final JTextComponent component)
  9. getParagraphElement(JTextComponent c, int offs)