🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #16595

Re: JavaBeans vs Java

#16595
From: Michael Lundahl
Date: Fri, 29 Jan 1999 00:00
32 lines
2210 bytes
In article <36B07DFC.31709EE4@micron.net>,
	Peter Immarco <android@micron.net> writes:
>Hello,
>
>Pardon this extreme novice question but I am just getting started in the
>
>world of Java.  What is the difference between JavaBeans and Java:

Simply put, it's a java class written in a certain way, according to a 
so called design pattern. If you do this, visual programming tools
such as NetBeans or JBuilder can read this class and put it on it's 
component-palette.

In practice it means: 

All attributes are private and there are get- and setmethods 
for changing them...

private integer value

public integer getValue(){ ... }
public void    setValue(integer newValue) { ... }

Events have their listeners named in a certain manner, meaning that 
the programmingtools can figure out which events the clas can send.


Also, if you for instance have a class/javabean named MyClass, you can
create a class MyClassBeanInfo which contains tailored info for
your javabean.

/Michael
Technical Details
Message-ID: <78rtuj$2pe$1@news.lth.se>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <36B07DFC.31709EE4@micron.net>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 108bbb,7946fb99f038ef31
X-Google-Attributes: gid108bbb,public
X-Google-Thread: f5d71,7946fb99f038ef31
X-Google-Attributes: gidf5d71,public
X-Google-Thread: f4581,7946fb99f038ef31
X-Google-Attributes: gidf4581,public
X-Google-Thread: 114aa0,7946fb99f038ef31
X-Google-Attributes: gid114aa0,public
X-Google-Thread: f74b3,7946fb99f038ef31
X-Google-Attributes: gidf74b3,public
X-Google-Thread: 10a146,7946fb99f038ef31
X-Google-Attributes: gid10a146,public
X-Google-Thread: f5e83,7946fb99f038ef31
X-Google-Attributes: gidf5e83,public
X-Google-Thread: 100145,7946fb99f038ef31
X-Google-Attributes: gid100145,public
From: d93mlu@efd.lth.se (Michael Lundahl)
Subject: Re: JavaBeans vs Java
Date: 1999/01/29
Message-ID: <78rtuj$2pe$1@news.lth.se>
X-Deja-AN: 438272323
References: <36B07DFC.31709EE4@micron.net>
Organization: Lund Institute of Technology, Sweden
Newsgroups: borland.public.jbuilder.java.language,comp.lang.java.programmer,comp.lang.java.softwaretools,comp.lang.java.corba,comp.lang.java,ibm.software.vajava.language,ibm.software.vajava.enterprise,microsoft.public.java.visualj++
NNTP-Posting-User: d93mlu