Samples
beep
time
wtime
copy
clock
Return
|
|
The examples below demonstrate the use many of the classes and methods that
make up Servertec Jenie. To run any of the following examples, open an MS-DOS
prompt and enter:
javavm name
javamvm - the Java VM, normally java.
name - the name of one of the example from the table below.
|
Example
|
Description
|
|
beep
|
This example uses the WIN32 API Beep function in Kernel32.dll to sound a sequence of tones.
Please note that this example requires that your computer have a speaker and that that speaker be not muted.
|
|
time
|
This example uses the WIN32 API GetLocalTime function in Kernel32.dll to retrieve the local time that will be displayed on the console.
|
|
wtime
|
This example displays the local time in a message box using the WIN32 API MessageBoxA function in User32.dll.
|
|
copy
|
This example uses the WIN32 API CopyFileEx function in Kernel32.dll to copy the specified source to destination. CopyFileEx calls the FileCopyCallback's callback method each time another portion of the file has been copied.
|
|
clock
|
This example uses the WIN32 API SetTimer function in User32.dll to start a 1 second timer. SetTimer calls the clock's callback method each time the timer expires.
|
|
|