1 / 1

Recap: Using JDK Help

Recap: Using JDK Help. Why important? Let’s you easily find which classes/methods can do what operations for you The Java libraries are part of the POWER of Java How to do it? Help ~ JDK Help Highlight a class first to go straight to that class Practice using JDK Help: Open JavaEyes

mandel
Download Presentation

Recap: Using JDK Help

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Recap: Using JDK Help • Why important? • Let’s you easily find which classes/methods can do what operations for you • The Java libraries are part of the POWER of Java • How to do it? • Help ~ JDK Help • Highlight a class first to go straight to that class • Practice using JDK Help: • Open JavaEyes • Using JDK Help, determine: • Is pink a predefined Color? • Answer: Yes, it is a static field of the Color class • What method does an ActionListener have to implement? • actionPerformed, a method that takes an ActionEvent and returns nothing • How would you disable a QuitButton? (Hint: look for set… in …) • Apply the setEnabled method with its parameter set to false Instructor: Demo how to answer the following questions while students are working on the questions themselves Style: Setters and getters are usually named set… or get…

More Related