Index

A

absolute 120
abstract class 188
Abstract Windowing Toolkit 224
Abstract Windows Toolkit (AWT) 15
accelerator key control 135
accelerator keys 135
access modifiers 18-23
accessing the properties dialog 84
action event 100, 297, 320
ActiveMovie control, Microsoft 307
ActiveX 301
ActiveX component 306, 309
ActiveX component wizard 306
ActiveX components 301
ActiveX control, register 308
ActiveX controls 305, 310, 311
ActiveX page 306
ActiveX server components 306
add an object 30
add button 121
add group dialog 102
add Java component 302
add menu items 131
adding buttons 46
adding class 186-188, 225-226
adding code 50-53
adding components to forms 78
adding items to menu 138
adding items to the list 104
adding new forms 72
adding objects to a form 77
adding rows 263
adding rows and columns 126
adding the text box 46
adding to the list control 54-55
addItem() method 54, 105
addMenuComponent() 138
addString 172
aligning objects 82
aligning objects to the grid 70
applet 235, 277, 322
     creating 59-61
applet form 71
applet viewer 61, 179
applet, deploying 329
application 122, 277
     building 57
     dynamo server 42
     Java web server 42
     testing 56
     web 42
array of strings 109
assembly window 208-213
associated URL 286
asynchronous 281, 283
asynchronous programs 279
AutoCommit 239, 259
AutoConnect 239, 240, 281
AutoEdit 254
AutoOpen 254
AutoRefresh 264
AutoSize property 118
available columns 247, 251
AWT enhancements 23
AWT graphics class 313
AWT image class 318
AWT See also Abstract Windows Toolkit

B

backup files 182
base classes 15
basic flow control 19
behavior 9
bitmaps 118-120
blocking 281
Boolean value 138
bound control checkbox 259
bound control data source 113
bound controls 259, 266
bound list boxes 262
brace
     curly 149
branching statements 19-21
     if...else 19
breakpoint options 197-199
breakpoints
     setting 196-197
browse button 220
buf argument 282
building the application 57-59
button 148
     add 121
     adding 46
     browse 220
     choosing 265
     connect 296
     fill circle 319
     fill rectangle 319
     get 230
           java.awt.button      99
     labeling 49-50
     new pop-up 132
     next 164
     open window 173
     parameters 155
     picture 120
     refresh 266
     regular 120
     set 230
     text 319
button events 100
BytesWaiting property 281

C

call function 171, 172
call function button 173
call stack 207
call stack window 207
call stack window menu 208
canceling updates 265
caption 134
     changing 137
cascaded menu 136
cell 122
     value of 126
CellRange 125
CGI program 292
CGI. See also Common Gateway Interface
change the caption 137
changeCurrentDirectory 289
changes to the database 262-265
changing a form 74
changing an object's name 86
changing an object's properties 83
changing memory values 212
changing the position of an object on a form 78
char y 17
check box 115
           java.awt.Checkbox      101
check box events 103
check box groups 102
checkable property 135
checked property 101, 135
child items 133
child menu items 135
choice control 108
           java.awt.Choice      103
choice control properties 104
choosing the buttons 265
class 7
     abstract 188
     adding 186-188, 225-226
     AWT graphics 313
     AWT image 318
     base 15
     contacts 227-232
     data type 141
     dimension 144
     double 144
     float 144
     font 145
     graphics 23, 314
     integer 144
     interface 188
     JavaBeans 305
     long 144
     object 141
     point 144
     polymorphic 14
     public 188
     rectangle 144
     standard Java 187, 224
     string 142-143
           StringBuffer      143
     toolkit 145
     URL 145
     visual 187, 224
class component wizard 302
class definitions 22
class member variables 7
class window 161, 162, 188, 274
class wizard 186, 225, 230, 302
clean 182
clearing the list 108
clearRect method 315
click 136
click event 136
ClipRect 314
close button 174
close connection 296
close method 282, 286
closeConnection 291
closing quote 149
closing the query 258
code 122, 137
     adding 50-53
code editor 38, 149, 150, 330
code editor window 295, 310
CodeBased 120
color property 95-97, 314, 315
color tab 96
color-coding scheme 149
colors
     defining custom 96
columns 122
     adding 126
     deleting 126
     selected 248
columns page 247
columns, available 247, 251
columns, selected 247
columns, separate 124
command button's Action event 148
Common Gateway Interface (CGI) 292
common properties 92, 98
commonly used string class methods 142
COMPILER tab 190
component order, editing 48
component palette 77, 219, 278, 302, 306, 307
compute page 251
connect button 295, 296
connect method 289
connect method of HTTP 287
connection page 237
ConnectParams 239
controls
     third party 122
conversions 144
copy, cut, and paste shortcuts 82
copying an object 81, 81-82
count property 108
create the menu items 132
creating a contacts class 227-232
creating a new form 71
creating an applet 59-64
creating event handlers 87
creating new form 159
criterion editor 250
curly brace 149
custom colors dialog 96

D

data navigator 234, 265, 266
datatype classes 141
datatypes 141
     integers 141
     numerical 144
     strings 141
data, modifying existing 264
data, submitting to a web service 278
DataAvailable 264
database and data columns properties 113
database dialog 266
database form 266-270
database frame 270
databases
     changes 262-265
     disconnecting 241
     ODBC 238
     security issues 234
     SQL Anywhere 272
     Sybase SQL Anywhere Sample 270
DataColumns 260
DataColumns property 261
DataSource 260
DataSource property 261
DataTrackRow 262
date mask 118
debug 191
debug and release version 181
debug menu 204
debug mode 200, 200
DEBUG tab 180
debug targets 328-332
debug version 191-192
debugger 199
debugging applications 196
default actions 75
default reTURN value 149
default size 151
define custom colors 96
delete button code 55
delete function 136
delete key 136
delete menu items 136
deletes, making 263
deleting a form 80
deleting a highlighted menu 136
deleting an object from a form 79
deleting rows and columns 126
deleting targets 188
deploying an applet 329
design time form 120
design window 73
destroy() call 170
dialog box
     add group 102
     custom color 96
     edit expression 251
     edit menu 131
     font selection 61
     menu editor 132
     modify dialog 203
     opening 136
     options 332
     run options 179
     sockets property 279
dialog form 71
dimension class 144
direct SQL 258
disabled property 135
disconnecting from the database 241
display the grid checkbox 69
dispose call() 170
DLL library 279
do while loop 22
DocumentBased 120
double class 144
drag-and-drop programming 88, 152
drawArc method 317
drawImage method 319
DrawLine 314
drawOval 314
drawOval method 316
drawPolygon 318
drawString 314, 318
drivers 235
     JDBC 238
drop downs 134
dynamo server applications 42

E

EchoCharacter 113
edit component order 48
edit expression 251
edit menu 131, 151
edit mode 254
else statement 20
enable or disable menu items 137
enabled property 94
encapsulation 13-14
endCol 125
endRow 125
enhancements 59
equals() method 141, 143
ERROR 118
error messages 178
     next error 178
     previous error 178
error trapping 283
event handler 87, 310
     creating 87
event wizard 167
event-driven programming 15
events tab 88
executable form 326
Executive Decision Maker 322
export menu 150
externally created property 309

F

failIfFileExists 290
file 286
file pop-up menu 133
File...Add File 185
File...Close Project 178
File...New Project 177
File...New...Target 183
File...Open Project 177
File..New Project 43
files list window 36-37
files window 160
fill circle 319
fill rectangle 319
fillArc method 317
fillOval method 316
fillPolygon method 318
fillRect method 315
float class 144
flow control 19
focus property 98
font 314
font class 145
font selection dialog 61
for loops 22
form
     adding components 78
     adding new 72
     adding objects 77
     applet 71
     changing 74
     changing the position of an object 78
     creating 71, 159
     database 266-270
     deleting 80
     deleting an object 79
     design time 120
     dialog 71
     frame 71
     main 274
     modeless dialog 71
     opening and closing 73
     positioning an object 78
     resizing 71
     setting properties 74
     types 71
form class information 270
form code 161
form design window 68, 160
form grid 69
form types
     applet 159
     frame 159
     modal dialog 159
     modeless dialog 159
form wizard 72, 73, 173, 266, 270
frame form 71
freeze 211
FROM clause 246
FTP 278
FTP object 288, 289
FTP object's property dialog 293
FTP server 297
FullRowSelection 124

G

general page 95
GENERAL tab 118, 180
generic name 132
get button 230
GET command 278
getCell 126
getClass() 141
GetFocus 100, 114
getGraphics method 313
getImage method 319
getItem() function 109
getLastError 283
getLastName 229
getMaskedText() 118
getParsedDirectories 298
getPropertyName() 165
getReadOnly 255
getRemoteInetAddress 281
getSelectedIndexes() 109
getText() method 52
getText() method 118
graphical applications 129
graphics 313
graphics class 23, 314
graphics object 313
grid
     aligning objects 70
     display 69
     navigate to 69
     two-dimensional 122
grid control 122
grid manipulation properties 124
grid size 70
group box 115
GROUP BY clause 250
group page 250

H

handle events 309
HAVING clause 251
having page 251
header entries 124
heading 122
Hello World 60
Hello World application 42
help, online 124
high level items 134
horizontal lines 135
horizontal scroll bars 125
HTML code 277
HTTP 278
HTTP object 286

I

icon 120
     running man 274
ImageCentered property 119
inheritance 11-13
     not 221
     subclasses 13
input mask 116
InputMask 117, 118
Insert...User function 162
insets 119
int x 17
integer class 144
integer indexes 125
integers 141
integrated development environment 26
interface class 188
Internet 277, 278
Internet concepts 277-278
Internet Explorer 63, 309
Internet format, standard 280
Internet object 285-286
Internet tab 278
intranet 277
invoke methods 309
item tab 104

J

Jaguar CTS programs 35
Java 5-7
     Mac 5
     NT 5
     Unix 5
     Win95 5
Java 1.02 application 43
Java 1.02 palette 27
Java applet 42, 308
Java applications 42
Java class component wizard 302
Java class definition 301
Java classes 7
Java component 309
     add 302
Java console 179
Java strings 142
Java Virtual Machine 5, 29
Java web server application 42
JavaBeans 301, 304
JavaBeans classes 305
JDBC 234
JDBC driver 238
JDBC-ODBC bridge 234, 236
JDC configuration tab 332
joins page 246
JVM. See Java Virtual Machine

K

KeyDown 114
KeyUp 114

L

label argument 126
label control 106
label headings 125
label property 93
length() 143
LineIncrement 111
lines
     horizontal 135
list 106-107
     adding items 104
     single selection 107
list at run time 108
list boxes
     bound 262
list control 45
     adding to 54-55
list control events 108-109
list control properties 107
ListSelect event 108
local port 281
LocalHostName 281
LocalPort property 284
locals window 204
locals window variables menu 205-208
long class 144
looping constructs 21
looping statements 21-22
LoseFocus 100, 114
lower level items 134

M

main form 274
main menu 27
make current 211
making deletes 263
manipulating text at run time 113
manipulation of menu items 137
masked text field 115-116
MaskedTextField 113
master detail 271
master detail queries 267
matching object sizes 83
memory 314
memory values
     changing 212
memory window 211
menu
     adding items 138
     call stack 208
     cascaded 136
     debug 204
     deleting 136
     edit 151
     export 150
     file pop-up 133
     pop-up 188
     run 209
     search 178
     show address 212
     tools 149, 332
menu bar 109, 131
menu bar icon 129
menu bar object component 129
menu editor 131-132
menu items
     adding 131
     child 135
     creating 132
     deleting 136
     disabling 137
     enabling 137
     manipulating 137
menu new separator 135
menubarname_file 135
method block 17
method wizard 166, 305
methods tree 52
Microsoft ActiveMovie control 307
Microsoft Internet Explorer 63
Microsoft Internet Information Server 292
Microsoft Java Class library 190
Microsoft Windows ActiveX components 301
Microsoft Windows Explorer 134
modeless dialog 173
     form 71
modern development environments 149
modify dialog 203
modifying existing data 264
move down 248
move up 248
multi-line label 118
MultiMode 124
multiple lines 114
multiple selection list controls 108
multi-program project 182

N

name
     generic 132
name property 129
native grid control 122
navigate to the grid 69
Netscape Navigator 309
Netscape web server plug-in 292
new computed column 252
new criteria 250
new pop-up button 132
next button 164
next error 178
normal text box 124
not inheritance 221
numColumns argument 126
numerical data types 144

O

object 7-9
     adding to form 30
     FTP 288, 289
     graphics 313
     Internet 285-286
     programming 8
     socket 279
object class 141
object inspector 76, 310
object inspector window 32, 85
object list window 33
object name property 97
object prefix 157
object sizes
     matching 83
