 |
Introduction
The 'main()' method in Java is referred to the thread that is running, whenever a Java program runs. It calls the main thread because it is the first thread that starts running when a program begins. Other threads can be spawned from this main thread. The main thread must be the...
By Sanskruti
Last Message By swaran
|
4 37,485 |
 |
Here we go. This example is used to illustrate that “how we can use color class in java?” We several time need to color our panel, label, or form. For this java provide us Color class in awt package i.e “java.awt.Color.java”.
This class has seven - number of constructor. But the widely used...
By manish174
Last Message By suresh091221
|
5 9,412 |
 |
Every class has at least one it's own constructor. Constructor creates a instance for the class. Constructor initiates something related to the class's methods. Constructor is the method which name is same to the class. But there are many difference between the method s and the Constructor.In this...
By Sanskruti
Last Message By Healthcare
|
3 24,941 |
 |
Here is a simple implementation of client-server using Java. There are two java files, one for client code and one for server code. The code is quite self-explanatory.
FactorialClient.java
/*
** A TCP based client that will send the number entered by the user for factorial
** ...
By pradeep
Last Message By newindiasolutions
|
3 15,866 |
 |
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...
By sameer_havakajoka
Last Message By Jeffmax
|
14 6,661 |
 |
In Java, networking is performed using Transmission Control Protocol/Internet Protocol (TCP/IP) or the User Datagram Protocol (UDP).
Java provides a low-level control on the connection, allowing you to customize it according to your requirements. The package containing networking classes, called...
By techgeek.in
Last Message By shabbir
|
3 15,696 |
 |
Introduction
JDBC is a platform-independent interface between relational databases and Java. In today's Java world, JDBC is a standard application programming interface (API) for accessing enterprise data in relational databases (such as Oracle, MySQL, Sybase, and DB2) using Structured Query...
By techgeek.in
Last Message By Balaji Reddy
|
5 7,025 |
 |
Servlets are server side components that provide a powerful mechanism for developing server side programs. Servlets provide component-based, platform-independent methods for building Web-based applications, without the performance limitations of CGI programs.
Using servlets web developers can...
By techgeek.in
Last Message By shabbir
|
1 5,987 |
 |
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.
...
By techgeek.in
Last Message By shabbir
|
1 6,020 |
 |
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...
By techgeek.in
Last Message By shabbir
|
3 17,567 |
 |
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...
By techgeek.in
Last Message By shabbir
|
1 6,263 |
 |
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...
By techgeek.in
Last Message By shabbir
|
1 7,061 |
 |
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...
By techgeek.in
Last Message By shabbir
|
1 5,027 |
 |
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...
By techgeek.in
Last Message By shabbir
|
2 5,960 |
 |
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...
By techgeek.in
Last Message By shabbir
|
1 3,602 |
 |
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...
By techgeek.in
Last Message By shabbir
|
1 3,869 |
 |
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...
By techgeek.in
Last Message By shabbir
|
2 3,832 |
 |
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...
By techgeek.in
Last Message By shabbir
|
2 6,062 |
 |
Today we will discuss Java packages. This is one of the most important features in Java. Java comes with many pre-listed packages. Knowingly or unknowingly, you may have used them in your code. I will explain this later on. Even if you are a beginner you had used Java package. First of all we will...
By manish174
Last Message By annasingh
|
4 7,439 |
 |
What is an Abstract Class?
A class defined in such a way such that it defines the basic structure of an object but does not provide any implementation details about at least one of its method. Any method in an abstract class which is devoid of any implementation details is called abstract...
By Debasmita
Last Message By Healthcare
|
3 4,081 |