/[gzz]/gzz/lava/gzz/loom/SimpleView.java
ViewVC logotype

Diff of /gzz/lava/gzz/loom/SimpleView.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.8 by Vegai, Sat Feb 22 13:29:20 2003 UTC revision 1.9 by Vegai, Sat Feb 22 13:32:51 2003 UTC
# Line 69  public class SimpleView implements View Line 69  public class SimpleView implements View
69      }      }
70    
71      public static void main(String[] args) {      public static void main(String[] args) {
72          GraphicsAPI api = GraphicsAPI.getInstance();          final Shower s = new Shower() {
         api.startUpdateManager(null);  
   
         Shower s = new Shower() {  
73                  Screen screen;                  Screen screen;
74                  public void setScreen(Screen s) {                  public void setScreen(Screen s) {
75                      this.screen = s;                      this.screen = s;
# Line 83  public class SimpleView implements View Line 80  public class SimpleView implements View
80                  }                  }
81                  public void chg() {}                  public void chg() {}
82              };              };
83          Binder b = new Binder() {          final Binder b = new Binder() {
84                  public void keystroke(String s) {}                  public void keystroke(String s) {}
85                  public void mouse(MouseEvent m) {}                  public void mouse(MouseEvent m) {}
86                  public void setScreen(Screen s) {}                  public void setScreen(Screen s) {}
# Line 91  public class SimpleView implements View Line 88  public class SimpleView implements View
88                  public void windowClosed() {}                  public void windowClosed() {}
89              };              };
90    
91          Screen scr = new Screen(api.createWindow(), b, s);          final GraphicsAPI api = GraphicsAPI.getInstance();
92          AbstractUpdateManager.addWindow(scr);          api.startUpdateManager(new Runnable() {
93          scr.window.setLocation(0, 0, 300, 300);                  public void run() {
94          AbstractUpdateManager.chg();                      Screen scr = new Screen(api.createWindow(), b, s);
95                        AbstractUpdateManager.addWindow(scr);
96                        scr.window.setLocation(0, 0, 300, 300);
97                        AbstractUpdateManager.chg();
98                    }
99                });
100      }      }
101  }  }

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26