1 / 1

Dynamically Displaying the Inner Workings of a Java Applet

Dynamically Displaying the Inner Workings of a Java Applet. Colin Johnston.

byrd
Download Presentation

Dynamically Displaying the Inner Workings of a Java Applet

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Dynamically Displaying the Inner Workings of a Java Applet Colin Johnston The aim of my project is to further develop an application called “The Applet Inspector”. The Applet Inspector is a basic application which is used to edit java applets so that they will run with an additional progress window. There are a number of steps a user must go through to use the applet inspector. Applet Annotated Processed Compiled Run Below is an example of annotated code for use in the Applet Inspector private void drawPerson(Graphics g, int height, int baseX, int baseY){ //$inv //$var/height/baseX/baseY //$bp In drawPerson about to draw the rectangle g.drawRect(baseX,baseY,height,height); //$bp In drawPerson about to draw the head g.drawOval((baseX+(height/2))-((height/100)*10),… //$bp In drawPerson about to draw the body g.drawLine(baseX+(height/2),baseY+((height/100)*28),… //$bp In drawPerson about to draw the arms g.drawLine(baseX+((height/2)-((height/100)*15)),… //$bp In drawPerson about to draw the left leg g.drawLine(baseX+(height/2),baseY+((height/100)*58),… //$bp In drawPerson about to draw the right leg g.drawLine(baseX+(height/2),baseY+((height/100)*58),… } • To improve the current application I am going to produce a usability questionnaire and distribute this to a number of selected students to get their feedback. A number of features have been identified which it is felt would improve the usability of the application. These include : • Different views. • A History of method calls. • Allowing the modification of variables at Breakpoints. • Incorporating features for multiple classes. • Incorporating features for applications. The Progress Window displays the applet code and highlights the current line at pre-determined breakpoints. The progress window shows details about the current applet, it displays the current method, the current class and any variables which the user has chosen to monitor. There are two different modes which can be used, Stepping Mode and Running Mode. Stepping Mode allows the user to step through the breakpoints in there own time, the running mode shows the applet at its normal speed.

More Related