JavaEmbeddedFrameView.st
author cg
Thu, 05 Feb 1998 11:10:33 +0000
changeset 311 b23c5e132b8c
parent 303 0b95d5f40bf2
child 318 8720093188f7
permissions -rw-r--r--
hardterminate javaThread, if it did not terminate after 10 tries.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
233
fc91b8aba669 intitial checkin
cg
parents:
diff changeset
     1
JavaView subclass:#JavaEmbeddedFrameView
282
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
     2
	instanceVariableNames:'codeURL codeBaseURL documentURL archiveURL parameterDictionary
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
     3
		embeddedAppletFrame applet appletID appletThread
288
d71bacb73ff7 checkin from browser
cg
parents: 286
diff changeset
     4
		infoDisplayReceiver autoSetupApplet autoStartApplet
d71bacb73ff7 checkin from browser
cg
parents: 286
diff changeset
     5
		autoDestroyApplet'
282
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
     6
	classVariableNames:'NextSequentialAppletID'
233
fc91b8aba669 intitial checkin
cg
parents:
diff changeset
     7
	poolDictionaries:''
fc91b8aba669 intitial checkin
cg
parents:
diff changeset
     8
	category:'Java-Views-Support'
fc91b8aba669 intitial checkin
cg
parents:
diff changeset
     9
!
fc91b8aba669 intitial checkin
cg
parents:
diff changeset
    10
fc91b8aba669 intitial checkin
cg
parents:
diff changeset
    11
282
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
    12
!JavaEmbeddedFrameView methodsFor:'accessing'!
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
    13
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
    14
appletID
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
    15
    "return the value of the instance variable 'appletID' (automatically generated)"
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
    16
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
    17
    ^ appletID
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
    18
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
    19
    "Created: / 28.1.1998 / 21:08:54 / cg"
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
    20
!
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
    21
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
    22
appletID:something
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
    23
    "set the value of the instance variable 'appletID' (automatically generated)"
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
    24
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
    25
    appletID := something.
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
    26
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
    27
    "Created: / 28.1.1998 / 21:08:54 / cg"
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
    28
!
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
    29
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
    30
appletThread
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
    31
    ^ appletThread
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
    32
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
    33
    "Created: / 28.1.1998 / 21:39:42 / cg"
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
    34
!
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
    35
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
    36
archiveURL:anArchiveURLString
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
    37
    archiveURL := anArchiveURLString
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
    38
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
    39
    "Created: / 28.1.1998 / 21:00:38 / cg"
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
    40
!
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
    41
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
    42
codeBaseURL:aCodeBaseURLString
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
    43
    codeBaseURL := aCodeBaseURLString
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
    44
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
    45
    "Created: / 28.1.1998 / 20:59:34 / cg"
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
    46
!
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
    47
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
    48
codeURL:aCodeURLString
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
    49
    codeURL := aCodeURLString
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
    50
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
    51
    "Created: / 28.1.1998 / 21:10:11 / cg"
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
    52
!
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
    53
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
    54
documentURL:aDocumentURLString
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
    55
    documentURL := aDocumentURLString
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
    56
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
    57
    "Created: / 28.1.1998 / 21:00:03 / cg"
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
    58
    "Modified: / 28.1.1998 / 21:00:28 / cg"
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
    59
!
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
    60
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
    61
embeddedAppletFrame
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
    62
    ^ embeddedAppletFrame
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
    63
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
    64
    "Created: / 28.1.1998 / 21:39:35 / cg"
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
    65
!
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
    66
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
    67
infoDisplayReceiver
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
    68
    "return the value of the instance variable 'infoDisplayReceiver' (automatically generated)"
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
    69
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
    70
    ^ infoDisplayReceiver
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
    71
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
    72
    "Created: / 28.1.1998 / 21:43:54 / cg"
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
    73
!
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
    74
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
    75
infoDisplayReceiver:something
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
    76
    "set the value of the instance variable 'infoDisplayReceiver' (automatically generated)"
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
    77
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
    78
    infoDisplayReceiver := something.
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
    79
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
    80
    "Created: / 28.1.1998 / 21:43:54 / cg"
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
    81
!
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
    82
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
    83
parameterDictionary:aParameterDictionary
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
    84
    parameterDictionary := aParameterDictionary
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
    85
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
    86
    "Created: / 28.1.1998 / 21:01:20 / cg"
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
    87
! !
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
    88
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
    89
!JavaEmbeddedFrameView methodsFor:'applet control'!
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
    90
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
    91
appletDESTROY
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
    92
    embeddedAppletFrame
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
    93
        perform:#'sendEvent(I)V' 
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
    94
        with:(embeddedAppletFrame class instVarNamed:'APPLET_DESTROY').
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
    95
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
    96
    "Created: / 28.1.1998 / 21:41:45 / cg"
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
    97
!
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
    98
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
    99
appletDISPOSE
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   100
    embeddedAppletFrame
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   101
        perform:#'sendEvent(I)V' 
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   102
        with:(embeddedAppletFrame class instVarNamed:'APPLET_DISPOSE').
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   103
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   104
    "Created: / 28.1.1998 / 21:41:57 / cg"
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   105
!
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   106
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   107
appletINIT
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   108
    embeddedAppletFrame
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   109
        perform:#'sendEvent(I)V' 
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   110
        with:(embeddedAppletFrame class instVarNamed:'APPLET_INIT').
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   111
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   112
    "Created: / 28.1.1998 / 21:17:51 / cg"
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   113
!
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   114
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   115
appletLOAD
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   116
    embeddedAppletFrame
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   117
        perform:#'sendEvent(I)V' 
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   118
        with:(embeddedAppletFrame class instVarNamed:'APPLET_LOAD').
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   119
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   120
    "Created: / 28.1.1998 / 21:17:37 / cg"
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   121
!
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   122
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   123
appletSTART
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   124
    embeddedAppletFrame
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   125
        perform:#'sendEvent(I)V' 
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   126
        with:(embeddedAppletFrame class instVarNamed:'APPLET_START').
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   127
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   128
    "Created: / 28.1.1998 / 21:18:01 / cg"
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   129
!
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   130
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   131
appletSTOP
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   132
    embeddedAppletFrame
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   133
        perform:#'sendEvent(I)V' 
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   134
        with:(embeddedAppletFrame class instVarNamed:'APPLET_STOP').
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   135
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   136
    "Created: / 28.1.1998 / 21:41:33 / cg"
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   137
!
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   138
288
d71bacb73ff7 checkin from browser
cg
parents: 286
diff changeset
   139
autoDestroyApplet:aBoolean
d71bacb73ff7 checkin from browser
cg
parents: 286
diff changeset
   140
    "set/clear the autoDestroy flag.
d71bacb73ff7 checkin from browser
cg
parents: 286
diff changeset
   141
     If set, the applet will be shutDown whenever the I get destroyed.
d71bacb73ff7 checkin from browser
cg
parents: 286
diff changeset
   142
     if clear, the applet is not automatically shutDown and must be
d71bacb73ff7 checkin from browser
cg
parents: 286
diff changeset
   143
     terminated by someone else.
d71bacb73ff7 checkin from browser
cg
parents: 286
diff changeset
   144
     The default is false."
d71bacb73ff7 checkin from browser
cg
parents: 286
diff changeset
   145
d71bacb73ff7 checkin from browser
cg
parents: 286
diff changeset
   146
    autoDestroyApplet := aBoolean.
d71bacb73ff7 checkin from browser
cg
parents: 286
diff changeset
   147
d71bacb73ff7 checkin from browser
cg
parents: 286
diff changeset
   148
    "Created: / 29.1.1998 / 15:18:50 / cg"
d71bacb73ff7 checkin from browser
cg
parents: 286
diff changeset
   149
    "Modified: / 29.1.1998 / 15:21:01 / cg"
d71bacb73ff7 checkin from browser
cg
parents: 286
diff changeset
   150
!
d71bacb73ff7 checkin from browser
cg
parents: 286
diff changeset
   151
d71bacb73ff7 checkin from browser
cg
parents: 286
diff changeset
   152
