examples/CodingExamples_GUI__JavaAppletDemo3.st
author Claus Gittinger <cg@exept.de>
Thu, 22 Dec 2005 18:00:03 +0100
changeset 2125 cfa7b540ebf1
parent 749 e898eaeff091
child 2396 fadc6d7a2f5b
permissions -rw-r--r--
*** empty log message ***
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
     1
"{ NameSpace: CodingExamples_GUI }"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
     2
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
     3
ApplicationModel subclass:#JavaAppletDemo3
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
     4
	instanceVariableNames:''
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
     5
	classVariableNames:''
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
     6
	poolDictionaries:''
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
     7
	category:'examples-Java-Applets'
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
     8
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
     9
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    10
!JavaAppletDemo3 class methodsFor:'documentation'!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    11
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    12
documentation
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    13
"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    14
    Java Reversi app
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    15
    This wrapps a Java Reversi Game application into a smalltalk view.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    16
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    17
    [author:]
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    18
        Claus Gittinger (cg@betti)
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    19
"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    20
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    21
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    22
examples
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    23
"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    24
    examples to be added.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    25
                                                                [exBegin]
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    26
    JavaAppletDemo3 open
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    27
                                                                [exEnd]
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    28
"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    29
! !
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    30
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    31
!JavaAppletDemo3 class methodsFor:'interface specs'!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    32
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    33
windowSpec
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    34
    "this window spec was automatically generated by the ST/X UIPainter"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    35
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    36
    "do not manually edit this - the painter/builder may not be able to
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    37
     handle the specification if its corrupted."
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    38
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    39
    "
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    40
     UIPainter new openOnClass:CodingExamples_GUI::JavaAppletDemo3 andSelector:#windowSpec
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    41
     CodingExamples_GUI::JavaAppletDemo3 new openInterface:#windowSpec
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    42
    "
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    43
    "CodingExamples_GUI::JavaAppletDemo3 open"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    44
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    45
    <resource: #canvas>
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    46
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    47
    ^
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    48
     
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    49
       #(#FullSpec
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    50
          #'window:' 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    51
           #(#WindowSpec
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    52
              #'name:' 'Canvas'
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    53
              #'layout:' #(#LayoutFrame 216 0 173 0 533 0 563 0)
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    54
              #'label:' 'Java Reversi'
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    55
              #'min:' #(#Point 10 10)
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    56
              #'max:' #(#Point 1280 1024)
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    57
              #'bounds:' #(#Rectangle 216 173 534 564)
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    58
              #'usePreferredExtent:' false
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    59
          )
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    60
          #'component:' 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    61
           #(#SpecCollection
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    62
              #'collection:' 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    63
               #(
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    64
                 #(#JavaAppletComponentSpec
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    65
                    #'name:' 'javaAppletComponent1'
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    66
                    #'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    67
                    #'codeURL:' 'KReversi.class'
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    68
                    #'codeBaseURL:' 'file:examples/KReversi'
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    69
                    #'level:' -1
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    70
                )
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    71
              )
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    72
          )
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    73
      )
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    74
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    75
    "Modified: / 1.2.1998 / 17:48:26 / cg"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    76
! !
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    77
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    78
!JavaAppletDemo3 class methodsFor:'documentation'!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    79
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    80
version
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    81
    ^ '$Id$'
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    82
! !