Thursday, 18 July 2013

java Embedding a Simple Menu on a Applet and and on a Visual Application using JMenu

Embedding a Simple Menu on a Applet and and on a Visual Application using JMenu

Two programs are created here which use menus, an Applet and a Visual Application. Both programs use JMenus. The Simple Menu Applet adds the JMenu's to a JMenuBar, then adds the JMenuBar to a Panel, and then places the Panel in the Applet. Click here to download the source for the Applet or  here to view the source or  here to run the Simple Visual Applet. The application adds the MenuBar directly to the visual application and uses a JLabel to show the result. Click here to obtain the source Simple Application Menu Program or  here to view the source. The application uses a single action listening method. Notice the applet does not have an exit menu item as an exit function cannot be programmed in applet to exit.

Java Basic Trig Functions Calculated Using the McLauren Series

Basic Trig Functions Calculated Using the McLauren Series

The following application calculates approximations trig functions of sine, cosine, and tangent inputted as radians without using internal math functions in Java much as a scientific calculator might. I cannot claim they are optimal in efficiency, but they work. To download click here: trigFun.java.

Click here

How to Create a Java Visual Application that Links to an Access 2008 Database in Windows XP and Java: The Address Book Project

How to Create a Java Visual Application that Links to an Access 2008 Database in Windows XP and Java:  The Address Book Project 

The following shows how to create an Access 2008 database controlled by a visual Java Application. To get a copy of the source code and the databases created using Access 2008 and Access 2003 format
click here. To view the source code click here: Address Book Data Base.java.

Java Code SnowBoard Free Project by Bryon Malody based on Jim Krumm's and Christian Simon's earlier Project

SnowBoard Free Project by Bryon Malody based on Jim Krumm's and Christian Simon's earlier Project

Below SnowBoard Free Project, initially developed by James Krumm and Christian Simon, but improved and refined by Bryon Malody. The program uses page buffering and comes with graphics and sound effects. It comes with graphics included. If you want a copy of the program and the graphics in the file click here.

Java Code Drawing Multicolored Stars with Lines Applets by Steve Tomasini

Drawing Multicolored Stars with Lines Applets by Steve Tomasini
Steve developed these for fun. If you click on the pictures they will generate a Java applet running each. Click here for the four pointed star's source code and click here for the six pointed stars source code. Steve is a Computer Science Major at Casper College working on his associate's degree. He made these programs after being in our Java Course after just a couple of weeks.

Java Code The Mod Converter Convert from base 10 to any base Convert from any base to base 10

The Mod Converter Convert from base 10 to any base    Convert from any base to base 10
   

Enter any positive number in base ten and any base up to base 35 and then press convert.

Press the Clear button to clear all entries   
Enter any positive number from any base (other than ten) then enter which base that number is written in. Press convert and the program will display the number in base ten.

Press the Clear button to clear all entries

View Source for Conversion from base 10.View Source for Conversion to base 10.

Java Project The CRCW Parallel Processing Model Simulation

The CRCW Parallel Processing Model Simulation

Click here if you would like to see an implementation of a console application simulation of the CRCW parallel processing model assuming n^2 processors used to sort n numbers (no duplicate values allowed). Very fast, very inefficient, and sort of interesting, especially to all you algorithm die hards.