KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > thinlet > drafts > DialogDemo


1 package thinlet.drafts;
2
3 import java.awt.*;
4 import thinlet.*;
5
6 public class DialogDemo {
7     
8     public void setIcon(Thinlet thinlet, Object JavaDoc dialog, Image icon) {
9         thinlet.setIcon(dialog, "icon", icon);
10     }
11     
12     public void setText(Thinlet thinlet, Object JavaDoc dialog, String JavaDoc text) {
13         thinlet.setString(dialog, "text", text);
14     }
15     
16     public void setResizable(Thinlet thinlet, Object JavaDoc dialog, boolean selected) {
17         thinlet.setBoolean(dialog, "resizable", selected);
18     }
19     
20     public void setClosable(Thinlet thinlet, Object JavaDoc dialog, boolean selected) {
21         thinlet.setBoolean(dialog, "closable", selected);
22     }
23     
24     public void setMaximizable(Thinlet thinlet, Object JavaDoc dialog, boolean selected) {
25         thinlet.setBoolean(dialog, "maximizable", selected);
26     }
27     
28     public void setIconifiable(Thinlet thinlet, Object JavaDoc dialog, boolean selected) {
29         thinlet.setBoolean(dialog, "iconifiable", selected);
30     }
31 }
Popular Tags