Recap: Using JDK Help - PowerPoint PPT Presentation

recap using jdk help n.
Download
Skip this Video
Loading SlideShow in 5 Seconds..
Recap: Using JDK Help PowerPoint Presentation
Download Presentation
Recap: Using JDK Help

play fullscreen
1 / 1
Recap: Using JDK Help
79 Views
Download Presentation
mandel
Download Presentation

Recap: Using JDK Help

- - - - - - - - - - - - - - - - - - - - - - - - - - - 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…