lrgs.multistat.StatusField Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of opendcs Show documentation
Show all versions of opendcs Show documentation
A collection of software for aggregatting and processing environmental data such as from NOAA GOES satellites.
The newest version!
package lrgs.multistat;
import javax.swing.JTextField;
import java.awt.Font;
import java.awt.Color;
public class StatusField extends JTextField
{
private static Font font = new java.awt.Font("Dialog", 1, 15);
public StatusField()
{
setFont(font);
setBackground(Color.black);
setEditable(false);
setOk();
}
public void setWarning()
{
setForeground(Color.yellow);
}
public void setOk()
{
setForeground(Color.green);
}
public void setError()
{
setForeground(Color.red);
}
}