OBJECT tag 309
ObjectCycle 194
objects window 160
ODBC Database 238
online help 124
open a dialog 136
open method 286
open window 171, 173
open window button 174
opening and closing forms 73
option buttons 115
options dialog 332
options tab 124, 243
ORDER BY clause 248
output directory tab 190
output pattern 116
output pattern string 117
overWriteFile 290

P

packages 235
PageIncrement 111
pages tab 121
paint canvasses 118
palettes
     component 219, 278, 302, 306, 307
panel 110
parameters 52, 253
parameters button 155
parameters for queries 253-254
parameters wizard 54, 155, 156
password 115, 239, 267
picture boxes 118
picture button 120
picture tab 119
point class 144
pointer code 207
pointer memory 206
polygon 317
polymorphic 14
pop-up item 135
pop-up items defined 132
pop-up menu 188
pos argument 126
position and size 145
positioning an object on the form 78
POST 278
PowerJ
     form types 159
PowerJ class library 331
PowerJ code editor 151
PowerJ conventions 68
PowerJ IDE 26
PowerJ interface 91
PowerJ toolbar 178
PowerJ window 27
     Java 1.02 palette 27
     main menu 27
     main menu bar 28
     status bar 27
     toolbar 27, 28
previous error 178
PrimaryKeyColumn 254
procedures, stored 254-259
programming
     event-driven 15
programming object 8
projects
     multi-program 182
     working with 182
PromptChar 117
properties
     AutoSize 118
     BytesWaiting 281
     checked 101
     choice control 104
     color 95-97, 314, 315
     common 92, 98
     count 108
     data columns 113
     database 113
     DataColumns 260, 261
     DataSource 260, 261
     enabled 94
     externally created 309
     focus 98
     grid manipulation 124
     ImageCentered 119
     label 93
     list control 107
     LocalPort 284
     name 129
     object name 97
     runtime only 98
     run-time-only 255
     ScaleImage 119
           SelectedCells      126
     text box 113-114
     transaction 240-241, 267
     visible 94
properties dialog
     accessing 84
properties menu item 75
property dialog 120, 123
property menu item 136
property wizard 164
property, adding to form 163
public class 188
publish tab 331
publishing 291
putFile method 290

Q

queries
     master detail 267
queries, parameters for 253-254
query
     single 267
query editor 245, 252
query object 255, 266, 272
query object properties
     AutoRefresh 255
     current row 256
     executing the query 256
     moveFirst 257
     moveLast 257
     moveNext 257
     movePrevious 257
     moveRelative 257
     opened 255
     ReadOnly 255
     result set 256, 257
     retrieving the result set 256
     row numbers 256
query objects 242
query properties 243, 255
query, closing 258

R

readFile method 286
ReadOnly 124
ReadOnly 113
read-only code 149
receive method 283
rectangle
     position and size 145
rectangle class 144
rectangles, rounded 316
redo command 151
Ref 286
reference card 39, 153, 172, 305, 306, 310
     opening 153-156
reference card organization 157
refresh button 266
register ActiveX control 308
registers window 209
regular button 120
release 191
release targets 328-332
release version 191-192, 329
remote port 280
remote system 282, 283
RemoteHostName 281
remove checks 137
removeMenuComponent() 138
resetLastError 283
ResizableColumns 124
resizing the form 71
restoring defaults 328
result set 264
result value 156
retrieveDirectoryListing 289
retrieveFile 290
retrieveFile method 289
reTURN statement 22
reTURN value
     default 149
rounded rectangles 316
row headers 124
row parameter 257
rows
     adding 126, 263
     deleting 126
     separate 124
run icon 178
run menu 209
     clean 182
run options 179-181
run options dialog 179
run time 281
run to cursor 202
running man icon 274
run-time-only properties 98, 255

S

