Java
Posted on
September 9th, 2008 0 Comments
This applet solves the Towers of Hanoi problem for a tower of 10 disks. (Ten differntly-sized disks are stacked in a pile, in order of decreasing size. There are two other places for piles. The object is to move the pile to the second available place, subject to the rules that only one disk at a time can be moved, and no disk can be piled on top of a smaller...
Read More |
Make a Comment
Posted on
September 9th, 2008 0 Comments
The KeyboardAnimation2 applet provides a generic framework for applets
both display an animation and respond to keyboard events. The animation
runs only when the applet has the keyboard focus and can respond to
key presses. The appearance of the applet changes, depending on whether
it has the keyboard focus. Note that each time a new frame...
Read More |
Make a Comment
Posted on
September 9th, 2008 0 Comments
Ouputs the Zodiac sign corresponding to a given date.
/*******************************************************
* MYCPLUS Sample Code - http://www.mycplus.com *
* *
* This code is made available as a service to our *
* visitors and is provided strictly for the *
* purpose of...
Read More |
Make a Comment
Posted on
September 9th, 2008 0 Comments
A ChatWindow supports two-way chatting between two users over the Internet. The constructor for a ChatWindow requires a connected Socket. Messages are sent and received through this socket. The window has a text-input box where the user can type messages. When the user presses return or clicks a “Send” button, the text in this box is transmitted...
Read More |
Make a Comment
Posted on
September 9th, 2008 0 Comments
Example of a gui with different features.
/*******************************************************
* MYCPLUS Sample Code - http://www.mycplus.com *
* *
* This code is made available as a service to our *
* visitors and is provided strictly for the *
* purpose of illustration....
Read More |
Make a Comment
Posted on
September 9th, 2008 0 Comments
This applet demonstrates various layout managers. The applet itself uses a border layout with a JPanel in the center, a JComboBox menu to the North, and a JLabel
to the south. The center panel uses a CardLayout. Each card in the card layout contains a number of buttons and uses a different layout manager. The JComboBox menu is used to select among these cards....
Read More |
Make a Comment
Posted on
September 9th, 2008 0 Comments
This program is for those who have a fixed limit for downloading/uploading. It creates and saves the statistics of the numerical value passed by the user.
Before use the user needs to create 2 text files every month. One named : stats<monthnumber>.txt and another totalb<monthnumber>.txt
/*******************************************************
* ...
Read More |
Make a Comment