download support shop

Class Tab

Screenshot of Examples Tab The Class Tab lists elements, constructors and fields. It also displays the inheritance tree and shows frequently used superclasses.

To the left, the Class Tab for javax.swing.JButton is shown.
First, the five superclasses from which JButton inherits are shown. Clicking on any superclass navigates to that class.

The next tree branch shows frequently used super elements. They show frequently used inherited methods.

The next three branches show fields (no fields available here), constructors and methods. Elements are not sorted alphabetically but by relevance. The value next to each element (e.g. 20 for getAccessibleContext() is a density measure. In terms of usage, getAccessibleContext() is located on the 20% percentile of all J2SE elements. In other words: getAccessibleContext() is used more frequently than the lowest-frequent 20% of J2SE elements. Compare this to its most frequently used inherited method which is on the 51% percentile.

The branch with frequently used super elements shows which inherited elements are frequently used (see the screenshot below). The most widely used method of a super class of JButton is addActionListener() with 51% but setEnabled() and setText() are also very frequent.

Screenshot Super Elements

Clicking on one of the super elements opens the super class. The Code Examples Tab now shows examples for the use of this inherited method (where JButton is the base class). This is particularly useful when subclasses use the same superclass methods in slightly different ways.

  

Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc.