Training, Open Source computer languages
PerlPHPPythonMySQLApache / TomcatTclRubyJavaC and C++LinuxCSS 
Search for:
Home Accessibility Courses Diary The Mouth Forum Resources Site Map About Us Contact
 
For 2023 (and 2024 ...) - we are now fully retired from IT training.
We have made many, many friends over 25 years of teaching about Python, Tcl, Perl, PHP, Lua, Java, C and C++ - and MySQL, Linux and Solaris/SunOS too. Our training notes are now very much out of date, but due to upward compatability most of our examples remain operational and even relevant ad you are welcome to make us if them "as seen" and at your own risk.

Lisa and I (Graham) now live in what was our training centre in Melksham - happy to meet with former delegates here - but do check ahead before coming round. We are far from inactive - rather, enjoying the times that we are retired but still healthy enough in mind and body to be active!

I am also active in many other area and still look after a lot of web sites - you can find an index ((here))
Java GUI Interface

Posted by keithmartin (keithmartin), 7 February 2003
Web Programming – Assignment #1 - Java

Due 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.

You can Add a comment or ranking to this page

© WELL HOUSE CONSULTANTS LTD., 2024: Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01144 1225 708225 • FAX: 01144 1225 793803 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho