Updated on March 1, 2005

Access to the Bit Display Applet

Introduction

This project implements a bit display applet to compare 32-bit entities (int and float) and 64-bit entities (long and double).

The user can enter a number (int, float, long, double) simply by typing that number into the appropriate text field and pressing return. The number may be typed in as an arithmetic expression to take advantage of the automatic expression evaluation feature of JPT input.

The user may toggle individual bits with the mouse, toggle all bits via a button command, or select random bits via another button command. The user may also click buttons to see the minimum and maximum of values of integer types (int and long) and the minimum and maximum positive values of real types (float and double).

Screen Snapshots

The screen snapshot below shows the bit display with both the float and double data set to the maximum representable numerical values of each type.

To access a suite of 4 screen snapshots, click here.

Bit Display Source

The Java file BitDisplay32.java

This class builds a TablePanel with one row of 32 blocks each representing one bit. The blocks are annotated by 31 ... 0.

The Java file BitDisplay32Viewer.java

This class adds the text input fields and button controls for the 32 bit display.

The Java file BitDisplay32.java

This class builds a TablePanel with two rows of 32 blocks each representing one bit. The top row blocks are annotated by 63 ... 32 and the bottom row blocks are annotated by 31 ... 0.

The Java file BitDisplay32Viewer.java

This class adds the text input fields and button controls for the 64 bit display.

The Java file BitDisplayApplet.java

This class provides the web page button that in turn launches the combined 32 and 64 bit viewers.

The Java file Methods.java

This class is a Java Power Framework test class.

Zip Archives

The Bit Display Source Files in zip format

The Bit Display Source Files in self extracting exe format

Contact Information