BitDaddys

BitDaddys
Home

Product Sections
Product Locator
Email Utilities
Database Utilities
Other Products

Reference Sections
Articles
MySQL
Outlook - Import EML
.net Network Security
Flash
Fireworks
PHP
DB/C
Java
Email File Extensions
EML email file extension
MSG email file extension
TNEF email file extension
TXT email file extension
HTML email file extension
Java Script

OISV - Organization of Independant Software Vendors - Charter Member

Recommended Links

Get Firefox



Get Thunderbird  

MySQL

Find good sites at
Find good sites at Gimpsy  

 

Web Master:

Keith Birchfield


Here you can find many examples of how to use java simply and effectively

For JavaScript, please click here.

Please take a look at the below examples to help you get started on that next web project where java can make the difference!.

[ Tutorials ] [ FAQs ] [ Examples ]
[ Variables ]


Tutorials

A demo of how to create a java file on the command line, compile it, and execute it.

In this demo you will see an animation that steps you through the basic steps of creating and running a simple java program that displays a dialog box.

Steps:

  1. Create a java program using a windows command line echo to console redirect
  2. Compile the java program
  3. Execute the java program

Here is the animated java demo:

Animated Java Demo

return to top


FAQs

Q. What is Java?
A. " Java is an object-oriented programming language developed primarily by James Gosling and colleagues at Sun Microsystems. The language, initially called Oak (named after the oak trees outside Gosling's office), was intended to replace C++, although the feature set better resembles that of Objective C. Java should not be confused with JavaScript, which shares only the name and a similar C-like syntax." from: en.wikipedia.org/wiki/Java_(programming_language)

Q. What is a .java file ?
A. A file that ends with the .java extension is probably a java source (code) file. It contains the text version of the program that will be compiled into a run time application or applet. It is the program part.

Q. What is a .class file ?
A. a file that ends with the .class extension is probably a java byte code file. It is the intermediate result of a java source code file compile. It will be interpreted by the java run time machine for the local host's instruction set. It is the executable part.

return to top


Examples


Example of the traditional "Hello World" - GUI Version

This example introduces you to the basics.

import java.applet.*; 
import java.awt.*; 
public class HelloWorld extends Applet 
{ 
  public void paint(Graphics g) 
  { 
    g.drawString("Hello world!", 50, 25); 
  } 
}

 


Example of the traditional "Hello World" - Console Version

This example introduces you to the very basics.

public class HelloWorldApp 
{
public static void main(String[] args) {
System.out.println("Hello World!");
}
}

Example of the Web Page that calls a traditional "Hello World"

This example shows the html necessary to present a Java Applet in a web page.

<HTML>
<HEAD>
<TITLE>A Java Hello World Applet</TITLE>
</HEAD>
<BODY>
Here is Hello World Applet!:
<APPLET CODE="HelloWorld.class" WIDTH=150 HEIGHT=25>
</APPLET>
</BODY>
</HTML>

Example of a way to show a dialog in a java program

This example shows one way to show a pop-up dialog from a Java program.

public class HiDialog 
{
public static void main(String[] args) {
javax.swing.JOptionPane.showMessageDialog(null ,"Hello From a Dialog! " ,"A howdy dialog", javax.swing.JOptionPane.INFORMATION_MESSAGE);
System.exit(0);
}
}

 

 

 

 

 	        
 
OISV - Organization of Independant Software Vendors - Charter Member
Highlighted Products
EML and MSG converter
BitDaddys Corp.
$14.00

More Info
Free Trial
Buy Now!
Convert eml and msg Files into EML, MSG,TXT, TNEF, HTML more ...

MSGDETACH
MSGDETACH
BitDaddys Corp.
$14.00

More Info
Free Trial
Buy Now!
Detach Email Attachments from your Email and Save them wherever you want! Extract your message attachments from Outlook msg files. more ...

PopTransAct
BitDaddys Corp.
$19.95

More Info
Free Trial
Buy Now!
POP3 Email Transfers and Actions. Extract, Archive Save and Merge Attachments. Archive and forward Messages from any POP3 Account, even gmail! more ...

ThunderStor
ThunderStor
BitDaddys Corp.
$10

More Info
Free Trial
Buy Now!
ThunderStor offers the user a simple, fast and effective method to extract ThunderBird Mail from the mail box files to individual standard email message files.

emlBridge
BitDaddys Corp.
$12.00

More Info
Free Trial
Buy Now!
Import eml Files into nearly any Email Client. With emlBridge you can import rfc822 standard text email files into programs like Outlook, Thunderbird and Outlook Express more ...

outlookSpiller
EML and MSG Exporter

BitDaddys Corp.
$14.00

More Info
Free Trial
Buy Now!
Export eml, msg, tnef, txt and HTML Files from Outlook more ...

O2X
ODBC 2 C#
BitDaddys Corp.
$5.00

More Info
Free Trial
Buy Now!
Convert ODBC table information into a c# class and a ready to use Visual Studio 2003 project more ...

emltohtml
BitDaddys Corp.
$14.00

More Info
Free Trial
Buy Now!
Convert eml Email Files into HTML Web Pages and more ...


Google

About Us | Site Map | Privacy | Contact Us | ©2008 BitDaddys Corp.