[nbusers] Re: Property description of custom UI component

  • From: Mitch Claborn < >
  • To:
  • Subject: [nbusers] Re: Property description of custom UI component
  • Date: Fri, 16 Nov 2012 10:05:14 -0600

Also, NetBeans has a pretty nice editor for BeanInfo classes. Just right click on your bean and choose "BeanInfo Editor".


Mitch

On 11/15/2012 09:37 AM, Wade Chandler wrote:
On 11/15/2012 10:14 AM, Mitch Claborn wrote:
I have various classes that inherit from standard Swing components,
e.g. MyTable inherits from JTable and has some custom properties. In
the property editor in NB, I can see and manipulate the property setting.

How can I make NB show a short description of my custom properties in
the property editor the way it does for the standard properties?


You need to create a BeanInfo and return property descriptors. See the
java.beans package as well as look up the JavaBeans specifications
(reading those will help a lot). Too, you will want to implement
property change listeners. NB follows the specifications

Hope it helps,

Wade



[nbusers] Property description of custom UI component

Mitch Claborn 11/15/2012

[nbusers] Re: Property description of custom UI component

Wade Chandler 11/15/2012

[nbusers] Re: Property description of custom UI component

Mitch Claborn 11/16/2012

Project Features

About this Project

www was started in November 2009, is owned by jpirek, and has 21 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20140418.2d69abc). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close