Essential Java 2 fast: how to develop applications and applets with Java 2
Gespeichert in:
1. Verfasser: | |
---|---|
Format: | Buch |
Sprache: | German |
Veröffentlicht: |
London [u.a.]
Springer
1999
|
Schriftenreihe: | Essential series
|
Schlagworte: | |
Online-Zugang: | Inhaltsverzeichnis |
Beschreibung: | IX, 240 S. Ill., graph. Darst. |
ISBN: | 1852330716 |
Internformat
MARC
LEADER | 00000nam a2200000 c 4500 | ||
---|---|---|---|
001 | BV012468639 | ||
003 | DE-604 | ||
005 | 20020923 | ||
007 | t | ||
008 | 990316s1999 gw ad|| |||| 00||| ger d | ||
016 | 7 | |a 955996317 |2 DE-101 | |
020 | |a 1852330716 |c kart. : 46.00 |9 1-85233-071-6 | ||
035 | |a (OCoLC)636673024 | ||
035 | |a (DE-599)BVBBV012468639 | ||
040 | |a DE-604 |b ger |e rakwb | ||
041 | 0 | |a ger | |
044 | |a gw |c DE | ||
049 | |a DE-29T |a DE-83 |a DE-11 | ||
050 | 0 | |a QA76.73.J38 | |
082 | 0 | |a 005.2/762 |2 21 | |
084 | |a ST 250 |0 (DE-625)143626: |2 rvk | ||
100 | 1 | |a Cowell, John |e Verfasser |4 aut | |
245 | 1 | 0 | |a Essential Java 2 fast |b how to develop applications and applets with Java 2 |c John Cowell |
264 | 1 | |a London [u.a.] |b Springer |c 1999 | |
300 | |a IX, 240 S. |b Ill., graph. Darst. | ||
336 | |b txt |2 rdacontent | ||
337 | |b n |2 rdamedia | ||
338 | |b nc |2 rdacarrier | ||
490 | 0 | |a Essential series | |
650 | 4 | |a Java (Langage de programmation) | |
650 | 4 | |a Java (Computer program language) | |
650 | 0 | 7 | |a Java 2 |0 (DE-588)4503201-4 |2 gnd |9 rswk-swf |
650 | 0 | 7 | |a Applet |0 (DE-588)4424211-6 |2 gnd |9 rswk-swf |
689 | 0 | 0 | |a Java 2 |0 (DE-588)4503201-4 |D s |
689 | 0 | |5 DE-604 | |
689 | 1 | 0 | |a Java 2 |0 (DE-588)4503201-4 |D s |
689 | 1 | 1 | |a Applet |0 (DE-588)4424211-6 |D s |
689 | 1 | |5 DE-604 | |
856 | 4 | 2 | |m HEBIS Datenaustausch |q application/pdf |u http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=008462097&sequence=000002&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA |3 Inhaltsverzeichnis |
999 | |a oai:aleph.bib-bvb.de:BVB01-008462097 |
Datensatz im Suchindex
_version_ | 1804127109401018368 |
---|---|
adam_text | John Cowell
Essential
Java 2 fast
How to develop applications and
applets with Java 2
Springer
Contents
1 WHY JAVA 2 IS SPECIAL 1
Introduction 1
Is this book for you? 2
What you need to run Java 2 2
How to use this book 3
An object-oriented approach 4
Conventions 4
2 AN OBJECT-ORIENTED APPLICATION 6
Introduction 6
A first application 7
What can go wrong? 8
How does the application work? 8
Classes and objects 9
The main method 10
What s new - 11
Running the application 12
Using classes and objects 12
Naming conventions 12
3 THE JAVA LANGUAGE 14
Introduction 14
Applications and applets 14
Comments 14
Terminating Java statements 15
Datatypes 15
The integer data types 15
The floating point data types , 16
The boolean data type 16
The char data type 16
The String data type 17
Names in Java 17
Declaring data 17
Arithmetic in Java 18
Mixing data types 18
Casting 19
i Contents
Assignment operators 20
Using strings in Java 21
Operator precedence 22
Displaying information on your screen 22
4 BRANCHING AND LOOPING 24
Introduction 24
The If else statement 24
Logical operators 26
The switch statement 27
Block statements 29
Looping 29
The for loop 29
The while loop 31
The do while loop 31
The break statement 32
Arrays 33
5 CREATING AND USING CLASSES AND OBJECTS 35
Introduction 35
The Account class 35
The displayDetails method 36
The inCredit method 37
The credit and debit methods 37
The main method 37
Using constructors 40
Encapsulating data 41
Calling methods 44
Command line arguments for applications 45
6 USING APPLETS 47
Introduction 47
Writing applets 47
The APPLET tag 48
Key methods of the Applet class 50
The init method 50
The start method 50
The stop method 50
The destroy method 51
The paint method 51
Command line arguments for applets 51
Contents vii
7 THE GRAPHICS, COLOR AND FONT CLASSES 54
Introduction # 7 54
The co-ordinate frame 54
Importing classes 55
The Graphics class 56
Drawing lines 56
Drawing rectangles 57
Drawing circles and ovals 59
Drawing arcs 60
Drawing polygons 61
The Color class 63
Creating colours 64
Displaying text and changing fonts 65
Displaying images 67
8 INHERITANCE AND POLYMORPHISM 70
Introduction 70
A hierarchy of computer components 70
Defining the Memory subclass 73
Polymorphism 74
The MBoard class 75
Extending a subclass 76
Class and instance variables 78
Static methods 80
Overloading methods 81
Access control 82
Interfaces 84
9 MOUSE AND KEYBOARD EVENTS 85
Introduction 85
The MouseEvent class 85
The MouseListener interface 87
Which button was pressed? 90
The MouseAdapter class 92
The MouseMotionListener interface 94
The KeyEvent class 96
The KeyAdapter class 97
The KeyListener interface 100
10 THE AWT COMPONENTS 102
Introduction 102
Event-driven programming 102
jj Contents
The AWT classes 102
The Button class 103
Handling events 104
The Label class 106
The Scrollbar class 107
Handling Scrollbar events 108
The Checkbox class 111
The List class 114
Multiple selection in List objects 116
The TextComponent class 118
The TextArea class 119
Using the TextListener interface 123
The TextField class 124
The Canvas class 126
11 THE LAYOUT MANAGERS 128
Introduction 128
The FlowLayout class 128
The BorderLayout class 130
The CardLayout class 132
The GridLayout class 135
The GridBagLayout class 136
12 WINDOWS, DIALOGS AND MENUS 140
Introduction 140
The Container class 140
The Frame class 141
Creating an application which uses a frame 141
The WindowListener interface 144
Creating an applet which uses a frame 145
The MenuBar class 147
The Dialog class 150
The FileDialog class 153
The Panel class 159
13 THE SWING COMPONENTS 162
Introduction 162
Differences between Swing and AWT components 162
The Swing components 163
The Swing container classes 163
The AbstractButton class 164
The Swing and AWT buttons 164
Changing the look and feel 167
Contents ix
The JButton class 171
The JToggleButton, JRadioButton and JCheckBox classes 173
Displaying text 178
The JLabel class 178
The JTextField class 182
The JTextArea class 183
The JList class 184
The JColorChooser class 188
The JFileChooser class 193
14 JAVA EXCEPTIONS 198
Introduction 198
The Exception class : 198
The try and catch clauses 198
Throwing an exception 201
Creating new exceptions 202
Throwing without catching 202
15 WRITING THREADED APPLICATIONS 203
Introduction 203
Pre-emptive scheduling 203
The Runnable interface 205
The Thread class 207
Synchronizing threads 208
The Thread class 210
Creating animation 211
The bouncing ball applet 214
16 FILES AND STREAMS 218
Introduction 218
The File class 218
The InputStream and OutputStream classes 221
The DatalnputStream and DataOutputStream classes 224
Using the DataOutputStream class 225
Using the DatalnputStream class 229
Reading text files 232
Reading from the keyboard 233
Converting strings to other data types 234
INDEX 236
|
any_adam_object | 1 |
author | Cowell, John |
author_facet | Cowell, John |
author_role | aut |
author_sort | Cowell, John |
author_variant | j c jc |
building | Verbundindex |
bvnumber | BV012468639 |
callnumber-first | Q - Science |
callnumber-label | QA76 |
callnumber-raw | QA76.73.J38 |
callnumber-search | QA76.73.J38 |
callnumber-sort | QA 276.73 J38 |
callnumber-subject | QA - Mathematics |
classification_rvk | ST 250 |
ctrlnum | (OCoLC)636673024 (DE-599)BVBBV012468639 |
dewey-full | 005.2/762 |
dewey-hundreds | 000 - Computer science, information, general works |
dewey-ones | 005 - Computer programming, programs, data, security |
dewey-raw | 005.2/762 |
dewey-search | 005.2/762 |
dewey-sort | 15.2 3762 |
dewey-tens | 000 - Computer science, information, general works |
discipline | Informatik |
format | Book |
fullrecord | <?xml version="1.0" encoding="UTF-8"?><collection xmlns="http://www.loc.gov/MARC21/slim"><record><leader>01605nam a2200445 c 4500</leader><controlfield tag="001">BV012468639</controlfield><controlfield tag="003">DE-604</controlfield><controlfield tag="005">20020923 </controlfield><controlfield tag="007">t</controlfield><controlfield tag="008">990316s1999 gw ad|| |||| 00||| ger d</controlfield><datafield tag="016" ind1="7" ind2=" "><subfield code="a">955996317</subfield><subfield code="2">DE-101</subfield></datafield><datafield tag="020" ind1=" " ind2=" "><subfield code="a">1852330716</subfield><subfield code="c">kart. : 46.00</subfield><subfield code="9">1-85233-071-6</subfield></datafield><datafield tag="035" ind1=" " ind2=" "><subfield code="a">(OCoLC)636673024</subfield></datafield><datafield tag="035" ind1=" " ind2=" "><subfield code="a">(DE-599)BVBBV012468639</subfield></datafield><datafield tag="040" ind1=" " ind2=" "><subfield code="a">DE-604</subfield><subfield code="b">ger</subfield><subfield code="e">rakwb</subfield></datafield><datafield tag="041" ind1="0" ind2=" "><subfield code="a">ger</subfield></datafield><datafield tag="044" ind1=" " ind2=" "><subfield code="a">gw</subfield><subfield code="c">DE</subfield></datafield><datafield tag="049" ind1=" " ind2=" "><subfield code="a">DE-29T</subfield><subfield code="a">DE-83</subfield><subfield code="a">DE-11</subfield></datafield><datafield tag="050" ind1=" " ind2="0"><subfield code="a">QA76.73.J38</subfield></datafield><datafield tag="082" ind1="0" ind2=" "><subfield code="a">005.2/762</subfield><subfield code="2">21</subfield></datafield><datafield tag="084" ind1=" " ind2=" "><subfield code="a">ST 250</subfield><subfield code="0">(DE-625)143626:</subfield><subfield code="2">rvk</subfield></datafield><datafield tag="100" ind1="1" ind2=" "><subfield code="a">Cowell, John</subfield><subfield code="e">Verfasser</subfield><subfield code="4">aut</subfield></datafield><datafield tag="245" ind1="1" ind2="0"><subfield code="a">Essential Java 2 fast</subfield><subfield code="b">how to develop applications and applets with Java 2</subfield><subfield code="c">John Cowell</subfield></datafield><datafield tag="264" ind1=" " ind2="1"><subfield code="a">London [u.a.]</subfield><subfield code="b">Springer</subfield><subfield code="c">1999</subfield></datafield><datafield tag="300" ind1=" " ind2=" "><subfield code="a">IX, 240 S.</subfield><subfield code="b">Ill., graph. Darst.</subfield></datafield><datafield tag="336" ind1=" " ind2=" "><subfield code="b">txt</subfield><subfield code="2">rdacontent</subfield></datafield><datafield tag="337" ind1=" " ind2=" "><subfield code="b">n</subfield><subfield code="2">rdamedia</subfield></datafield><datafield tag="338" ind1=" " ind2=" "><subfield code="b">nc</subfield><subfield code="2">rdacarrier</subfield></datafield><datafield tag="490" ind1="0" ind2=" "><subfield code="a">Essential series</subfield></datafield><datafield tag="650" ind1=" " ind2="4"><subfield code="a">Java (Langage de programmation)</subfield></datafield><datafield tag="650" ind1=" " ind2="4"><subfield code="a">Java (Computer program language)</subfield></datafield><datafield tag="650" ind1="0" ind2="7"><subfield code="a">Java 2</subfield><subfield code="0">(DE-588)4503201-4</subfield><subfield code="2">gnd</subfield><subfield code="9">rswk-swf</subfield></datafield><datafield tag="650" ind1="0" ind2="7"><subfield code="a">Applet</subfield><subfield code="0">(DE-588)4424211-6</subfield><subfield code="2">gnd</subfield><subfield code="9">rswk-swf</subfield></datafield><datafield tag="689" ind1="0" ind2="0"><subfield code="a">Java 2</subfield><subfield code="0">(DE-588)4503201-4</subfield><subfield code="D">s</subfield></datafield><datafield tag="689" ind1="0" ind2=" "><subfield code="5">DE-604</subfield></datafield><datafield tag="689" ind1="1" ind2="0"><subfield code="a">Java 2</subfield><subfield code="0">(DE-588)4503201-4</subfield><subfield code="D">s</subfield></datafield><datafield tag="689" ind1="1" ind2="1"><subfield code="a">Applet</subfield><subfield code="0">(DE-588)4424211-6</subfield><subfield code="D">s</subfield></datafield><datafield tag="689" ind1="1" ind2=" "><subfield code="5">DE-604</subfield></datafield><datafield tag="856" ind1="4" ind2="2"><subfield code="m">HEBIS Datenaustausch</subfield><subfield code="q">application/pdf</subfield><subfield code="u">http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=008462097&sequence=000002&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA</subfield><subfield code="3">Inhaltsverzeichnis</subfield></datafield><datafield tag="999" ind1=" " ind2=" "><subfield code="a">oai:aleph.bib-bvb.de:BVB01-008462097</subfield></datafield></record></collection> |
id | DE-604.BV012468639 |
illustrated | Illustrated |
indexdate | 2024-07-09T18:28:07Z |
institution | BVB |
isbn | 1852330716 |
language | German |
oai_aleph_id | oai:aleph.bib-bvb.de:BVB01-008462097 |
oclc_num | 636673024 |
open_access_boolean | |
owner | DE-29T DE-83 DE-11 |
owner_facet | DE-29T DE-83 DE-11 |
physical | IX, 240 S. Ill., graph. Darst. |
publishDate | 1999 |
publishDateSearch | 1999 |
publishDateSort | 1999 |
publisher | Springer |
record_format | marc |
series2 | Essential series |
spelling | Cowell, John Verfasser aut Essential Java 2 fast how to develop applications and applets with Java 2 John Cowell London [u.a.] Springer 1999 IX, 240 S. Ill., graph. Darst. txt rdacontent n rdamedia nc rdacarrier Essential series Java (Langage de programmation) Java (Computer program language) Java 2 (DE-588)4503201-4 gnd rswk-swf Applet (DE-588)4424211-6 gnd rswk-swf Java 2 (DE-588)4503201-4 s DE-604 Applet (DE-588)4424211-6 s HEBIS Datenaustausch application/pdf http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=008462097&sequence=000002&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA Inhaltsverzeichnis |
spellingShingle | Cowell, John Essential Java 2 fast how to develop applications and applets with Java 2 Java (Langage de programmation) Java (Computer program language) Java 2 (DE-588)4503201-4 gnd Applet (DE-588)4424211-6 gnd |
subject_GND | (DE-588)4503201-4 (DE-588)4424211-6 |
title | Essential Java 2 fast how to develop applications and applets with Java 2 |
title_auth | Essential Java 2 fast how to develop applications and applets with Java 2 |
title_exact_search | Essential Java 2 fast how to develop applications and applets with Java 2 |
title_full | Essential Java 2 fast how to develop applications and applets with Java 2 John Cowell |
title_fullStr | Essential Java 2 fast how to develop applications and applets with Java 2 John Cowell |
title_full_unstemmed | Essential Java 2 fast how to develop applications and applets with Java 2 John Cowell |
title_short | Essential Java 2 fast |
title_sort | essential java 2 fast how to develop applications and applets with java 2 |
title_sub | how to develop applications and applets with Java 2 |
topic | Java (Langage de programmation) Java (Computer program language) Java 2 (DE-588)4503201-4 gnd Applet (DE-588)4424211-6 gnd |
topic_facet | Java (Langage de programmation) Java (Computer program language) Java 2 Applet |
url | http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=008462097&sequence=000002&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA |
work_keys_str_mv | AT cowelljohn essentialjava2fasthowtodevelopapplicationsandappletswithjava2 |