3

I'm wondering whether there is an existing Java class that, given a Java bean, uses introspection to find all the publicly modifiable fields, and displays them using default PropertyEditors. I see a bunch of information about BeanInfo, PropertyEditor, Bean Customizers, but nowhere can I find actual examples.

Basically I want the functionality of the Inspector window from XCode or the Properties panel in Netbeans.

Netbeans properties panel

Glorfindel
  • 21,988
  • 13
  • 81
  • 109
I82Much
  • 26,901
  • 13
  • 88
  • 119

4 Answers4

1

Found another potential one: Java-Bean-Examiner. But I cannot log into the CVS to download the source.

I82Much
  • 26,901
  • 13
  • 88
  • 119
1

Looks like L2FProd commons library has something just up my alley:

http://www.l2fprod.com/common/

Searching some more on StackOverflow turned up this answer, in which Yan Cheng Check noted that he extended the classes to be exactly what I need: ObjectInspectorJPanel EnumComboBoxPropertyEditor

Community
  • 1
  • 1
I82Much
  • 26,901
  • 13
  • 88
  • 119
0

NetBeans is open source; you could use that (i.e. find the relevant piece of code within the project - I think it's called the Inspector)

oxbow_lakes
  • 133,303
  • 56
  • 317
  • 449
  • Actually it's called the Property Editor according to http://java.sun.com/docs/books/tutorial/uiswing/learn/netbeansbasics.html . Unfortunately I've been having a really hard time getting the source to netbeans... is there some trick I'm missing? – I82Much Nov 23 '09 at 16:21
  • Downloading through mercurial now: http://wiki.netbeans.org/WorkingWithNetBeansSources – I82Much Nov 23 '09 at 19:04
  • 1
    The NetBeans stuff is VERY complicated (I have been learning it over the past month or so). Not very well documented, IMO, at least with respect to the property sheets. – I82Much Jun 02 '10 at 22:26
0

Sound like you want the old sun BeanEditor

Tim Williscroft
  • 3,705
  • 24
  • 37