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

Writing an Applet with Java [ID:024]

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

1. 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. Uploaded on 2nd September 2006, running time 3 minutes, file size 4mb.

2. 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. Uploaded on 24th September 2006, running time 5 minutes.

3. 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. Uploaded on 2nd September 2006, running time 5 minutes, file size 8mb.

4. 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. Uploaded on 14th September 2006, running time 7 minutes, file size 10mb.

5. 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. See additional information and source code in the wiki(JavaMontgomeryAppletSeries). Uploaded on 17th September 2006, running time 7 minutes.

6. 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. See additional information and source code in the wiki(JavaMontgomeryAppletSeries). Uploaded on 17th September 2006, ru [...]

7. 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). Some of the source code for this tutorial is available in our wiki(JavaMontgomeryAppletSeries). An example of an interactive Mandel [...]

8. 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. Uploaded on 24th September 2006, running time 6 minutes.

9. 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. John uses a 'dissolve' to bring in the Mandelbrot as it is rendered. There is also a nice example here of the difference in performance that can occur by choosing a suitable data s [...]

10. 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. Uploaded on 24th September 2006, running time 7 minutes.

Showmedo is a peer-produced video-tutorials and screencasts site for free and open-source software (FOSS)- with the exception of some club videos, the large majority are free to watch and download.

how to help » about » faq »

Educating the Open-source Community With Showmedo

Although as important as the software it supports, education and documentation are relatively neglected in the Open-source world. Coders love to code, and explaining how best to use or improve the software tends to be deferred or even sidelined.

At Showmedo we believe the community can play a vital role here and also say thanks for the tools and software that make our lives easier. If you have a piece of software you love or a programming langugage you are enthusiastic about, why not make a screencast showing others how to use it? All the stuff you wish you'd been told, the tips, tricks, insights that would have saved you time and frustration.

Screencasting is easier than you think, and we're happy to help you. You can emailus for advice or just use some of the how-to screencasts on the site. This screencasting learning-pathis a good place to start.

Kudos and Thanks for John

The 'Hello World' Applet - Part 1

Thanks very helpful!


maccosmeticswholesalers mac makeup 32pcs brushes c 1
70 months ago
Code-completion in Eclipse


maccosmeticswholesalers benefit cosmetics c 49
70 months ago


Showmedo's development is fairly rapid and bugs will inevitably creep in. If you have any problems please drop us a line using the contact address below. Likewise, any suggestions for improvements to the site are gratefully received.