Update of /cvsroot/firebug/firebug/project/zaurus/vu/isis/nest/zaurus
In directory sc8-pr-cvs1:/tmp/cvs-serv24414/vu/isis/nest/zaurus
Modified Files:
ZMain.java
Log Message:
Starting work in zaurus widget set.
Index: ZMain.java
===================================================================
RCS file: /cvsroot/firebug/firebug/project/zaurus/vu/isis/nest/zaurus/ZMain.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** ZMain.java 8 Jul 2003 20:53:49 -0000 1.1
--- ZMain.java 16 Jul 2003 15:55:43 -0000 1.2
***************
*** 24,27 ****
--- 24,53 ----
//zf.pack();
zf.show();
+
+ System.out.println(zf.getInsets());
+
+ Insets insets = zf.getInsets();
+
+ /* This will all have to be moved to a getDisplayable()
+ * method.
+ */
+ int width = zf.getWidth();
+ int height = zf.getHeight();
+
+ int cwidth = width - (insets.right + insets.left + 25);
+ int cheight = height - (insets.top + insets.bottom + 25);
+
+ System.out.println(cwidth +", " + cheight);
+
+ Canvas canvas = new Canvas();
+ canvas.setSize(cwidth,cheight);
+ Color color = new Color(1,0,0);
+ canvas.setBackground(color);
+
+ panel.add(canvas);
+
+ zf.repaint();
+
+
}
}
|