Beans Program
Beans Program
Beans.**
Starting the BDK:
1. Change to the directory c:\bdk\beanbox.
2. Execute the batch file called run.bat. This causes the BDK to display the
three windows. ToolBox lists all of the different Beans that have been
included with the BDK. BeanBox provides an area to lay out and connect the
Beans selected from the ToolBox. Properties provides the ability to
configure a selected Bean. You may also see a window called Method Tracer.
7. Test.
(Source file)
import javax.swing.*;
JLabel lname;
JTextField tname;
public Logo1(){
lname=new JLabel(sname);
tname=new JTextField(10);
add(lname); add(tname);}
sname=str;
lname.setText(sname);}
(Manifest file)
Manifest-Version: 1.0
Name: Logo1.class
Java-Bean: True
Output:-
Load the jar file by using menu File->Load jar. Now use the bean loaded and change its
propertysname.