|
|
Sanskruti
This article demonstrates how to write a simple Stateful Session Bean. It consists of three POJO's: Remote interface Cart.java, Bean class CartBean.java and EJB client CartClient.java.
Prerequisites
In order to complete the example application, you should be familiar with the following:
*...
|
|
5 |
25,147 |
|
 |
techgeek.in
This article continues our exploration of the Abstract Window Toolkit (AWT). It examines the standard controls defined by Java. Controls are components that allow a user to interact with your application in various ways—for example; a commonly used control is the push button.
The AWT supports...
|
|
4 |
988 |
|
 |
techgeek.in
Layout Managers
In the previous article I discussed about the various Controls in Java like Button, Checkbox, Lists, Scrollbars, Text Fields, and Text Area etc. All of these components have been positioned by the default layout manager. A layout manager automatically arranges the controls within...
|
|
1 |
644 |
|
 |
techgeek.in
In this article I will discuss about window and some advanced components which can be added to our window such as Menu Bars and Menus.
Window Fundamentals
The AWT defines windows according to a class hierarchy that adds functionality and specificity with each level. The two most common...
|
|
2 |
542 |
|
 |
techgeek.in
Java is an object-oriented language and as said everything in java is an object. But what about the primitives? They are sort of left out in the world of objects, that is, they cannot participate in the object activities, such as being returned from a method as an object, and being added to a...
|
|
1 |
645 |
|
 |
techgeek.in
Introduction
As we already know the primitive data type char represents a character. A chain of characters is called a string. The capability to handle strings is an important feature of any programming language. In Java, each character in a string is a 16-bit Unicode character.Because Unicode...
|
|
1 |
788 |
|
 |
techgeek.in
Introduction
The instances of the String class represent a string that cannot be modified. If we do want to create modifiable strings because we are going to do lots of string manipulation, we should use the java.lang.StringBuffer and java.lang.StringBuilder classes.If we choose to do a lot of...
|
|
2 |
882 |
|
 |
pradeep
Multi-dimensional arrays
Java, as with most languages, supports multi-dimensional arrays - 1-dimensional, 2-dimensional, 3-dimensional, ... This discusses 2-dimensional arrays, but the same principles apply to higher dimensions.
2-dimensional arrays
2-dimensional arrays are usually...
|
|
23 |
165,303 |
|
 |
techgeek.in
Introduction
Applets are event-driven programs. Event handling is at the core of successful applet programming. Most events to which an applet will respond are generated by the user. There are several types of events. The most commonly handled events are those generated by the mouse, the...
|
|
2 |
1,060 |
|
 |
techgeek.in
Introduction
Java can be used to create two types of programs: applications and applets. An application is a program that runs on a computer, under the operating system of that Computer just like the one created using C or C++.
An applet is an application that is accessed on the...
|
|
3 |
1,251 |
|
 |
techgeek.in
Introduction
In the last article on servlet, we noted that HTTP is the protocol most-commonly used to communicate with web applications. Unfortunately, HTTP offers no mechanism for data to be retained between requests; in other words it can't track the activities of a user across requests.
...
|
|
1 |
1,261 |
|
 |
techgeek.in
In the previous article we discussed three examples, each of which demonstrates how to track user sessions programmatically, using URL rewriting, cookies, and hidden form fields respectively. Each of these techniques required some unique string to be exchanged between the client and the server, so...
|
|
3 |
1,456 |
|
 |
techgeek.in
In the first part I discussed about applet fundamentals as to what is an applet, its features, various methods of Applet class and a simple example on applet. In this article I will discuss further on advanced features of applet.
Applet class
Applet class provides all necessary support for...
|
|
1 |
1,150 |
|
 |
techgeek.in
In the previous two articles I discussed all essential features and methods of applet. Here I give some examples which would clear your concept about applets.
A Font List Example
This is an example of an applet that displays the standard fonts and styles.
import java.applet.*;
import...
|
|
1 |
1,008 |
|
 |
techgeek.in
Some Examples are same from Java AWT Reference and is because when I did those in my college days referred many sources.
Introduction
Graphics in any language gives a wonderful look and feel to the users as well as programmers. Programmers draw figures, strings etc with the help of...
|
|
1 |
1,105 |
|
 |
techgeek.in
In the previous article Basic Graphics In Java With Examples I explained the methods of graphics class available for drawing various types of figures. In this article I will carry forward the graphics class with the methods it provides to work with those figures, methods available for working with...
|
|
1 |
1,024 |
|
 |
techgeek.in
Parts so far Java Event Handling (Part-1)
In the previous article I presented the basic concepts and ideas about Event handling in java. In this article I will discuss about mouse event handling.
Firstly let me familiarize you with the various mouse events.
MouseEvent Class
There are...
|
|
1 |
769 |
|
 |
techgeek.in
So far
Java Event Handling (Part-1)
Java Event Handling (Part-2)
In this article I will discuss about the events generated by entering input through keyboard and when characters are entered in text fields and text areas.
The KeyEvent Class
A KeyEvent is generated when keyboard input...
|
|
1 |
1,131 |
|
 |
techgeek.in
Introduction
A package is a namespace that organizes a set of related classes and interfaces to provide access protection and namespace management.You can think of packages as being similar to different folders on your computer. Software written in the Java programming language can be...
|
04-27-2010 12:37 PM
by IBNSC
|
4 |
1,564 |
|
|
sameer_havakajoka
Introduction
This component is suitable to convert a well-formed html with/without inline CSS to a PDF file.
HTML to PDF Converter is a tool to convert HTML to PDF.
HTML to PDF Converter accurately transforms well-formed HTML with or without inline cascading style sheets into PDF...
|
|
14 |
2,581 |