Skip to main content

Sergey Malenkov

Sergey Malenkov is an engineer on the Swing team from Saint-Petersburg, Russia. He is responsible engineer for JavaBeans technologies: introspection, customization and long term persistence. Also he is interested in game development.

 

malenkov's blog

How to compile on the fly?

Posted by malenkov on December 17, 2008 at 12:00 AM PST

A 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.

How to load classes from JAR or ZIP?

Posted by malenkov on July 25, 2008 at 6:08 AM PDT

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.

It is time to choose Color

Posted by malenkov on December 19, 2007 at 10:09 AM PST

I would like to discuss some proposed changes in the JColorChooser component.

How to veto a property change?

Posted by malenkov on November 22, 2007 at 3:01 AM PST

Correct usage of constrained properties seems still remain unclear for many users.

JavaBeans: feature attributes

Posted by malenkov on October 4, 2007 at 7:29 AM PDT

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.

How to use the @ConstructorProperties annotation

Posted by malenkov on March 20, 2007 at 6:00 PM PDT

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.

XMLDecoder improvements

Posted by malenkov on October 31, 2006 at 9:58 AM PST

I would like to start a discussion about XMLDecoder improvements. Some requests can be found in RFE 4864117.

How to encode Type-Safe Enums?

Posted by malenkov on August 9, 2006 at 10:00 PM PDT

This is a sequel of my first article about Enums encoding.

As you may know, Type-Safe Enums were proposed by Joshua Bloch in Effective Java,

How to encode Enums?

Posted by malenkov on August 7, 2006 at 6:00 PM PDT

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: