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.

Java Project Battleship Game

Battleship Game

Click here if you would like to obtain a the source in the development of Battleship program written as a console application in java.  Again, this game is broken down into basic steps and developed into a working game.

Java Project The Chess Game

 Source Code

Click here for the source and images to a Chess game or click here to see our Chess Applet.   The game has been created in incremental steps, evolving from simple to complex, saved in about 35 evolving programs contained in the zipped file. It now has simple rules for all the pieces, and checking, and pawn promotion, castling. A side from possible bugs missed, it does not detect if a castle is attacked prohibiting castling, and checkmate. It was developed by a project team of Larry Blackburn, Shawn Stalder, and myself. This exciting project shows a nice demonstration of how to use java classes in arrays to handle the duplicative characteristics of each piece.

Java Project The Spiral Graphic Program

Click here for the source to the above spiral applet or click here to run Spiral Graphic program.  It is interesting in that it uses sine and cosine to create this animation which gives the illusion of a spiral cave.

Java Project The Graphing Applet

Click here if you would like to obtain the source of the incremental steps developing a graphing program which allows you to input graph linear and quadratic equations or click here to run the Graphing Applet program.

The Black Jack Game

Click here if you would like to obtain the source of  a black jack program or click here to run the Black Jack program. .  The package includes playing cards and is written as an applet.  The code shows how to use java's AWT, how to display an image, and how to use action listening to make a button work. It is near completion but there are still a few things left to do.

A Practical Guide to Active Server Pages

This practical guide aims to be a complete programming guide as well as a reference for the serious ASP programmer.

You don't have the time to rummage through 1000-page thick books? You don't have the time to sift through jokes & wisecracks? This is the right resource for you ...

This guide does not assume any prior knowledge of ASP, and starts from the ground up. The chapters are organized according to the increasing complexity of ASP scripts that you will be writing. Simple scripts come first, and then the techniques needed for more complex scripts are covered. This is especially useful for the beginner who is usually inundated by long, boring technical dissertations in the first chapter of any book.

Experienced programmers will also find this guide useful, for it contains the following references in one easy-to-locate booklet.
VBScript Reference

A complete documentation of all VBScript functions with the necessary information for using them. Ideal for those situations where you know what you want to do, but can't remember the function that will do it for you.
SQL Reference

This includes complete syntactic specifications of the Structured Query Language, along with examples to demonstrate the use.
ADO Reference

A guide on ASP cannot miss out this quintessential section. It gives complete details on most of the objects in the ADO hierarchy.

Since you can download the PDF, you don't need to be online in order to read it. A printer-friendly publication format means you can print it and read it anywhere.

More Information