Java The Complete Reference, Seventh Edition

(Greg DeLong) #1

StringIndexOutOfBounds exception, 218
StringReader class, 288
StringWriter class, 288
StringTokenizer class, 503–504
methods, table of, 504
stringWidth( ), 692, 693
Stroustrup, Bjarne, 6
Stubs (RMI), 838
Subclass, 18, 157, 158, 159, 175
subList( ), 443
subMap( ), 465, 466
submit( ), 804
subSequence( ), 377, 384, 433
subSet( ), 444, 445, 456
substring( ), 372–373, 383
Sun Microsystems, 6, 599
super, 141
and bounded wildcard arguments, 334
and methods or instance variables,
166–167, 172
super( ), 314
and superclass constructors, 163–166, 170
Superclass, 18, 157, 158, 159, 175
Supplemental character, definition of, 401
@SuppressWarnings built-in annotation,
282, 283
suspend( ), 13, 249–252, 423, 429
Swing, 13, 285, 299, 617, 663, 859–878, 879–906
applet, example of a simple, 871–873
application, example of a simple, 864–868
and the AWT, 663, 859, 860
component classes, list, 862
download manger using, 965–990
event handling, 868–871
history of, 859–860
and MVC architecture, 861
packages, list of, 864
and painting, 873–878
threading issues, 867–868, 871
Swing: A Beginner’s Guide(Schildt), 859
SwingConstants interface, 880
SwingUtilities class, 868
switch statement, 80–84
and auto-unboxing, 269–270
using enumeration constants to control, 81,
256–257
Synchronization, 12, 225, 238–242
and atomic operations, 811–812
and collections, 448, 479, 487
and deadlock, 247–249, 251
objects, using, 789–801


race condition and, 240–241
and StringBuilder class, 384
via synchronized block, 241–242, 479
via synchronized method, 239–241
versus concurrency utilities, 787, 812
synchronized modifier, 239
used with method, 239, 240–241
used with object, 241–242
synchronizedList( ), 478, 479
synchronizedSet( ), 478, 479
Synchronizers, 788
SynchronousQueue class, 808
System class, 24, 288, 409–412
methods, table of, 409–410
System.console( ), 409, 587
System.err standard error stream, 288
System.getProperties( ), 409, 497
System.in standard input stream, 288, 289,
541, 587
System.in.read( ), 88
System.out standard output stream, 24, 288,
292, 293, 539, 574, 575, 587

TT
Tabbed panes, 891–893
TableColumnModel, 904
TableModel, 904
TableModelEvent class, 904
tailMap( ), 465, 466
tailSet( ), 444
tan( ), 418
tanh( ), 419
@Target built-in annotation, 282–283
TCP/IP, 12, 599–600
client sockets, 603–605
disadvantages of, 613
server sockets, 603, 612–613
See alsoTransmission Control Protocol (TCP)
Templates, C++, 316
Ternary operator (?:), 71, 73–74
Text area, 721–723
Text fields, 719–721, 937
Swing, 881–882, 937
Text formatting using java.text classes, 813,
840–843
Text output, managing, 691–699
TextArea class, 721–723
textChanged( ), 652
TextComponent class, 719, 722
TextEvent class, 640, 648

Index 1021

Free download pdf