Home Accessibility Courses Twitter The Mouth Facebook Resources Site Map About Us Contact
 
20.9.2014 - We have just updated our course layouts and descriptions and added our 2015 schedule.

Computer Graphics is fun - even if Java Applets are Old Hat

Applets - small applications which include a Graphic User Interface in them - are where Java started ... but they didn't grow as much as other uses of Java and these days they're something of a specialist interest - great for some Intranet applications, but not so common / practical on applications that will reach a wider Internet audience. The reasons are (a) that people don't like risking the download of a JVM to run in their browser (though it is just as safe as ActiveX and / or Flash) and (b) because of those other two technologies that I just mentioned; Flash is rather good, and ActiveX has achieved a prominent position with help in various ways like being shipped as standard with common operating systems / browsers.

So a course that "majors" on Applets is either very old ... or very specialised.

But graphics is such fun! And if encourages on a Java course, I'll overview how to use Java within an applet, and pull up some code sample. I've a handful of recent ones, and a whole library of history.

Results from Mountain.javaThis example shows the basics - a couple of buttons, and something happens (lines drawn, numbers added) when the mouse button is clicked. See the HTML frame that you'll need [here] and the java applet source [here]


Double buffreing demonstrationAnd this is quite a sophisticated (but simple) demonstration of double buffering in Java - you can drag the corners of the box around and the shapes around the outside willall change to reflect this. In order to avoid a flickering display, the new graphic is always generated in the background, and the copied en masse to the frame buffer that's being displayed.


My background is computer graphics - I love playing with this sort of thing, so please ask me if you want to learn about Graphics in Java, or Python, or PHP, or Lua ... you'll find examples of all sorts of things on the site!
(written 2010-11-13)

 
Associated topics are indexed as below, or enter http://melksh.am/nnnn for individual articles
J711 - Java in the Web Page
  [2036] Java Tag Libraries / how they work / Tomcat Deployment - (2009-02-11)
  [1325] Java - Client side applet applications as well as server side - (2007-08-29)

J802 - Java - Abstract Windowing Toolkit
  [2654] Java - from applets to servlets. JSPs and more - (2010-02-27)
  [2649] Length, size or capacity in Java? - (2010-02-24)
  [2245] Client side (Applet) and Server side (Servlet) Graphics in Java - (2009-06-17)

Q913 - Object Orientation and General technical topics - Computer Graphics Principles
  [3262] Some SVG Elements, pixel and percent positioning - (2011-04-24)
  [3261] Scalable Vector Graphics - easy, low bandwidth, high resolution, dynamic. - (2011-04-23)
  [3211] Computer Graphics in PHP - World (incoming data) to Pixel (screen) conversion - (2011-03-24)
  [3148] OpenGL / C / C++ - an example to get you started - (2011-01-26)
  [2992] Matplotlib - graphing in Python - teaching examples - (2010-10-10)
  [2758] But what will you DO with all those pictures? - (2010-05-09)
  [2633] Why do I teach niche skills rather than mainstream? - (2010-02-13)


Back to
String handling - from first steps to practical examples
Previous and next
or
Horse's mouth home
Forward to
Views of Melksham - November 2010
Some other Articles
Make - automating the commands for building and installing
Getting your C++ program to run
Positively reforming the system - could it be done?
Views of Melksham - November 2010
Computer Graphics is fun - even if Java Applets are Old Hat
String handling - from first steps to practical examples
What is a universal superclass? Java / Perl / Python / Other OO languages
Java Beans, tag libraries and JSPs - what and why.
After Course Resources - do we publish sample answers. Example from Java Exceptions module.
Changing a Servlet - more that just editing and compiling
4292 posts, page by page
Link to page ... 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86 at 50 posts per page


This is a page archived from The Horse's Mouth at http://www.wellho.net/horse/ - the diary and writings of Graham Ellis. Every attempt was made to provide current information at the time the page was written, but things do move forward in our business - new software releases, price changes, new techniques. Please check back via our main site for current courses, prices, versions, etc - any mention of a price in "The Horse's Mouth" cannot be taken as an offer to supply at that price.

Link to Ezine home page (for reading).
Link to Blogging home page (to add comments).

You can Add a comment or ranking to this page

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

PAGE: http://www.wellho.net/mouth/3049_Com ... d-Hat.html • PAGE BUILT: Thu Sep 18 15:30:25 2014 • BUILD SYSTEM: WomanWithCat