| |||||||||||
Java GUI Interface Posted by keithmartin (keithmartin), 7 February 2003 Web Programming – Assignment #1 - JavaDue Date: This assignment will be evaluated during class time during the week of February 10, 2003. Late submissions will lose points at a rate of 10% for each class day the assignment is late to a maximum of 30%; after which a grade of zero will be assigned. Assignment Narrative: You have been asked to produce a GUI interface, which will allow a person to draw a number of standard shapes and display a custom shape as well. The client wants the user to choose the shape to be drawn from a list box and have the shape displayed when the user presses a button. They also want the user to have some control over the size/positioning of the shape itself. Assignment: Write a program that uses a drop-down list box to display at least 4 different shapes (use a variety of shapes – such that different parameters are required). It must also include one custom shape/drawing for which the parameters may be hard-coded (i.e. user input not required). Please write this program as an Applet. The interface must include at least one button, a drop-down list box and appropriate event handlers. Posted by admin (Graham Ellis), 7 February 2003 Sounds like a fun assignment, Keith ... just the sort of thing that I might have folks doing on our training courses if they were involved in client side Java Programming in fact, we have a very similar example in our Tcl/Tk course.What are you asking for? Are you looking for some tips on some aspect of the assignment (if so, please do post up more specifically), or are you hoping that someone will post a complete answer? If the latter, then I do think you'll learn more Java by at least trying it yourself. There are plenty of Java books out there - have a look at http://www.wellho.net/resources/javabooks.html. Although Java started off very much as a language where the main use was applets, other uses have now outstripped applets and such graphic applications have become a much more specialist use of the language. Amongst the more recent books I would suggest you look at is http://www.wellho.net/book/0-201-70393-9.html which has reasonable (and not overlong and overcomplex) coverage of both Swing and the AWT. Posted by admin (Graham Ellis), 7 February 2003 P.S. Keith - you've posted a long quote from what looks like it could be a document on which there's copyright. Please review your post, and if there's any problem put in a link to the original instead of leaving the post "as is" on this board.For more details, please see: http://www.wellho.net/forum/1993629301.html TIA! Graham This page is a thread posted to the opentalk forum
at www.opentalk.org.uk and
archived here for reference. To jump to the archive index please
follow this link.
|
| ||||||||||
PH: 01144 1225 708225 • FAX: 01144 1225 793803 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho |