Monday, October 22, 2007

Back To AWT!

Last 2 weeks has been my time revisiting the Java AWT. I was assigned to create a chart graphics which is not supported by existing open source projects. The graphics required to be overlapping with left and right side showing different scales on the Y-axis. I took a look on an open source project that do similar graphics, and finally come into decision to create the graphics itself in Java AWT, and later display it through servlet streaming the image.
Last time I dealt with this stuff was long time ago, first time I learnt Java 1.1. The assignment was to create a GUI application for Reverse Polish Notation (RPN) calculator. RPN is a stack machine, where all operations takes place in the stack. RPN itself was widely used in the first generation programmable calculator (with the first and notable player: Hewlett-Packard!). The assignment was displaying 8 rows of stacked line seven-segment-digits that contain numbers stored in the stack machine.
This is a real fun though, it remains me the time of BASICA when drawing in the screen requires us to compute the coordinate, transforming it, etc. Now of course the AWT has bunch of more satisfying features such as Graphics2D (which wasn't there during Java 1.1 reign).
This is a real banana!

No comments:

Post a Comment