Javabean 101 5

zhaozj2021-02-11  223

Start Beanbox

When you start BeanBox, you will see three windows:

Toolbox Window Beanbox Window Properties window

The Toolbox window shows JavaBeans currently installed in Beanbox, such as some Beans with Beanbox Demo. Once Beanbox starts, it will automatically load the beans included in the bean / jars directory into Toolbox. You can also add additional beans, such as your own design, to Toolbox. In the following courses, we will write a simple JavaBean to demonstrate how to add beans to Toolbox.

The Beanbox window is an empty window in an initial state. You can use this empty window to create an application, sometimes, the empty window is called a form in other constructors.

The third window is the Properties window that displays the properties of the BEAN currently selected. When you start BeanBox for the first time, or when you click on the background area of ​​the Beanbox window, if there is no Bean selected, at this time, the property window shows the properties of Beanbox. You can use the properties window to edit the properties of the bean.

Use BDK Beanbox

Javabean provided using Demo BDK

To understand how Beanbox work, the easiest way is to use it. Beanbox allows you to construct a simple bean application without writing any Java code. As the first example, you can construct a simple "juggler" application that can start or stop the juggling of coffee beans based on your click button.

In this lesson, you can learn:

How to select a bean from Toolbox in Beanbox and change its properties by using the properties table and its corresponding attribute editor. How to make a bean send an event, while another bean responds to events.

转载请注明原文地址:https://www.9cbs.com/read-4769.html

New Post(0)