Java JTextField fieldSetErrorVisual(final JTextField field)

Here you can find the source of fieldSetErrorVisual(final JTextField field)

Description

field Set Error Visual

License

Open Source License

Declaration

static void fieldSetErrorVisual(final JTextField field) 

Method Source Code


//package com.java2s;
import javax.swing.BorderFactory;
import javax.swing.JTextField;

import java.awt.Color;

public class Main {
    static void fieldSetErrorVisual(final JTextField field) {
        field.setBorder(BorderFactory.createLineBorder(Color.RED));
        field.setBackground(Color.PINK);
    }//from  w  ww . j a  v a 2 s  .com
}

Related

  1. createBrowseButton(final JTextField txtInput, final Window parent, final boolean directoryBrowser)
  2. createFieldWithLabel(String label, JTextField textField)
  3. createOutputPanel(JLabel outputFileNameLabel, JButton chooseOutputFileButton, JTextField outputFileTextField, String borderTitle)
  4. dateCompleteOnlyFormat(JTextField pJTextField, KeyEvent e)
  5. doAction(JTextField textField)
  6. implyDisabled(final JCheckBox checked, final boolean checkedState, final JTextField changed)
  7. isActiveComponents(JTextField... textFields)
  8. isEmptyStr(javax.swing.JTextField input)
  9. isInHighlight(MouseEvent e, JTextField label, Highlighter h)