PropertyEditor interface provides support for GUIs to enable editing a property value of a given type. The interface supports a variety of ways to display and update property values.
I needed to load the classes from the
dt.jar archive on the fly. The path to the archive was generated automatically based on the "java.home" system property. The original idea was to use the
URLClassLoader, but it could not find classes.
I would like to discuss some proposed changes in the JColorChooser component.
Correct usage of constrained properties seems still remain unclear for many users.
Lets talk about
FeatureDescriptor, the superclass for all other descriptors. It enables to add extra metadata to describe the beans. The builder tool could use such metadata to provide enhanced functionality.
The @ConstructorProperties annotation for constructors was introduced in JDK version 6. This annotation shows how the parameters of annotated constructor correspond to object's properties.
As you may know, Enums were introduced in Tiger, but they are not supported by XMLEncoder.
This article describes how to encode them into XML properly.
Let's create a simple Enum with static method to test encoding into XML: