Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Overriding a Node

Before you can learn about overriding a node, a critical question needs to be answered. What is overriding?

Classes, such as Node and SwingComboBox, contain methods and properties. You as a developer can take these methods and properties and change their default actions to whatever you want. For example, let’s say you have a Dog class with a method called displayBreed(), as shown here:


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial