10 likes | 116 Vues
Discover the importance of using JDK help to navigate Java classes and methods effortlessly. Learn how to find operations efficiently and unveil the power of Java libraries. Practice using JDK Help to answer common questions on Color classes and ActionListener methods with easy-to-follow instructions.
E N D
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…