JavaBeans Section Index | Page 2
Where can I learn (more) about Java JSP (JavaServer Pages)?
Check out the jGuru JSP FAQ.
Where can I learn (more) about Java's EJB (Enterprise JavaBeans)?
Check out the jGuru EJB FAQ.
Where can I learn (more) about the Java programming language syntax and semantics?
Check out the
jGuru JavaLanguage FAQ.
Where can I learn (more) about using the Java Swing windowing components to build GUIs (Graphical User Interfaces)?
Check out the jGuru Swing
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
What is introspection in JavaBeans?
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 BDK1.1 on Windows, what's involved in setting up my machine to use it?
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
How can a JavaBean be used as a distributed object in RMI or CORBA?
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
Are there tools to package existing C++ objects as Java Beans?
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?
How can I send an attachment without having
to use a physical file?
What causes an "javax.activation.UnsupportedDataTypeException: no object DCH for MIME type xxx/xxxx javax.mail.MessagingException: IOException while sending message;" to be sent and how do I fix this? [This happens for known MIME types like text/html.]
The Java Activation Framework used by JavaMail is not configured correctly.
It doesn't know how to handle the text/html content type.
An html handler is provided in JavaMail 1.1.3 but the mailc...more