Wednesday, December 7, 2011

Which Is Best Struts or Spring? Difference Between Struts and Spring MVC

As we all know that struts and spring are frame works written in Java. Struts developed by Apache foundation, Struts is accepted by many companies as it is very easy for them to develop a web application using Struts. Struts 1.2 is industry accepted version.

Spring MVC also a frame work after struts spring is more popular among industry applications. At present Spring has more opportunities than Struts. But I would recommend to learn both frame works. Both are similar in some aspects.

Tuesday, November 30, 2010

Java swing event handling example programs for beginners

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.

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

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

Multithreading computers have hardware support to efficiently execute multiple threads. These are distinguished from multiprocessing systems.

Sunday, November 21, 2010

java Applet example tutorial for beginners

Applet is a Java application; an application program that uses the client's web browser to provide a user interface.

Packages in java

Packages in java  is a mechanism for organizing Java classes into namespaces similar to the modules of Modula