749
|
1 |
"{ NameSpace: CodingExamples_GUI }"
|
|
2 |
|
|
3 |
ApplicationModel subclass:#JavaAppletDemo1
|
|
4 |
instanceVariableNames:''
|
|
5 |
classVariableNames:''
|
|
6 |
poolDictionaries:''
|
|
7 |
category:'examples-Java-Applets'
|
|
8 |
!
|
|
9 |
|
|
10 |
!JavaAppletDemo1 class methodsFor:'documentation'!
|
|
11 |
|
|
12 |
documentation
|
|
13 |
"
|
|
14 |
Simple app using a java applet
|
|
15 |
|
|
16 |
[author:]
|
|
17 |
Claus Gittinger (cg@betti)
|
|
18 |
"
|
|
19 |
!
|
|
20 |
|
|
21 |
examples
|
|
22 |
"
|
|
23 |
examples to be added.
|
|
24 |
[exBegin]
|
|
25 |
JavaAppletDemo1 open
|
|
26 |
[exEnd]
|
|
27 |
"
|
|
28 |
! !
|
|
29 |
|
|
30 |
!JavaAppletDemo1 class methodsFor:'interface specs'!
|
|
31 |
|
|
32 |
windowSpec
|
|
33 |
"this window spec was automatically generated by the ST/X UIPainter"
|
|
34 |
|
|
35 |
"do not manually edit this - the painter/builder may not be able to
|
|
36 |
handle the specification if its corrupted."
|
|
37 |
|
|
38 |
"
|
|
39 |
UIPainter new openOnClass:CodingExamples_GUI::JavaAppletDemo1 andSelector:#windowSpec
|
|
40 |
CodingExamples_GUI::JavaAppletDemo1 new openInterface:#windowSpec
|
|
41 |
"
|
|
42 |
"CodingExamples_GUI::JavaAppletDemo1 open"
|
|
43 |
|
|
44 |
<resource: #canvas>
|
|
45 |
|
|
46 |
^
|
|
47 |
|
|
48 |
#(#FullSpec
|
|
49 |
#'window:'
|
|
50 |
#(#WindowSpec
|
|
51 |
#'name:' 'standardSystemView'
|
|
52 |
#'layout:' #(#LayoutFrame 216 0 173 0 572 0 657 0)
|
|
53 |
#'label:' 'unnamed canvas'
|
|
54 |
#'min:' #(#Point 10 10)
|
|
55 |
#'max:' #(#Point 1280 1024)
|
|
56 |
#'bounds:' #(#Rectangle 216 173 573 658)
|
|
57 |
#'usePreferredExtent:' false
|
|
58 |
)
|
|
59 |
#'component:'
|
|
60 |
#(#SpecCollection
|
|
61 |
#'collection:'
|
|
62 |
#(
|
|
63 |
#(#LabelSpec
|
|
64 |
#'name:' 'label1'
|
|
65 |
#'layout:' #(#LayoutFrame 0 0.0 7 0 0 1.0 48 0)
|
|
66 |
#'label:' 'Java applet example'
|
|
67 |
#'style:' #(#FontDescription #times #bold #roman 18)
|
|
68 |
)
|
|
69 |
#(#ActionButtonSpec
|
|
70 |
#'name:' 'actionButton1'
|
|
71 |
#'layout:' #(#AlignmentOrigin 179 0 -14 1 0.5 1)
|
|
72 |
#'label:' 'dismiss'
|
|
73 |
#'model:' #closeRequest
|
|
74 |
)
|
|
75 |
#(#ViewSpec
|
|
76 |
#'name:' 'view1'
|
|
77 |
#'layout:' #(#LayoutFrame 4 0.0 60 0.0 -4 1.0 -60 1.0)
|
|
78 |
#'component:'
|
|
79 |
#(#SpecCollection
|
|
80 |
#'collection:'
|
|
81 |
#(
|
|
82 |
#(#JavaAppletComponentSpec
|
|
83 |
#'name:' 'javaAppletComponent2'
|
|
84 |
#'layout:' #(#LayoutFrame 1 0.0 1 0.0 -1 1.0 -1 1.0)
|
|
85 |
#'codeURL:' 'ArcTest.class'
|
|
86 |
#'codeBaseURL:' 'file:examples/ArcTest'
|
|
87 |
#'level:' -1
|
|
88 |
)
|
|
89 |
)
|
|
90 |
)
|
|
91 |
#'level:' -1
|
|
92 |
)
|
|
93 |
)
|
|
94 |
)
|
|
95 |
)
|
|
96 |
|
|
97 |
"Modified: / 30.1.1998 / 05:03:29 / cg"
|
|
98 |
! !
|
|
99 |
|
|
100 |
!JavaAppletDemo1 class methodsFor:'documentation'!
|
|
101 |
|
|
102 |
version
|
|
103 |
^ '$Id$'
|
|
104 |
! ! |