298
|
1 |
"{ NameSpace: CodingExamples_GUI }"
|
|
2 |
|
|
3 |
ApplicationModel subclass:#JavaAppletDemo3
|
|
4 |
instanceVariableNames:''
|
|
5 |
classVariableNames:''
|
|
6 |
poolDictionaries:''
|
|
7 |
category:'examples-Java-Applets'
|
|
8 |
!
|
|
9 |
|
|
10 |
!JavaAppletDemo3 class methodsFor:'documentation'!
|
|
11 |
|
302
|
12 |
documentation
|
|
13 |
"
|
|
14 |
Java Reversi app
|
643
|
15 |
This wrapps a Java Reversi Game application into a smalltalk view.
|
298
|
16 |
|
302
|
17 |
[author:]
|
|
18 |
Claus Gittinger (cg@betti)
|
|
19 |
"
|
|
20 |
!
|
|
21 |
|
|
22 |
examples
|
|
23 |
"
|
|
24 |
examples to be added.
|
|
25 |
[exBegin]
|
|
26 |
JavaAppletDemo3 open
|
|
27 |
[exEnd]
|
|
28 |
"
|
298
|
29 |
! !
|
|
30 |
|
|
31 |
!JavaAppletDemo3 class methodsFor:'interface specs'!
|
|
32 |
|
|
33 |
windowSpec
|
|
34 |
"this window spec was automatically generated by the ST/X UIPainter"
|
|
35 |
|
|
36 |
"do not manually edit this - the painter/builder may not be able to
|
|
37 |
handle the specification if its corrupted."
|
|
38 |
|
|
39 |
"
|
|
40 |
UIPainter new openOnClass:CodingExamples_GUI::JavaAppletDemo3 andSelector:#windowSpec
|
|
41 |
CodingExamples_GUI::JavaAppletDemo3 new openInterface:#windowSpec
|
|
42 |
"
|
|
43 |
"CodingExamples_GUI::JavaAppletDemo3 open"
|
|
44 |
|
|
45 |
<resource: #canvas>
|
|
46 |
|
|
47 |
^
|
|
48 |
|
|
49 |
#(#FullSpec
|
|
50 |
#'window:'
|
|
51 |
#(#WindowSpec
|
|
52 |
#'name:' 'Canvas'
|
|
53 |
#'layout:' #(#LayoutFrame 216 0 173 0 533 0 563 0)
|
|
54 |
#'label:' 'Java Reversi'
|
|
55 |
#'min:' #(#Point 10 10)
|
|
56 |
#'max:' #(#Point 1280 1024)
|
|
57 |
#'bounds:' #(#Rectangle 216 173 534 564)
|
|
58 |
#'usePreferredExtent:' false
|
|
59 |
)
|
|
60 |
#'component:'
|
|
61 |
#(#SpecCollection
|
|
62 |
#'collection:'
|
|
63 |
#(
|
|
64 |
#(#JavaAppletComponentSpec
|
|
65 |
#'name:' 'javaAppletComponent1'
|
|
66 |
#'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
|
|
67 |
#'codeURL:' 'KReversi.class'
|
643
|
68 |
#'codeBaseURL:' 'file:examples/KReversi'
|
298
|
69 |
#'level:' -1
|
|
70 |
)
|
|
71 |
)
|
|
72 |
)
|
|
73 |
)
|
|
74 |
|
|
75 |
"Modified: / 1.2.1998 / 17:48:26 / cg"
|
|
76 |
! !
|
|
77 |
|
|
78 |
!JavaAppletDemo3 class methodsFor:'documentation'!
|
|
79 |
|
|
80 |
version
|
2151
|
81 |
^ '$Header: /cvs/stx/stx/libjava/examples/Attic/JavaAppletDemo3.st,v 1.4 2011-08-18 18:42:48 vrany Exp $'
|
298
|
82 |
! !
|