• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Java Bean

 
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have to create a simple java bean with some properties.
Can someone give me idea what can I do.
I will do the coding I just need the idea.
I am very new to this .Please provide me some links for creating a java beans.
Thanks.
 
Ranch Hand
Posts: 203
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Check out this tutorial
http://developer.java.sun.com/developer/onlineTraining/Beans/JBeansAPI/shortcourse.html
HTH
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
A Java Bean is only a class which complies with some programatic considerations. What I am trying to say is that EVERYTHING can be a Java Bean (and I mean EVERYTHING). The considerations I mention are some simple rules that are considered to be followed by tools that are going to use your classes (for example, GUI tools or JSP actions) You have to read the Java Beans specification so you can find out which considerations you have to have in mind. For example, an attribute in a Java Bean has to be defined as private, and you have to provide accesors (getter and setter methods) for the attribute. That's a kick-start for you, but I agree that you definitely would benefit from reading the Sun tutorial.
 
reply
    Bookmark Topic Watch Topic
  • New Topic