• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Bean Info And Netbeans IDE

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

I'm trying to generate a Bean Info class with netbeans, I've set the preferred fields with the Bean editor from Netbeans.

Now when I use the designer I can right click and in the binding menu the preferred fields are shown and I can set up every thing nicely. But, if I bind a JTable, to my custom widget (it's a combobox that inherits from JComponent) and bind it to the selectedItem, the class that is returned is a plain Object. Im unable to see the fields of the Object that is in the selectedElement field.

JCombobox, JTable and all the others will show the fields from the object that is in the selectedElement field.

How can I achieve the same with my widget? It consists of a JFormattedTextField, a JButton, a JList and a JPopupMenu.

The methods used to set the data are setSelectedElement(Object object) and setElements(List list)

The getters are Object getSelectedElement() and getElements()

Thank you for your time an greetings
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic