GENERAL - Java Codes

HTML Parser

Description This is a Code which acts as a small demo program & shows how to use the "HTMLEditorKit.Parser" and its implementing class "ParserDelegator" in the Swing system. Source Code import java.io.*; ...

0 Comments. 1263 views since Aug 21, 2008

HTML Viewer

Description This is a simple application written in Java, which parse the HTML file into the Editor Pane with hyperlinks. Source Code import java.util.logging.Level; import java.util.logging.Log ...

0 Comments. 1151 views since Jul 9, 2008

UserLogin Access

Description This source code is all about giving User a password and allowing him access only if his authentication matches. This code gives the basic concept for Password matching and can be developed for further use. Source Code <p ...

1 Comments. 957 views since Sep 21, 2008

Arrays and Vectors

Description This code demonstrates use of Array and Vector to store the elements in Index form. Source Code import java.util.*; public class Main { public static void main(String[] args) ...

0 Comments. 901 views since Sep 4, 2008

Exam Result

Description This is a code which when provided a set of results as input such as who is pass & who is fail then it calculates the number of students passed. Source Code import javax.swing.JOptionPane; p ...

0 Comments. 892 views since Aug 17, 2008

LOG4J Concept Using Consol Appender

Description Using Consol Appender We can create the log files... for avoiding the concept of main method compiling process in the program Source Code package edu.test; import org.apache.log4j.ConsoleA ...

0 Comments. 816 views since Jan 30, 2011

Sieve of Eratosthenes

Description It is an algorithm which is used to print a list of prime numbers upto a desired prime number. Source Code // Using a BitSet to demonstrate the Sieve of Eratosthenes. import java.awt.*; im ...

0 Comments. 811 views since Aug 13, 2008

Scoping in Java

Description This is an example to depict scoping in Java. Source Code import java.awt.Container; import javax.swing.*; public class ScopingInJava extends JApplet { JTextArea outputArea; ...

0 Comments. 789 views since Aug 16, 2008

Drop Down Bar

Description This code demonstrates a Drop Down Bar. Source Code import java.awt.BorderLayout; import java.awt.Container; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; import ja ...

0 Comments. 787 views since Aug 12, 2008