Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


Pabitra Kr Debnath
Java Bean
1 Answer(s)      6 years and 4 months ago
Posted in : Java Beginners



Advertisement
View Answers

September 3, 2008 at 5:23 PM


Hi friend,

Java Bean classes must be made serialization so that they support persistent storage. To make use of the default serilization capabilities in java, the class needs to implement the serialization interface or inherit a class that implements the Serialization interface.

Note that the Serializable interface does not have any methods.

Simple code

import java.awt.*;
import java.io.*;
import java.io.Serializable;

public class SimpleBean extends Canvas implements Serializable {
//Constructor sets inherited properties
public SimpleBean() {
setSize(60,40);
setBackground(Color.red);
}
}

Since this class extends a GUI component, java.awt.Canvas, it will be a visible Java Bean. Java Beans may also be invisible.


---------------------------------------------------------

Read for more information.

http://www.roseindia.net/java/

Thanks.


Related Tutorials/Questions & Answers:
Java Bean
Java Bean  How to run java bean program in Netbeans
Java Bean
Java Bean  What is a Java Bean?   A Java Bean is a software component that has been designed to be reusable in a variety of different environments
Advertisements
Java Bean
Java Bean  What is Java Bean?   I got my answer already here: http://www.roseindia.net/jsp/usingbeansinjsp.shtml Thanks a lot
Java Bean Properties
Java Bean Properties  What are the properties of a normal java Bean(Not EJB)   HI Friend, Please visit here: http://www.roseindia.net/jsp/usingbeansinjsp.shtml Thanks
Java Bean - Java Beginners
Java Bean  Sir, How can i add a java bean into a target GUI.... Thanking you Pabitra Kr Debanth.   Hi friend, Java Bean classes must..., it will be a visible Java Bean. Java Beans may also be invisible
JAVA BEAN WITH ORACLE FORMS
JAVA BEAN WITH ORACLE FORMS  Hi..I am doing my final year Project.. I need the ste-by-step procedure to integrate a bean with oracle forms? Please help me
java bean - EJB
java bean  difference between java bean and enterprice java bean  first of all dont compare java bean with enterprise java bean because enterprise java bean is a techonology where we can develope business logic
java bean code - EJB
java bean code  simple code for java beans  Hi Friend, Java Beans are reusable components. They are used to separate Business logic from.... Java Bean Code: public class EmployeeBean{ public int id; public
database connection by using java bean
database connection by using java bean  i need a code for bean class to connect to mysql database. subsequently to use dis bean class whereever i need 2 connect 2 database
Bean
Bean  what is bean? how to use bean   HTML Code: Contents MOBILE STORE HOME PRODUCTS IMAGES COMPANY...        JDBC code: <%@ page language="java" import ="java.sql.*" %> <
Use Java Bean In Servlets
Use Java Bean In Servlets In this you will learn how to use Java Bean in Servlets. For this purpose, we have created a Bean named 'Person' and defined three... of this Bean in servlet and using the set method of bean, we have passed some values
Diffrent EJB & Java Bean - EJB
Diffrent EJB & Java Bean  What is Different between EJB & Java Bean?  Hi friend, A Java Bean is a software component written in the Java programming language that conforms to the JavaBeans component specification
java bean - Java Interview Questions
java bean  what is the diffrence between javabean and propertyfile both can be used as storage if these are there than in which case we use file and database please clearify.one more question why there is ejb if all that work can
creating a java bean application - IDE Questions
creating a java bean application  hi, i want to create a java bean using BDK. please tell me all the steps for creating a simple java bean application. i have also a confusion about the properties of java bean. please explain
Bean
/UseBean.shtml http://www.roseindia.net/tutorial/java/jsp/usebean-setproperty.html
Java bean example in JSP
Java bean example in JSP     ... that help in understanding Java bean example in JSP.This code illustrates the procedure of handling session and print a Hello world using Java Bean. The Bean
login problem in java bean - Java Beginners
login problem in java bean  login.jsp no longer redirects to the appropirate page. my bean code is correct and while seeing in error logs, it is displaying login failed and login success correctly. can u help me with the code
How to Run First Java Bean Program ?
How to Run First Java Bean Program ?  Hi My Dear Friend I can run... But Now I need that How to run Java Bean Now I have BDK1.1 But still don't... in this dir. just a run.bat file which execute Java Bean with GUI mode but I wants how
login form using java bean in eclipse
login form using java bean in eclipse  I have made a college community website but i need to implement beans to my login and contact us page. how can i do
How to add java bean in Java Application - Java Beginners
How to add java bean in Java Application  How can it be possible to plug a java bean into a target application like a frame window after creating and making the jar file. pabitra Guwahati.Assam  Hi Friend, Please
Java bean - Java Server Faces Questions
Java bean  Hi I am developing an adaptive educational hypermedia application and i choose Java programming as a course to teach, I need to provide mu learners with a text box that contained the source code example, which
Compilation Error in Java Bean - Java Beginners
Compilation Error in Java Bean  Hello Sir, Please Help me to resolve my problem... When I deploy the Jsp Application on weblogic application...;.java file > web.xml file Compiler Error:->
stateless session bean with methods error - Java Beginners
stateless session bean with methods error  I have to create stateless session bean with 3 methods and then create a servlet which remotely calls all three methods in that session bean. I have 4 files created-index.jsp under web
JDBC batch insert using Java bean class
In this tutorial, you will learn about JDBC batch insert using java bean / model class
Jsp count and java bean - JSP-Servlet
Jsp count and java bean  Please am on a project and i want to create a countdown timer that will have this format HH:MM:SS. Am working with jsp and java beans please somebody help.  Hi Friend, Try the following
count statement that saves results on a variable in a java bean
count statement that saves results on a variable in a java bean  Hello i want to ask you where is the problem and my programme give me only null returns ---> package javalab; import java.sql.*; public class History
count statement that saves results on a variable in a java bean
count statement that saves results on a variable in a java bean  Hello i want to ask you where is the problem and my programme give me only null returns ---> package javalab; import java.sql.*; public class History
Generate area for map from backing bean - Java Server Faces Questions
Generate area for map from backing bean  I need to populate the map in my page, and the coordinates should come from the backing bean.. How could I do
Introduction To Enterprise Java Bean(EJB). WebLogic 6.0 Tutorial.
  Introduction To Enterprise Java Bean(EJB) Enterprise Java Bean architecture is the component... Java Beans. Tutorial also shows you how to program enterprise bean
EJB, Enterprise java bean- Why EJB (Enterprise Java Beans)?
Why EJB (Enterprise Java Beans)?        Enterprise Java Beans or EJB for short is the server-side component architecture for the Java 2 Platform
Bean life cycle in spring
to retrieves the values of the bean using java file. Here in the file given below i.e.... Bean life cycle in spring       This example gives you an idea on how to Initialize bean in the program
Advertisements
 

 

 

DMCA.com