Java uses delegation event model approach to handle events.
What is delegation event model?
Concept is quite simple:a source generate an event and sends it to one or ore listeners.In this scheme, the listener waits until it receive an event. Once an event is received, the listener process the event and and then returns.
Here are short definitions of event, source, listeners.
Event :
An event is an object that describes a state change in a source. It can be generated as a consequence of a person interacting with the elements in a graphical user interface.
Tuesday, November 30, 2010
Monday, November 22, 2010
How to create a menu bar and add a menu separator in java swing with eclipse
As we know java swing provides more liveliness to a web page, we can create menu bar using simple steps in java swing, which helps user to do his/her operations quickly.With out menu the task will be more tedious and very complex, so every one needs to menu bar in web page. Now lets start with a simple swing program, as by program you can get it more quickly and easily.
To start a Java program in Eclipse see here
//Java swing menu bar program starts
To start a Java program in Eclipse see here
//Java swing menu bar program starts
Java swing tutorial
In short swing is a widget toolkit for Java. It is part of Sun Microsystems' Java Foundation Classes (JFC) -- an API for providing a graphical user.
Multithreading in java examples
Sunday, November 21, 2010
java Applet example tutorial for beginners
Packages in java
Packages in java is a mechanism for organizing Java classes into namespaces similar to the modules of Modula
Thursday, November 18, 2010
How to create a swing applet and application in eclipse
What are applets in java?
Applets are not stand-alone programs.They run within either a web browser or applet viewer. Applet is included in html page using <applet>. See a applet example here.
What is swing in java?
swing can be used as stand-alone and also as a applet.
Lets start a swing applet.Before that just have a look at simple swing stand-alone program.
Now start Eclipse IDE. See here how to start an eclipse
A swing applet program
/*
Applets are not stand-alone programs.They run within either a web browser or applet viewer. Applet is included in html page using <applet>. See a applet example here.
What is swing in java?
swing can be used as stand-alone and also as a applet.
Lets start a swing applet.Before that just have a look at simple swing stand-alone program.
Now start Eclipse IDE. See here how to start an eclipse
A swing applet program
/*
Subscribe to:
Posts (Atom)


