June 2002
Beginner to intermediate
640 pages
14h 24m
English
With Jython, you can use JavaBeans properties like instance attributes, which makes it easy to interact with Java classes. You can also use them as keyword arguments to Java class constructors (like Tcl/Tk).
About JavaBeansJavaBeans have properties and events, much like ActiveX controls, which are a lot like OLE controls (OCXs), which are like Visual Basic controls (VBX). To make a short story long, JavaBeans allow IDE (Integrated Development Environments) to do mundane things that you used to have to write code for. |
In Java, you need the set() and get() methods to define a property. Let's say that you create a property called name that you want to be both read and write. You can define two methods for it.
public void setName(String ...
Read now
Unlock full access