I have a lot of experience programming in java but no experience doing
any component/bean development experience. I'm trying to write a java
bean that handles socket communications and can be placed on a
form/frame/whatever and display the state of the connection as some
sort of graphic (like a rectangle that is green when the connection is
valid and red when it is not). I've found a lot of older tutorials
that tell how to make java beans but I'm looking for one that
specifically talks about how to use the NetBeans IDE (version 4 would
be great) to make a graphical bean or something close to that. Any
help in pointing me in the right direction would be appreciated.
Christian Schlichtherle - 14 Jun 2005 16:42 GMT
Hi,
first, read the JavaBeans specification 1.01 (available for download at
java.sun.com) carefully and then the online manual for NetBeans. There is a
section called "" about this topic.
In short: Once you have written your JavaBean, click on the menu "Tools" ->
"Palette Manager". In the upcoming window, select "Beans" and follow the
instructions.
To add your beans to a new file, select "File" -> "New File..." and in the
upcoming window select "Java GUI Forms" -> "Bean Form" (even for non-visual
JavaBeans). Now you can drag and drop your beans from the palette to the
form and interactively work with your beans.
Good luck...