autoSetupApplet:aBoolean
d71bacb73ff7 checkin from browser
cg
parents: 286
diff changeset
   153
    "set/clear the autoSetup flag.
d71bacb73ff7 checkin from browser
cg
parents: 286
diff changeset
   154
     If set, the appletFrame will be setup whenever the I get realized
d71bacb73ff7 checkin from browser
cg
parents: 286
diff changeset
   155
     for the first time.
d71bacb73ff7 checkin from browser
cg
parents: 286
diff changeset
   156
     If clear, the frame is not automatically setup and must be
d71bacb73ff7 checkin from browser
cg
parents: 286
diff changeset
   157
     setup by someone else.
d71bacb73ff7 checkin from browser
cg
parents: 286
diff changeset
   158
     The default is true."
d71bacb73ff7 checkin from browser
cg
parents: 286
diff changeset
   159
d71bacb73ff7 checkin from browser
cg
parents: 286
diff changeset
   160
d71bacb73ff7 checkin from browser
cg
parents: 286
diff changeset
   161
    autoSetupApplet := aBoolean.
d71bacb73ff7 checkin from browser
cg
parents: 286
diff changeset
   162
d71bacb73ff7 checkin from browser
cg
parents: 286
diff changeset
   163
    "Created: / 29.1.1998 / 15:18:41 / cg"
d71bacb73ff7 checkin from browser
cg
parents: 286
diff changeset
   164
    "Modified: / 29.1.1998 / 20:45:37 / cg"
d71bacb73ff7 checkin from browser
cg
parents: 286
diff changeset
   165
!
d71bacb73ff7 checkin from browser
cg
parents: 286
diff changeset
   166
d71bacb73ff7 checkin from browser
cg
parents: 286
diff changeset
   167
autoStartApplet:aBoolean
d71bacb73ff7 checkin from browser
cg
parents: 286
diff changeset
   168
    "set/clear the autoStart flag.
d71bacb73ff7 checkin from browser
cg
parents: 286
diff changeset
   169
     If set, the applet will be loaded & started whenever the I get realized
d71bacb73ff7 checkin from browser
cg
parents: 286
diff changeset
   170
     for the first time.
d71bacb73ff7 checkin from browser
cg
parents: 286
diff changeset
   171
     If clear, the applet is not automatically started and must be
d71bacb73ff7 checkin from browser
cg
parents: 286
diff changeset
   172
     started by someone else.
d71bacb73ff7 checkin from browser
cg
parents: 286
diff changeset
   173
     The default is false."
d71bacb73ff7 checkin from browser
cg
parents: 286
diff changeset
   174
d71bacb73ff7 checkin from browser
cg
parents: 286
diff changeset
   175
d71bacb73ff7 checkin from browser
cg
parents: 286
diff changeset
   176
    autoStartApplet := aBoolean.
d71bacb73ff7 checkin from browser
cg
parents: 286
diff changeset
   177
d71bacb73ff7 checkin from browser
cg
parents: 286
diff changeset
   178
    "Created: / 29.1.1998 / 15:18:41 / cg"
d71bacb73ff7 checkin from browser
cg
parents: 286
diff changeset
   179
    "Modified: / 29.1.1998 / 15:20:54 / cg"
d71bacb73ff7 checkin from browser
cg
parents: 286
diff changeset
   180
!
d71bacb73ff7 checkin from browser
cg
parents: 286
diff changeset
   181
