mirror of
https://github.com/brendanhaines/RasPi.git
synced 2024-11-10 00:54:40 -07:00
26 lines
555 B
Java
26 lines
555 B
Java
|
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();
|
||
|
}
|
||
|
}
|