Name: [011] John Montgomery
Member: 49 months
Authored: 21 videos
Description: I'm a C/C++, Java and Python programmer living in Hove, UK. ...

[024] Writing an Applet with Java  (10 videos)

a series of video-tutorials by John Montgomery

Writing games or demos can be good fun and packaging them up as a Java Applet can be an effective way to showcase your work on a website. In this series John Montgomery demonstrates the basics of writing a Java Applet to display graphics on screen and react to user input.

Video Tutorials

[059] The 'Hello World' Applet - Part 1

A demonstration of writing a very simple "hello world" applet in Java. In this ShowMeDo John demonstrates how to create a Java Applet and how to render a string of text within the applet.

[068] Zoomable Mandelbrot fractal applet - Part 10

For the last part in this series John demonstrates using a MouseWheelListener to allow the user to zoom in and out of the Mandelbrot fractal with a flick of the mouse wheel using the newly-defined 'zoom' method.

[060] The 'Hello World' Applet - Part 2

Expanding the on the basic "hello world" applet, John demonstrates how to receive mouse events for basic user input and shows how to use this to alter the position of objects drawn on screen.

[061] The 'Hello World' Applet - Part 3

Double-buffering is a technique used to minimise flicker on the screen, by drawing to an offscreen buffer and copying the buffer to the screen in one operation. John demonstrates this technique to create a double buffered Java Applet.

[062] The 'Hello World' Applet - Part 4

Animation is an essential ingredient of a good demo applet. In this ShowMeDo John demonstrates using a thread for animation.

[063] The 'Hello World' Applet - Part 5

The standard Java graphics library does not contain a drawPixel method, but there are plenty of ways to render graphics at the pixel level in Java. In this ShowMeDo John makes use of a BufferedImage so that an array of integers can be used as pixels for rendering on screen.

[064] Mandelbrot fractal applet in grey - Part 6

In this ShowMeDo John builds on the foundation laid previously to generate and display the Mandelbrot fractal in a Java Applet, as a further example of how to perform pixel level rendering. This video shows how to build a gray-scale Mandelbrot (colour comes later).

[065] Mandelbrot fractal applet in colour - Part 7

John adds some colour to the mandelbrot fractal, which makes things look much prettier. Rather than gray, now the applet fades from black through to red in the bacground, to yellow on the edges of the fractal and white for the heart of the the fractal.

[066] Animated Mandelbrot fractal applet - Part 8

Half of creating a nice interactive applet is ensuring that things at least appear to be happening. So rather than rendering the entire Mandelbrot fractal in one go, John demonstrates how it can be rendered in parts.

[067] Navigable Mandelbrot fractal applet - Part 9

In this ShowMeDo John adds navigation to the applet, by clicking with the mouse. Now the user can click to move the Mandelbrot around the screen.

Kudos and Thanks for John

Learn Python the easy way!
If you want to learn the Python programming language from a very gentle start or are looking to increase your ability to do cool things with Python, check out our club
View this series as a one-page learning-path
This feature is for club members. Click here to find out more.

By the Same Author

John Montgomery The Eclipse IDE can be a little daunting to the uninitiated. These ShowMeDos demonstrate [...]
John Montgomery John Montgomery demonstrates how to connect a Psion computer to a Mac running OS X using h [...]
John Montgomery CGI (Common Gateway Interface) is one of the simplest ways to start writing dynamic web a [...]