JavaBeans Section Index | Page 4
JavaBeans is a component architecture for defining reusable components for Java. The JavaBeans specification defines just how to create/define such components. These components may be graphical or...more
You can deliver a bean as either its bytecode (compiled Java code) or as a serialized object (after the bean instance is serialized to a file (*.ser)). The difference is that when you load the bea...more
Event firing in Java requires the following elements An event class to transmit information about the event An interface that describes how the bean will notify interested parties, known as liste...more
It is all given in the JavaBeans Spec 1.01 which can be downloaded from http://java.sun.com/beans/docs/spec.html See the section on Instantiating a bean (10.3) more
When using the beanbox in the BDK to hook up events, the intermediate dialog box does not close and the class files do not get generated. What's wrong?
The BDK can't find the Java compiler. You've probably uninstalled the original compiler you told the BDK about. Try uninstalling and reinstalling the software, telling the tool where to find the c...more
JBCL stands for the JavaBeans Component Library. It is a set of components built on top of Swing that come with JBuilder. They are data aware components that include direct support for JDBC and ar...more
There is an article at The Code Project which explains how: http://www.codeproject.com/java/javacom.asp.
A JavaBean is really just a reusable Java object with certain properties and features. This FAQ on the Sun site has a definition of what a JavaBean is and details of the features that make them s...more
How do I set up a default mime type for unknown file types using MimetypesFileTypeMap? At present when sending a message with an attached file of unknown file type a NullPointerException is thrown.
Just create a new map and ask: MimetypesFileTypeMap mmp = new MimetypesFileTypeMap(); System.out.println(mmp.getContentType("d: ajeshlbc.jpg"));
There are many different places you can hunt out beans. Here are just a few: Sun maintains a list at http://industry.java.sun.com/solutions/beans/. The sole purpose of the company Flashline is to...more
You can use the Java Plug-in. The necessary information is at Using JavaBeansTM with Microsoft ActiveX Components. You can also find information in the FAQ at Sun's site: http://www.javasoft.com/...more
To make a fixed size component, just override the getMinimum/Preferred methods to return the fixed size. You should also provide the bean with its own BeanInfo class to effectively hide the size p...more
The proper way to create JavaBean components is through the Beans.instantiate() method. Beans.instantiate() loads the class and creates the Class object. Then it instantiates an instance of that c...more
JavaBeans are a set of rules to follow to create reusable software components, or beans. This contains properties and events. At the end you have a component which could be examined by a program (...more
In the BeanInfo for a component, you associate the customizer with the bean by creating a BeanDescriptor and returning it from the getBeanDescriptor() method. public class HireBeanInfo extend...more