282
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   182
startApplet
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   183
    self startAppletThread.
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   184
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   185
    self appletLOAD.
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   186
    self appletINIT.
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   187
    self appletSTART
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   188
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   189
    "Modified: / 28.1.1998 / 21:30:24 / cg"
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   190
!
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   191
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   192
startAppletThread
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   193
    |appletName|
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   194
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   195
    appletThread := JavaProcess 
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   196
            for:[
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   197
                    "/ passnotifications to the documentFrame ...
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   198
                    Object informationSignal handle:[:ex |
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   199
                        JavaVM javaConsoleStream showCR:ex errorString.
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   200
                        ex proceed.
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   201
                    ] do:[
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   202
                        Object activityNotificationSignal handle:[:ex |
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   203
                            infoDisplayReceiver notNil ifTrue:[
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   204
                                infoDisplayReceiver infoDisplay:ex errorString.
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   205
                            ] ifFalse:[
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   206
                                Transcript showCR:ex errorString
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   207
                            ].
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   208
                            ex proceed.
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   209
                        ] do:[
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   210
                            [
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   211
                                embeddedAppletFrame perform:#'run()V'.
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   212
                            ] valueNowOrOnUnwindDo:[
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   213
                                appletThread terminateAllSubprocesses.
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   214
                                Transcript showCR:'JAVA applet startup finished'.
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   215
                            ]
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   216
                        ]
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   217
                    ]
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   218
                ]
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   219
            priority:(Processor activePriority - 1).
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   220
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   221
    appletName := codeURL asFilename withoutSuffix baseName.
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   222
    appletThread name:('JAVA-applet ''' , appletName , ''' [startup]').
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   223
    
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   224
    appletThread resume.
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   225
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   226
    ^ appletThread.
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   227
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   228
    "Created: / 28.1.1998 / 21:30:32 / cg"
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   229
    "Modified: / 28.1.1998 / 21:44:03 / cg"
286
da220fe69de3 applet startup & shutDown now all done here;
cg
parents: 282
diff changeset
   230
!
da220fe69de3 applet startup & shutDown now all done here;
cg
parents: 282
diff changeset
   231
da220fe69de3 applet startup & shutDown now all done here;
cg
parents: 282
diff changeset
   232
stopApplet
311
b23c5e132b8c hardterminate javaThread, if it did not terminate after 10 tries.
cg
parents: 303
diff changeset
   233
    |n n2|
286
da220fe69de3 applet startup & shutDown now all done here;
cg
parents: 282
diff changeset
   234
da220fe69de3 applet startup & shutDown now all done here;
cg
parents: 282
diff changeset
   235
    (appletThread notNil 
da220fe69de3 applet startup & shutDown now all done here;
cg
parents: 282
diff changeset
   236
    and:[appletThread isDead not])ifTrue:[
da220fe69de3 applet startup & shutDown now all done here;
cg
parents: 282
diff changeset
   237
        'EmbeddedAppletFrame [info]: send APPLET_STOP ...' infoPrintCR.
da220fe69de3 applet startup & shutDown now all done here;
cg
parents: 282
diff changeset
   238
        self appletSTOP.
da220fe69de3 applet startup & shutDown now all done here;
cg
parents: 282
diff changeset
   239
da220fe69de3 applet startup & shutDown now all done here;
cg
parents: 282
diff changeset
   240
        'EmbeddedAppletFrame [info]: send APPLET_DESTROY ...' infoPrintCR.
da220fe69de3 applet startup & shutDown now all done here;
cg
parents: 282
diff changeset
   241
        self appletDESTROY.
da220fe69de3 applet startup & shutDown now all done here;
cg
parents: 282
diff changeset
   242
da220fe69de3 applet startup & shutDown now all done here;
cg
parents: 282
diff changeset
   243
        'EmbeddedAppletFrame [info]: send APPLET_DISPOSE ...' infoPrintCR.
da220fe69de3 applet startup & shutDown now all done here;
cg
parents: 282
diff changeset
   244
        self appletDISPOSE.
da220fe69de3 applet startup & shutDown now all done here;
cg
parents: 282
diff changeset
   245
da220fe69de3 applet startup & shutDown now all done here;
cg
parents: 282
diff changeset
   246
        "/
da220fe69de3 applet startup & shutDown now all done here;
cg
parents: 282
diff changeset
   247
        "/ give it a chance to stop ...
da220fe69de3 applet startup & shutDown now all done here;
cg
parents: 282
diff changeset
   248
        "/
da220fe69de3 applet startup & shutDown now all done here;
cg
parents: 282
diff changeset
   249
        Processor yield.
311
b23c5e132b8c hardterminate javaThread, if it did not terminate after 10 tries.
cg
parents: 303
diff changeset
   250
        n2 := 0.
286
da220fe69de3 applet startup & shutDown now all done here;
cg
parents: 282
diff changeset
   251
        [appletThread isDead] whileFalse:[
da220fe69de3 applet startup & shutDown now all done here;
cg
parents: 282
diff changeset
   252
            n := 0.
da220fe69de3 applet startup & shutDown now all done here;
cg
parents: 282
diff changeset
   253
            [n < 10 and:[appletThread isDead not]] whileTrue:[
da220fe69de3 applet startup & shutDown now all done here;
cg
parents: 282
diff changeset
   254
                Delay waitForSeconds:0.1.
da220fe69de3 applet startup & shutDown now all done here;
cg
parents: 282
diff changeset
   255
                n := n + 1.
da220fe69de3 applet startup & shutDown now all done here;
cg
parents: 282
diff changeset
   256
            ].
da220fe69de3 applet startup & shutDown now all done here;
cg
parents: 282
diff changeset
   257
            appletThread isDead ifFalse:[
311
b23c5e132b8c hardterminate javaThread, if it did not terminate after 10 tries.
cg
parents: 303
diff changeset
   258
                Transcript showCR:'EmbeddedAppletFrame [info]: JAVA thread did not stop - soft terminate ...'.
286
da220fe69de3 applet startup & shutDown now all done here;
cg
parents: 282
diff changeset
   259
                appletThread terminate.
311
b23c5e132b8c hardterminate javaThread, if it did not terminate after 10 tries.
cg
parents: 303
diff changeset
   260
                n2 := n2 + 1.
b23c5e132b8c hardterminate javaThread, if it did not terminate after 10 tries.
cg
parents: 303
diff changeset
   261
                n2 > 10 ifTrue:[
b23c5e132b8c hardterminate javaThread, if it did not terminate after 10 tries.
cg
parents: 303
diff changeset
   262
                    Transcript showCR:'EmbeddedAppletFrame [info]: JAVA thread did not stop - shooting down ...'.
b23c5e132b8c hardterminate javaThread, if it did not terminate after 10 tries.
cg
parents: 303
diff changeset
   263
                    appletThread terminateNoSignal
b23c5e132b8c hardterminate javaThread, if it did not terminate after 10 tries.
cg
parents: 303
diff changeset
   264
                ]
286
da220fe69de3 applet startup & shutDown now all done here;
cg
parents: 282
diff changeset
   265
            ].
da220fe69de3 applet startup & shutDown now all done here;
cg
parents: 282
diff changeset
   266
        ].
da220fe69de3 applet startup & shutDown now all done here;
cg
parents: 282
diff changeset
   267
    ].
da220fe69de3 applet startup & shutDown now all done here;
cg
parents: 282
diff changeset
   268
    appletThread := nil
da220fe69de3 applet startup & shutDown now all done here;
cg
parents: 282
diff changeset
   269
311
b23c5e132b8c hardterminate javaThread, if it did not terminate after 10 tries.
cg
parents: 303
diff changeset
   270
    "Modified: / 5.2.1998 / 12:10:01 / cg"
286
da220fe69de3 applet startup & shutDown now all done here;
cg
parents: 282
diff changeset
   271
! !
da220fe69de3 applet startup & shutDown now all done here;
cg
parents: 282
diff changeset
   272
da220fe69de3 applet startup & shutDown now all done here;
cg
parents: 282
diff changeset
   273
!JavaEmbeddedFrameView methodsFor:'initialize / release'!
da220fe69de3 applet startup & shutDown now all done here;
cg
parents: 282
diff changeset
   274
da220fe69de3 applet startup & shutDown now all done here;
cg
parents: 282
diff changeset
   275
destroy
da220fe69de3 applet startup & shutDown now all done here;
cg
parents: 282
diff changeset
   276
    autoDestroyApplet == true ifTrue:[
da220fe69de3 applet startup & shutDown now all done here;
cg
parents: 282
diff changeset
   277
        self stopApplet
da220fe69de3 applet startup & shutDown now all done here;
cg
parents: 282
diff changeset
   278
    ].
da220fe69de3 applet startup & shutDown now all done here;
cg
parents: 282
diff changeset
   279
    super destroy.
da220fe69de3 applet startup & shutDown now all done here;
cg
parents: 282
diff changeset
   280
da220fe69de3 applet startup & shutDown now all done here;
cg
parents: 282
diff changeset
   281
    "Created: / 29.1.1998 / 15:21:45 / cg"
da220fe69de3 applet startup & shutDown now all done here;
cg
parents: 282
diff changeset
   282
    "Modified: / 29.1.1998 / 15:28:26 / cg"
da220fe69de3 applet startup & shutDown now all done here;
cg
parents: 282
diff changeset
   283
!
da220fe69de3 applet startup & shutDown now all done here;
cg
parents: 282
diff changeset
   284
da220fe69de3 applet startup & shutDown now all done here;
cg
parents: 282
diff changeset
   285
realize
da220fe69de3 applet startup & shutDown now all done here;
cg
parents: 282
diff changeset
   286
    super realize.
288
d71bacb73ff7 checkin from browser
cg
parents: 286
diff changeset
   287
 
d71bacb73ff7 checkin from browser
cg
parents: 286
diff changeset
   288
    autoSetupApplet ~~ false ifTrue:[
d71bacb73ff7 checkin from browser
cg
parents: 286
diff changeset
   289
        self setupAppletFrame
d71bacb73ff7 checkin from browser
cg
parents: 286
diff changeset
   290
    ].
286
da220fe69de3 applet startup & shutDown now all done here;
cg
parents: 282
diff changeset
   291
    autoStartApplet == true ifTrue:[
288
d71bacb73ff7 checkin from browser
cg
parents: 286
diff changeset
   292
        embeddedAppletFrame notNil ifTrue:[
d71bacb73ff7 checkin from browser
cg
parents: 286
diff changeset
   293
            self startApplet
d71bacb73ff7 checkin from browser
cg
parents: 286
diff changeset
   294
        ]
286
da220fe69de3 applet startup & shutDown now all done here;
cg
parents: 282
diff changeset
   295
    ]
da220fe69de3 applet startup & shutDown now all done here;
cg
parents: 282
diff changeset
   296
da220fe69de3 applet startup & shutDown now all done here;
cg
parents: 282
diff changeset
   297
    "Created: / 29.1.1998 / 15:21:30 / cg"
288
d71bacb73ff7 checkin from browser
cg
parents: 286
diff changeset
   298
    "Modified: / 29.1.1998 / 20:51:41 / cg"
282
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   299
! !
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   300
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   301
!JavaEmbeddedFrameView methodsFor:'private'!
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   302
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   303
setupAppletFrame
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   304
    |jMozillaAppletContextClass appletContext
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   305
     jEmbeddedAppletFrameClass 
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   306
     toolkit peer attribs id
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   307
     jCodeBaseURL jDocumentURL jArchiveURL|
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   308
288
d71bacb73ff7 checkin from browser
cg
parents: 286
diff changeset
   309
    embeddedAppletFrame notNil ifTrue:[
d71bacb73ff7 checkin from browser
cg
parents: 286
diff changeset
   310
        "/ already setup
d71bacb73ff7 checkin from browser
cg
parents: 286
diff changeset
   311
        ^ self
d71bacb73ff7 checkin from browser
cg
parents: 286
diff changeset
   312
    ].
d71bacb73ff7 checkin from browser
cg
parents: 286
diff changeset
   313
d71bacb73ff7 checkin from browser
cg
parents: 286
diff changeset
   314
    codeBaseURL isNil ifTrue:[
d71bacb73ff7 checkin from browser
cg
parents: 286
diff changeset
   315
        ^ self
d71bacb73ff7 checkin from browser
cg
parents: 286
diff changeset
   316
    ].
d71bacb73ff7 checkin from browser
cg
parents: 286
diff changeset
   317
d71bacb73ff7 checkin from browser
cg
parents: 286
diff changeset
   318
    Java startupJavaSystem.
d71bacb73ff7 checkin from browser
cg
parents: 286
diff changeset
   319
282
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   320
    jCodeBaseURL := Java as_URL:codeBaseURL.
288
d71bacb73ff7 checkin from browser
cg
parents: 286
diff changeset
   321
    documentURL notNil ifTrue:[
d71bacb73ff7 checkin from browser
cg
parents: 286
diff changeset
   322
        jDocumentURL := Java as_URL:documentURL.
d71bacb73ff7 checkin from browser
cg
parents: 286
diff changeset
   323
    ].
d71bacb73ff7 checkin from browser
cg
parents: 286
diff changeset
   324
    archiveURL notNil ifTrue:[
d71bacb73ff7 checkin from browser
cg
parents: 286
diff changeset
   325
        jArchiveURL := Java as_URL:archiveURL.
d71bacb73ff7 checkin from browser
cg
parents: 286
diff changeset
   326
    ].
282
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   327
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   328
    id := appletID.
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   329
    id isNil ifTrue:[
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   330
        NextSequentialAppletID isNil ifTrue:[
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   331
            NextSequentialAppletID := 1.
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   332
        ].
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   333
        id := NextSequentialAppletID.
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   334
        NextSequentialAppletID := NextSequentialAppletID + 1
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   335
    ].
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   336
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   337
    attribs := Dictionary new.
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   338
    width notNil ifTrue:[attribs at:'width' put:width printString].
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   339
    height notNil ifTrue:[attribs at:'height' put:height printString].
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   340
    codeURL notNil ifTrue:[attribs at:'code' put:codeURL].
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   341
    parameterDictionary notNil ifTrue:[
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   342
        attribs declareAllFrom:parameterDictionary
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   343
    ].
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   344
    attribs := Java as_Hashtable:attribs.
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   345
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   346
    "/ this makes it a modzilla frame ...
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   347
    jMozillaAppletContextClass := Java classForName:'netscape.applet.MozillaAppletContext'.
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   348
    jMozillaAppletContextClass isNil ifTrue:[
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   349
        self warn:'no netscape.applet.MozillaAppletContext class'.
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   350
        ^ false
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   351
    ].
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   352
    appletContext := jMozillaAppletContextClass new.
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   353
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   354
    jEmbeddedAppletFrameClass := Java classForName:'netscape.applet.EmbeddedAppletFrame'.
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   355
    jEmbeddedAppletFrameClass isNil ifTrue:[
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   356
        self warn:'no netscape.applet.EmbeddedAppletFrame class'.
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   357
        ^ false
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   358
    ].
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   359
    embeddedAppletFrame := jEmbeddedAppletFrameClass new.
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   360
    embeddedAppletFrame instVarNamed:'pData' put:self.
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   361
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   362
    toolkit := Java classForName:'java.awt.Toolkit'.
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   363
    toolkit := toolkit invoke:#getDefaultToolkit.
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   364
    peer := toolkit 
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   365
                perform:#'createFrame(Ljava/awt/Frame;)Ljava/awt/peer/FramePeer;'
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   366
                with:embeddedAppletFrame.
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   367
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   368
    (embeddedAppletFrame respondsTo:#'<init>(Ljava/net/URL;Ljava/net/URL;Ljava/net/URL;Ljava/util/Hashtable;Lnetscape/applet/MozillaAppletContext;Ljava/lang/Integer;)V')
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   369
    ifTrue:[
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   370
        "/ 3.01 netscape
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   371
        embeddedAppletFrame 
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   372
            perform:#'<init>(Ljava/net/URL;Ljava/net/URL;Ljava/net/URL;Ljava/util/Hashtable;Lnetscape/applet/MozillaAppletContext;Ljava/lang/Integer;)V'
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   373
            with:jDocumentURL
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   374
            with:jCodeBaseURL
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   375
            with:jArchiveURL
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   376
            with:attribs
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   377
            with:appletContext
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   378
            with:(Java as_Integer:id).
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   379
    ] ifFalse:[
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   380
        "/ oldStyle netscape
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   381
        embeddedAppletFrame 
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   382
            perform:#'<init>(Ljava/net/URL;Ljava/net/URL;Ljava/util/Hashtable;Lnetscape/applet/MozillaAppletContext;I)V'
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   383
            with:jDocumentURL
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   384
            with:jCodeBaseURL
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   385
            with:attribs
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   386
            with:appletContext
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   387
            with:id.
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   388
    ].
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   389
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   390
    embeddedAppletFrame instVarNamed:'peer' put:peer.
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   391
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   392
    self javaPeer:peer.
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   393
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   394
    jMozillaAppletContextClass instVarNamed:'debug' put:1.
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   395
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   396
    ^ true
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   397
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   398
    "Created: / 28.1.1998 / 21:23:25 / cg"
288
d71bacb73ff7 checkin from browser
cg
parents: 286
diff changeset
   399
    "Modified: / 29.1.1998 / 20:55:00 / cg"
282
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   400
! !
80e840e0139f now holds all applet setup code
cg
parents: 233
diff changeset
   401
303
0b95d5f40bf2 checkin from browser
cg
parents: 288
diff changeset
   402
!JavaEmbeddedFrameView methodsFor:'resizing'!
0b95d5f40bf2 checkin from browser
cg
parents: 288
diff changeset
   403
0b95d5f40bf2 checkin from browser
cg
parents: 288
diff changeset
   404
sizeChanged:how
0b95d5f40bf2 checkin from browser
cg
parents: 288
diff changeset
   405
    super sizeChanged:how.
0b95d5f40bf2 checkin from browser
cg
parents: 288
diff changeset
   406
^ self.
0b95d5f40bf2 checkin from browser
cg
parents: 288
diff changeset
   407
    embeddedAppletFrame notNil ifTrue:[
0b95d5f40bf2 checkin from browser
cg
parents: 288
diff changeset
   408
        (embeddedAppletFrame perform:#'isResizable()Z') ~~ 0 ifTrue:[
0b95d5f40bf2 checkin from browser
cg
parents: 288
diff changeset
   409
            self windowGroup sensor
0b95d5f40bf2 checkin from browser
cg
parents: 288
diff changeset
   410
                 pushDamageEvent:(WindowEvent
0b95d5f40bf2 checkin from browser
cg
parents: 288
diff changeset
   411
                                     for:self
0b95d5f40bf2 checkin from browser
cg
parents: 288
diff changeset
   412
                                     type:#configureX:y:width:height:
0b95d5f40bf2 checkin from browser
cg
parents: 288
diff changeset
   413
                                     arguments:(Array with:left with:top with:width with:height)).
0b95d5f40bf2 checkin from browser
cg
parents: 288
diff changeset
   414
"/            embeddedAppletFrame
0b95d5f40bf2 checkin from browser
cg
parents: 288
diff changeset
   415
"/                perform:#'appletResize(II)V'
0b95d5f40bf2 checkin from browser
cg
parents: 288
diff changeset
   416
"/                with:self width
0b95d5f40bf2 checkin from browser
cg
parents: 288
diff changeset
   417
"/                with:self height.
0b95d5f40bf2 checkin from browser
cg
parents: 288
diff changeset
   418
        ]
0b95d5f40bf2 checkin from browser
cg
parents: 288
diff changeset
   419
    ]
0b95d5f40bf2 checkin from browser
cg
parents: 288
diff changeset
   420
0b95d5f40bf2 checkin from browser
cg
parents: 288
diff changeset
   421
    "Modified: / 1.2.1998 / 19:15:07 / cg"
0b95d5f40bf2 checkin from browser
cg
parents: 288
diff changeset
   422
! !
0b95d5f40bf2 checkin from browser
cg
parents: 288
diff changeset
   423
233
fc91b8aba669 intitial checkin
cg
parents:
diff changeset
   424
!JavaEmbeddedFrameView class methodsFor:'documentation'!
fc91b8aba669 intitial checkin
cg
parents:
diff changeset
   425
fc91b8aba669 intitial checkin
cg
parents:
diff changeset
   426
version
311
b23c5e132b8c hardterminate javaThread, if it did not terminate after 10 tries.
cg
parents: 303
diff changeset
   427
    ^ '$Header: /home/jv/Projects/SmalltalkX/repositories/cvs/stx/libjava/JavaEmbeddedFrameView.st,v 1.6 1998/02/05 11:10:33 cg Exp $'
233
fc91b8aba669 intitial checkin
cg
parents:
diff changeset
   428
! !