src/examples/JavaAppletDemo3.st
branchjk_new_structure
changeset 1573 38d044a80b88
parent 1572 e966fdad0a23
child 1574 e1a4ae7084f4
equal deleted inserted replaced
1572:e966fdad0a23 1573:38d044a80b88
     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 
       
    12 documentation
       
    13 "
       
    14     Java Reversi app
       
    15     This wrapps a Java Reversi Game application into a smalltalk view.
       
    16 
       
    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 "
       
    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'
       
    68                     #'codeBaseURL:' 'file:examples/KReversi'
       
    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
       
    81     ^ '$Header: /home/jv/Projects/SmalltalkX/repositories/cvs/stx/libjava/examples/JavaAppletDemo3.st,v 1.3 1999/12/23 18:07:26 cg Exp $'
       
    82 ! !