01: package gnu.jemacs.swing;
02:
03: import gnu.jemacs.buffer.EWindow;
04:
05: import javax.swing.text.StyledDocument;
06: import java.awt.*;
07:
08: // Any point to this now?
09: public class Modeline extends javax.swing.JTextPane {
10: EWindow window;
11:
12: public Modeline(EWindow window, StyledDocument modelineDocument) {
13: super (modelineDocument);
14: this .window = window;
15: this .setBackground(Color.lightGray);
16: }
17:
18: public Dimension getMinimumSize() {
19: return getPreferredSize();
20: }
21:
22: public Dimension getMaximumSize() {
23: return getPreferredSize();
24: }
25: }
|