📄 ewtoc.html
字号:
<LI><A HREF="ch20.htm#ExampleCreatingaMultipleSelectionList">Example: Creating a Multiple-Selection List</A><LI><A HREF="ch20.htm#ExampleCreatingaScrollingList">Example: Creating a Scrolling List</A><LI><A HREF="ch20.htm#MethodsoftheIListIClass">Methods of the <I>List</I> Class</A><LI><A HREF="ch20.htm#ExampleUsingaScrollingListinanApplet">Example: Using a Scrolling List in an Applet</A></UL><LI><A HREF="ch20.htm#TheITextAreaIControl">The <I>TextArea</I> Control</A><UL><LI><A HREF="ch20.htm#ExampleCreatingaITextAreaIControl">Example: Creating a <I>TextArea</I> Control</A><LI><A HREF="ch20.htm#MethodsoftheITextAreaIClass">Methods of the <I>TextArea</I> Class</A></UL><LI><A HREF="ch20.htm#Summary">Summary</A><LI><A HREF="ch20.htm#ReviewQuestions">Review Questions</A><LI><A HREF="ch20.htm#ReviewExercises">Review Exercises</A></UL><A HREF="ch21.htm"><b>Chapter 21:</b> Scrollbar and Canvas Controls</A><UL><LI><A HREF="ch21.htm#Scrollbars">Scrollbars</A><UL><LI><A HREF="ch21.htm#ExampleCreatingaScrollbar">Example: Creating a Scrollbar</A><LI><A HREF="ch21.htm#RespondingtoaScrollbar">Responding to a Scrollbar</A><LI><A HREF="ch21.htm#ExampleUsingaScrollbarinanApplet">Example: Using a Scrollbar in an Applet</A><LI><A HREF="ch21.htm#Canvases">Canvases</A><LI><A HREF="ch21.htm#ExampleUsingaCanvasinanApplet">Example: Using a Canvas in an Applet</A></UL><LI><A HREF="ch21.htm#Summary">Summary</A><LI><A HREF="ch21.htm#ReviewQuestions">Review Questions</A><LI><A HREF="ch21.htm#ReviewExercises">Review Exercises</A></UL><A HREF="ch22.htm"><b>Chapter 22:</b> Panels and Layout Managers</A><UL><LI><A HREF="ch22.htm#Panels">Panels</A><UL><LI><A HREF="ch22.htm#ExampleCreatingandUsingPanels">Example: Creating and Using Panels</A></UL><LI><A HREF="ch22.htm#LayoutManagers">Layout Managers</A><LI><A HREF="ch22.htm#TheIFlowLayoutIManager">The <I>FlowLayout</I> Manager</A><UL><LI><A HREF="ch22.htm#ExampleCreatingaIFlowLayoutIManager">Example: Creating a <I>FlowLayout</I> Manager</A></UL><LI><A HREF="ch22.htm#TheIGridLayoutIManager">The <I>GridLayout</I> Manager</A><UL><LI><A HREF="ch22.htm#CreatingaIGridLayoutIManager">Creating a <I>GridLayout</I> Manager</A></UL><LI><A HREF="ch22.htm#TheIBorderLayoutIManager">The <I>BorderLayout</I> Manager</A><UL><LI><A HREF="ch22.htm#CreatingaIBorderLayoutIManager">Creating a <I>BorderLayout</I> Manager</A></UL><LI><A HREF="ch22.htm#TheICardLayoutIManager">The <I>CardLayout</I> Manager</A><UL><LI><A HREF="ch22.htm#TheICardLayoutIManagerMethods">The <I>CardLayout</I> Manager Methods</A><LI><A HREF="ch22.htm#ExampleCreatingaICardLayoutIManager">Example: Creating a <I>CardLayout</I> Manager</A></UL><LI><A HREF="ch22.htm#TheIGridBagLayoutIManager">The <I>GridBagLayout</I> Manager</A><UL><LI><A HREF="ch22.htm#CreatingandSettingtheIGridBagLayoutIManager">Creating and Setting the <I>GridBagLayout</I> Manager</A><LI><A HREF="ch22.htm#CreatingandSettingaIGridBagConstraintsIObject">Creating and Setting a <I>GridBagConstraints</I> Object</A><LI><A HREF="ch22.htm#ExampleUsingaIGridBagLayoutIManagerinanApplet">Example: Using a <I>GridBagLayout</I> Manager in an Applet</A><LI><A HREF="ch22.htm#UnderstandingtheIGridBagAppletIApplet">Understanding the <I>GridBagApplet</I> Applet</A></UL><LI><A HREF="ch22.htm#Summary">Summary</A><LI><A HREF="ch22.htm#ReviewQuestions">Review Questions</A><LI><A HREF="ch22.htm#ReviewExercises">Review Exercises</A></UL><A HREF="ch23.htm"><b>Chapter 23:</b> Windows and Menu Bars</A><UL><LI><A HREF="ch23.htm#DisplayingaWindow">Displaying a Window</A><UL><LI><A HREF="ch23.htm#ExampleDisplayingaWindowinanApplet">Example: Displaying a Window in an Applet</A><LI><A HREF="ch23.htm#ExampleCreatingaWindowClass">Example: Creating a Window Class</A><LI><A HREF="ch23.htm#ExampleAddingComponentstoaWindow">Example: Adding Components to a Window</A></UL><LI><A HREF="ch23.htm#UsingMenuBars">Using Menu Bars</A><UL><LI><A HREF="ch23.htm#CreatingandSettingaMenuBarObject">Creating and Setting a MenuBar Object</A><LI><A HREF="ch23.htm#AddingMenustoaMenuBar">Adding Menus to a Menu Bar</A><LI><A HREF="ch23.htm#AddingMenuItemstoMenus">Adding Menu Items to Menus</A><LI><A HREF="ch23.htm#ExampleUsingaMenuBarinaFrameWindow">Example: Using a Menu Bar in a Frame Window</A></UL><LI><A HREF="ch23.htm#Summary">Summary</A><LI><A HREF="ch23.htm#ReviewQuestions">Review Questions</A><LI><A HREF="ch23.htm#ReviewExercises">Review Exercises</A></UL><A HREF="ch24.htm"><b>Chapter 24:</b> Dialog Boxes</A><UL><LI><A HREF="ch24.htm#UsingaDialogBox">Using a Dialog Box</A><UL><LI><A HREF="ch24.htm#CreatingtheDialogBox">Creating the Dialog Box</A><LI><A HREF="ch24.htm#CreatingtheDialogBoxsLayout">Creating the Dialog Box's Layout</A><LI><A HREF="ch24.htm#DisplayingtheDialogBox">Displaying the Dialog Box</A><LI><A HREF="ch24.htm#RemovingtheDialogBox">Removing the Dialog Box</A><LI><A HREF="ch24.htm#MethodsoftheDialogClass">Methods of the Dialog Class</A><LI><A HREF="ch24.htm#ExampleADialogBoxforTextInput">Example: A Dialog Box for Text Input</A></UL><LI><A HREF="ch24.htm#Summary">Summary</A><LI><A HREF="ch24.htm#ReviewQuestions">Review Questions</A><LI><A HREF="ch24.htm#ReviewExercises">Review Exercises</A></UL><A HREF="ch25.htm"><b>Chapter 25:</b> Mouse and Keyboard Events</A><UL><LI><A HREF="ch25.htm#TheEventObject">The Event Object</A><LI><A HREF="ch25.htm#TheMouse">The Mouse</A><UL><LI><A HREF="ch25.htm#HandlingMouseClicks">Handling Mouse Clicks</A><LI><A HREF="ch25.htm#ExampleUsingMouseClicksinanApplet">Example: Using Mouse Clicks in an Applet</A><LI><A HREF="ch25.htm#HandlingMouseMovement">Handling Mouse Movement</A><LI><A HREF="ch25.htm#ExampleRespondingtoMouseMovementinanApplet">Example: Responding to Mouse Movement in an Applet</A></UL><LI><A HREF="ch25.htm#TheKeyboard">The Keyboard</A><UL><LI><A HREF="ch25.htm#RespondingtoKeyPresses">Responding to Key Presses</A><LI><A HREF="ch25.htm#PredefinedKeyConstants">Predefined Key Constants</A><LI><A HREF="ch25.htm#KeyModifiers">Key Modifiers</A><LI><A HREF="ch25.htm#ExampleUsingKeyPressesinanApplet">Example: Using Key Presses in an Applet</A></UL><LI><A HREF="ch25.htm#HandlingEventsDirectly">Handling Events Directly</A><UL><LI><A HREF="ch25.htm#ExampleOverridingIhandleEventIinanApplet">Example: Overriding <I>handleEvent()</I> in an Applet</A></UL><LI><A HREF="ch25.htm#Summary">Summary</A><LI><A HREF="ch25.htm#ReviewQuestions">Review Questions</A><LI><A HREF="ch25.htm#ReviewExercises">Review Exercises</A></UL><A HREF="ch26.htm"><b>Chapter 26:</b> Configurable Applets</A><UL><LI><A HREF="ch26.htm#TypesofUsers">Types of Users</A><LI><A HREF="ch26.htm#ParametersandApplets">Parameters and Applets</A><UL><LI><A HREF="ch26.htm#ExampleSettingandRetrievingaParametersValue">Example: Setting and Retrieving a Parameter's Value</A><LI><A HREF="ch26.htm#ExampleUsingaParameterinanApplet">Example: Using a Parameter in an Applet</A></UL><LI><A HREF="ch26.htm#MultipleParameters">Multiple Parameters</A><UL><LI><A HREF="ch26.htm#ExampleUsingMultipleParametersinanApplet">Example: Using Multiple Parameters in an Applet</A></UL><LI><A HREF="ch26.htm#DefaultParameterValues">Default Parameter Values</A><UL><LI><A HREF="ch26.htm#ExampleUsingDefaultParametersinanApplet">Example: Using Default Parameters in an Applet</A></UL><LI><A HREF="ch26.htm#Summary">Summary</A><LI><A HREF="ch26.htm#ReviewQuestions">Review Questions</A><LI><A HREF="ch26.htm#ReviewExercises">Review Exercises</A></UL><A HREF="ch27.htm"><b>Chapter 27:</b> Images and Sounds</A><UL><LI><A HREF="ch27.htm#ImageTypes">Image Types</A><LI><A HREF="ch27.htm#LoadingandDisplayinganImage">Loading and Displaying an Image</A><UL><LI><A HREF="ch27.htm#ExampleUsingtheIgetDocumentBaseIMethod">Example: Using the <I>getDocumentBase()</I> Method</A><LI><A HREF="ch27.htm#ExampleUsingtheIgetCodeBaseIMethod">Example: Using the <I>getCodeBase()</I> Method</A><LI><A HREF="ch27.htm#LoadinganImage">Loading an Image</A><LI><A HREF="ch27.htm#DisplayinganImage">Displaying an Image</A><LI><A HREF="ch27.htm#ExampleDisplayinganImageinanApplet">Example: Displaying an Image in an Applet</A></UL><LI><A HREF="ch27.htm#PlayingaSound">Playing a Sound</A><UL><LI><A HREF="ch27.htm#ExampleUsingtheIplayIMethod">Example: Using the <I>play()</I> Method</A><LI><A HREF="ch27.htm#ExamplePlayingaSoundinanApplet">Example: Playing a Sound in an Applet</A><LI><A HREF="ch27.htm#ControllingSounds">Controlling Sounds</A><LI><A HREF="ch27.htm#ExampleUsinganAudioClipinanApplet">Example: Using an AudioClip in an Applet</A></UL><LI><A HREF="ch27.htm#Summary">Summary</A><LI><A HREF="ch27.htm#ReviewQuestions">Review Questions</A><LI><A HREF="ch27.htm#ReviewExercises">Review Exercises</A></UL><A HREF="ch28.htm"><b>Chapter 28:</b> Communications</A><UL><LI><A HREF="ch28.htm#URLObjects">URL Objects</A><UL><LI><A HREF="ch28.htm#ExampleCreatinganURLObject">Example: Creating an URL Object</A><LI><A HREF="ch28.htm#URLExceptions">URL Exceptions</A></UL><LI><A HREF="ch28.htm#TheAppletContext">The Applet Context</A><UL><LI><A HREF="ch28.htm#ExampleUsinganAppletContexttoLinktoanURL">Example: Using an AppletContext to Link to an URL</A><LI><A HREF="ch28.htm#ExampleUsinganAppletContextinanApplet">Example: Using an AppletContext in an Applet</A></UL><LI><A HREF="ch28.htm#CreatingaquotFavoriteURLsquotApplet">Creating a "Favorite URLs" Applet</A><LI><A HREF="ch28.htm#Summary">Summary</A><LI><A HREF="ch28.htm#ReviewQuestions">Review Questions</A><LI><A HREF="ch28.htm#ReviewExercises">Review Exercises</A></UL><A HREF="ch29.htm"><b>Chapter 29:</b> Packages and Interfaces</A><UL><LI><A HREF="ch29.htm#Packages">Packages</A><UL><LI><A HREF="ch29.htm#CreatingYourOwnPackages">Creating Your Own Packages</A><LI><A HREF="ch29.htm#ExampleCreatingaSimplePackage">Example: Creating a Simple Package</A><LI><A HREF="ch29.htm#ExampleUsingtheNewPackage">Example: Using the New Package</A><LI><A HREF="ch29.htm#ExampleExtendingthePackage">Example: Extending the Package</A></UL><LI><A HREF="ch29.htm#Interfaces">Interfaces</A><UL><LI><A HREF="ch29.htm#TheBasicInterface">The Basic Interface</A><LI><A HREF="ch29.htm#ExampleCreatinganInterface">Example: Creating an Interface</A><LI><A HREF="ch29.htm#ImplementinganInterface">Implementing an Interface</A></UL><LI><A HREF="ch29.htm#Summary">Summary</A><LI><A HREF="ch29.htm#ReviewQuestions">Review Questions</A><LI><A HREF="ch29.htm#ReviewExercises">Review Exercises</A></UL><A HREF="ch30.htm"><b>Chapter 30:</b> Exceptions</A><UL><LI><A HREF="ch30.htm#JavasExceptions">Java's Exceptions</A><LI><A HREF="ch30.htm#ThrowinganException">Throwing an Exception</A><LI><A HREF="ch30.htm#TypesofExceptions">Types of Exceptions</A><LI><A HREF="ch30.htm#DeterminingtheExceptionstoHandle">Determining the Exceptions to Handle</A>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -