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. 550 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. 446 views since Jul 9, 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. 318 views since Aug 17, 2008

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. 244 views since Aug 12, 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. 228 views since Sep 21, 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. 228 views since Jan 29, 2011

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. 209 views since Aug 12, 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. 207 views since Aug 16, 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. 200 views since Sep 4, 2008