Gelaed | Tutorials and Samples

Please see the Terms of Service

Java

Tutorials

ButtonJApplet

October 20, 2001
A full-fledged tutorial explaining the creation of a simple JApplet incorporating buttons, events, and display formatting.

ButtonJApplet Tutorial | ButtonJApplet Source


Source Samples

CountLines

December 02, 2003
pass it a list of files and/or directories, with an optional list of extensions (for filtering files within the passed directories) and it will count and return the total number of lines.
usage: java CountLines
switches:
-f <files>
-d <directories>
-e <valid extensions for directory search>

CountLines Source


Archive

December 02, 2003
pass it a directory name and an output name and it will pack a directory into a single file. Optionally indicate that you wish for the original directory to be deleted.
usage: java Archive <inputdirectoryname> <outputfilename> [-delete]

Archive Source


arch

December 02, 2003
pass it a directory name and it will pack the directory into a single file. Optionally indicate that you wish for the original directory to be deleted. Writes to standard out.
usage: java arch <inputdirectoryname> [-delete]

arch Source


Dearchive

December 02, 2003
Unpacks a file created with Archive.java.
usage: java Dearchive <inputfilename>
options (only one can be used during a specific execution):
-list
<outputdirectoryname> -all
<outputdirectoryname> -exact <filename1, filename2, etc>

Dearchive Source


dearch

December 02, 2003
Same as Dearchive, but reads from standard in.
usage: java dearch
options (only one can be used during a specific execution):
-list
<outputdirectoryname> -all
<outputdirectoryname> -exact <filename1, filename2, etc>

dearch Source


FileHeap

January 08, 2003
a program written in Java which will copy all file (or all files with specific extensions) from a group of source folders (including subdirectories) into a destination folder. FileHeap will not copy actual directories, nor will FileHeap delete the original files. I wrote it so I could heap media files together from a number of sources with less effort.

FileHeap Source


HugeInteger

October 17, 2001
A class which provides similar functionality similar to java.math.BigInteger, only more limited, due to time restraints of the class. This one may be expanded later.

HugeInteger API | HugeInteger Source


BucketSort

October 17, 2001
A class which sorts int arrays using the odd BucketSort algorithm.

BucketSort API | BucketSort Source


pi

October 17, 2001
A very simple class which computes the value of PI based on user input. It lacks proper commenting, so an API is not provided. Proper commenting may be added later.

pi Source


C++

Source Samples

WinampVolume

January 08, 2003
WinampVolume - a simple program written in C++ that will change the volume of an instance of Winamp 2. Programmable volume, class, and number of attempts. It was originally written for a friend who needed it to control Winamp's volume from the Windows Task Scheduler.

WinampVolume Source and Executable


XHTML

Tutorials

div Centering

October 30, 2001
This brief tutorial describes how to center a div element in a manner which works across HTML 4.0 compatable browsers.

div Centering Tutorial | div Centering Example