SAVE 135
Save As 135
saving your project 57
ScaleImage property 119
scope controls 163
screen editor 149
script editor 163
scroll bars 110, 122, 125, 151
ScrollAbsolute 112
ScrollBar events 112
ScrollBar methods 111
ScrollBar properties 111
ScrollLineDown 112
ScrollLineUp 112
ScrollPageDown 112
ScrollPageUp 112
search menu 178
security issues for databases 234
SELECT clause 247
select event 122
SELECT statement 256
select() methods 114
selectAll 114
selected columns 247, 248
SelectedCells property 126
selection tool 99
send method 282, 284
separate columns 124
separate rows 124
server socket 284
server sockets 284
ServerName 286
ServerPort 286
set and retrieve properties 309
set button 230
set parameters 254
set text box 230
setCell method 125
setChecked() method 137
setColumnLabel 125
setLastName 229
setPropertyName() 165
setSelectedCells 125
setText() method 137
setting a form 74
setting breakpoints 196-197
setVisible() method 137
shift key 124
show address menu 212
show window 206
ShowRefresh 266
ShowRowLines 124
ShowVertical header 125
single query 267, 271
single selection lists 107
size and position 145
skip to cursor 202, 209
small editor mode 151
SockDGRAM 280
socket 278
socket facilities 277
socket method 283
socket object 279
SocketConnect 283
SocketDataArrival 283
SocketError 283
SocketExceptionCode interface 283
SocketHostResolved 283
sockets 278
     blocking 279
     nonblocking 279
sockets property dialog 279
sockets, server 284
SocketSendComplete 283
SockSTREAM 280
SockUNKNOWN 280
sort page 248
source code xxv, 149, 150, 338
source control functions 193
source files
     adding to targets 185
specific values 261
spreadsheet programs 122
SQL Anywhere database 272
SQL queries 253
SQL statement 244
stack window 212
standard components 91-92, 99-106
standard format 115
standard function prototype 148
standard Internet format 280
standard Java class 187, 224
startCol 125
startRow 125
startup options 185
state of existence 9
status bar 27, 31
step into 202
step next 202
step out 202
step over 202
stepping options 202
     run to cursor 202
     skip to cursor 202
     step into 202
     step next 202
     step out 202
     step over 202
store in variable checkbox 53
stored procedures 254-259
string class 142-143
string constants 142
StringBuffer class 143
strings 141
     Java 142
subclasses 13
submitting data to a web service 278
Sun Java class library 190
switch statement 20-21
Sybase 237
Sybase SQL Anywhere Sample Database 270
Sybases jConnect 234

T

tab control 120
tab form control 122
tab order
     setting 48
tables page 246
target type 328
target wizard 183, 291
targets
     adding 182
     debug 328-332
     deleting 188
     release 328-332
targets list window 34-35
targets window 326
TCP/IP transfer protocol 277
templates 16, 218-222
     advantages 218
     creating 218-220
     deleting 220
     storage of 220
test page 252
testing 47
     application 56
text 319
     manipulating at run time 113
     multiple lines 114
text box 112
     adding 46
text box properties 113-114
text box, normal 124
text field 43
     masked 115-116
text string 273
TextAreas 113
TextFields 113
thaw 211
third party controls 122
threads window 211
to-do list application 100
to-do list window 45
toggle breakpoint 208
toolbar 27, 28
     run icon 178
toolkit class 145
tools menu 149, 332
toString() method 141
TraceToLog 240, 254
transaction management 241
transaction object 272
transaction properties 240-241, 267
transactions 234, 237, 243
transferType 290
tree control 134
two-dimensional grid 122
types of forms 71

U

undo command 151
undo menu item 137
unicode support 23
Uniform Resource Locator 277
untitled project 177
update method 263
updates, canceling 265
URL 119, 277
URL class 145
URL edit 120
URL property 285
use JavaBeans 303
user interface 43
userID 239, 267
userName 115, 286
userPassword 286

V

ValidateData 258, 263
value of a cell 126
values, specific 261
variable 18
variable memory 206
variable name suffix 134
variable types 16
vector 297
version 105
vertical scroll bar 125
vertical versus horizontal 265
view menu
     object list window 33
     targets list window 34
View...Object Inspector 85
visible property 94
Visual Basic script 305, 309
visual class 187, 224

W

watch window 202
web application 42, 292
web application target 329, 330, 331
web project 291
web server 277
web target 291, 330
where page 249
while statement 21
window
     assembly 208-213
     call stack 207
     class 161, 162, 188, 274
     classes list 37
     code-editor 310
     files 160
     files list 36-37
     form design 31, 68, 73, 160
     locals 204
     memory 211
     object inspector 32-33, 85
     object list 33-34
     objects 160
     PowerJ 27
     registers 209
     show 206
     stack 212
     targets 326
     targets list 34-35
     threads 211
     to-do list 45
     watch 202
WindowDestroy 170
wizard
     ActiveX component 306
     class 186, 225, 230, 302
     class component 302
     event 167
     form 173, 266, 270
     Java class component 302
     method 166, 305
     parameters 54, 155, 156
     property 164
     target 183, 291