RasPi/GroundStation/v2/DisplayController.java

26 lines
555 B
Java
Raw Normal View History

2015-03-02 14:45:13 -07:00
import javax.swing.*;
import java.awt.event.*;
class DisplayController.java extends JPanel implements ActionListener {
private MessageContent source = new MessageContent();
public DisplayController() {
setBackground( Color.DARK_GRAY );
setPerferredSize( new Dimension( 0, 100 ) );
}
public void paintComponent( Graphics g ) {
super.paintComponent( g );
g.setColor( Color.LIGHT_GRAY );
}
/**
*
*/
public void actionPerformed( ActionEvent evt ) {
redraw();
}
}