public class FileFunctions.LengthWarner extends Object implements DocumentListener
Modifier and Type | Field and Description |
---|---|
protected JTextComponent |
component |
protected Color |
normal |
protected Color |
warn |
protected int |
width |
Constructor and Description |
---|
LengthWarner(int width,
JTextComponent component) |
Modifier and Type | Method and Description |
---|---|
void |
changedUpdate(DocumentEvent e) |
void |
insertUpdate(DocumentEvent e) |
void |
removeUpdate(DocumentEvent e) |
void |
updateColor() |
protected int width
protected JTextComponent component
protected Color normal
protected Color warn
public LengthWarner(int width, JTextComponent component)
public void changedUpdate(DocumentEvent e)
changedUpdate
in interface DocumentListener
public void insertUpdate(DocumentEvent e)
insertUpdate
in interface DocumentListener
public void removeUpdate(DocumentEvent e)
removeUpdate
in interface DocumentListener
public void updateColor()
Copyright © 2015–2022 SciJava. All rights reserved.