Essential Java Fast
Springer Berlin (Verlag)
978-3-540-76052-8 (ISBN)
1 Why Use Java?.- What is Java?.- Is this book for you?.- What you need to run Java.- How to use this book.- Conventions.- 2 Object Orientation Primer.- What are objects?.- Classes.- Attributes and behaviour.- Inheritance.- Why use inheritance?.- 3 Java Applets.- Applets and applications.- Why applets are different.- A simple applet.- Initialising an applet.- Starting an applet.- Stopping an applet.- Destroying an applet.- Displaying text and graphics.- Java and HTML.- HTML tags.- The applet tag.- Creating an applet.- Controlling the applet size and position.- Compiling applications.- Command line arguments for applications.- Command line arguments for applets.- 4 The Java Language.- Applications and applets.- Features of Java programs.- Names in Java.- Running a Java application.- Key elements of a Java program.- Classes.- New objects.- Data types.- Arrays.- Methods.- Calling methods.- Creating a class and an object.- Instance variables.- Class variables.- Constants.- Using instance variables.- Using class variables.- The keyword this.- Arithmetic in Java.- Assigning number variables.- Casting.- Assigning characters, strings and boolean variables.- Assignment operators.- Assigning objects.- Comparison operators.- Comparing objects.- Overloaded methods.- Constructors.- The finalize method.- 5 Branching and Looping.- If...else statements.- Block statements.- The conditional operator.- Switch statements.- Looping.- While loops.- Do..while loops.- For loops.- Quitting loops.- Java operators.- Bitwise operators.- Logical operators.- Operator precedence.- Using strings in Java.- 6 Graphics.- Graphics basics.- Graphics drawing methods.- Lines and points.- Rectangles.- Plain rectangles.- Rounded rectangles.- 3D-effect rectangles.- Polygons.- Ovals.- Arcs.- Colour.- Pre-definedcolour.- Defining colours.- Changing object colours.- Text and fonts.- Using images.- The drawlmage method.- The keyword this.- 7 Animation and Multithreading.- Multithreading.- Creating new threads.- Pre-emptive scheduling.- Problems with multiple threads.- The synchronized keyword.- Using Runnable.- Thread priorities.- Animation.- The bouncing ball applet.- Using threads.- Reducing flicker.- Overriding methods.- Overriding update.- Using double buffering.- 8 Handling Exceptions.- What are exceptions?.- Java exceptions.- The java.lang.Exception class.- Trying and catching.- Throwing and catching.- Using finally.- 9 The Java.Awt Package.- Event driven programming.- What the AWT does.- The Button component.- The Label component.- The Scrollbar component.- The Checkbox component.- The List component.- The TextField component.- Entering passwords.- The TextArea component.- Controlling layout.- The FlowLayout class.- The GridLayout class.- The GridBagLayout class.- The BorderLayout class.- The CardLayout class.- Layout methods.- Using the layout managers.- 10 Handling Events.- Mouse events.- The mouseDown and mouseUp events.- Boolean methods.- The line drawing applet.- The scribble applet.- Keyboard events.- The handleEvent method.- The action method.- 11 Windows, Dialogs and Menus.- Creating and displaying windows.- Adding objects to pages.- Menus.- Types of menu items.- Enabling and disabling menu items.- The Dialog subclass.- Windows methods.- 12 Input and Output Streams.- The java.io package.- The FilelnputStream class.- Reading from streams.- The skip and mark methods.- The ByteArraylnputStream class.- The StringBufferinputStream class.- The FilterinputStream class.- The BufferedlnputStream class.- The DatalnputStream class.- The LineNumberinputStream class.- The PushbacklnputStream class.- The PipedlnputStream class.- The SequencelnputStream class.- The OutputStream class.- The FileOutputStream class.- Writing to streams.- The ByteArrayOutputStream class.- The FilterOutputStream class.- The BufferedOutputStream class.- The PrintStream class.- The DataOutputStream class.- The PipedOutputStream class.- 13 Modifiers and Packages.- Access control.- The public access modifier.- The private access modifier.- The package access modifier.- The protected access modifier.- Accessor methods.- The final modifier.- Using packages.- Why use packages?.- Importing packages.- The java.lang package.- 14 Java and C++.- Data types.- Using strings.- Command line arguments.- Exception handling.- Miscellaneous differences.- Appendix A Java Packages.- Reserved words.- Reserved characters.- Java operators.- Java data types.- The Java class library.- Appendix B Class Hierarchies.- Class hierarchy.
Erscheint lt. Verlag | 18.2.1997 |
---|---|
Reihe/Serie | Essential Series |
Zusatzinfo | X, 186 p. |
Verlagsort | London |
Sprache | englisch |
Maße | 155 x 235 mm |
Gewicht | 314 g |
Themenwelt | Informatik ► Programmiersprachen / -werkzeuge ► Java |
Informatik ► Theorie / Studium ► Compilerbau | |
Schlagworte | Animation • Applets • C++ programming language • Exception • HTML • interaction • Java • Java Applet • JAVA (Programmiersprache) • Multithreading • programming • Programming language • Programming language A • Scheduling • WINDOWS |
ISBN-10 | 3-540-76052-0 / 3540760520 |
ISBN-13 | 978-3-540-76052-8 / 9783540760528 |
Zustand | Neuware |
Haben Sie eine Frage zum Produkt? |
aus dem Bereich