JavaBeans Section Index | Page 2
The persistence scheme added in JDK 1.4 uses instances of the XMLEncoder class to write out files representing JavaBeans components. Every file writte...more
IDAutomation has a set of commercial beans, applets, and servlets for dynamic bar code generation.
These are found in the dt.jar file that comes with the JDK. They are NOT in your CLASSPATH by default.
Where can I learn (more) about using the Java Swing windowing components to build GUIs (Graphical User Interfaces)?
Check out the jGuru Swing FAQ.
Check out the jGuru Patterns FAQ.
Is it possible to create static properties/methods of a bean class? Does the beans spec cover this and can builder tools handle a singleton bean, for example?
There is nothing that stops you from creating static methods within a Bean class. However, they won't be treated as properties. Also not supported is creating beans from methods other than the con...more
Introspection is the ability to ask a JavaBean component what properties and events it supports. By default, introspection is supported by reflection, where you name methods with certain naming pa...more
After installing the BDK, to run the BeanBox all you need to do is execute the run.bat file for Windows or the run.sh file for Unix. There is no other setup requirements like setting the CLASSPATH...more
A JavaBean is only a Java object that, by reflection, exports properties that a JavaBean container uses. Considering that, there's no restrictions about what, let's say 'inside methods', a JavaBe...more
VisualAge for Java C++ Access Builder cxxwrap more
How can I instantiate a serialized JavaBean into an applet if my .ser file is in jar or zip archive?
The Beans.instantiate() method needs to be passed the proper classloader. Just passing in null is not sufficient for an applet. For instance, if your class was Foo.class, use the following: Beans....more
What is the intention of the EventListener interface as it seems to me that it actually has no abstract methods no abstract attributes (or is this wrong)?
The purpose of the EventListener interface is similar to that of the Serializable interface. Its a flagging interface. In the case of EventListener, it allows the bean builder tool, like JBuilder,...more
How do you extend JComponent to make your custom GUI component but disable the container methods without over riding them, so that a IDE will not think it is a container?
The way to flag a custom, extended JComponent such that an IDE treats it as a component and not a container is through the new component's BeanInfo. The isContainer attribute needs to be false.more
How can I read the initialization parameters for a bean, i.e. similar to what happens in servlets when we user the ServletConfig class and then use it's getInitParameter() function?
The initial version of the JavaBeans API included no direct support for this. You would have had to program it in yourself. The simplest way to do this was to use a (java.util.)Properties file and...more
How can I send an attachment without having to use a physical file?