AWT
General
Use the CardLayout manager
Detect which card is visible with a CardLayout
Use Popups
Use a File Dialog
Use TrueType font
Display available fonts
Font with 3D effect
Use the System Clipboard
Frame, Window, Dialog
Maximize a Frame
Center a Frame/Dialog
Close a Frame
Call events on a Frame from a Panel
Set the small top-left icon on a Frame
Prevent a Frame to be resized
Embed an image into a Frame
Display a message box
Display a Splash screen
TextField
Limit TextField input to numeric value
Limit TextField input to a maximum length
React to the ENTER key in a Textfield
Make the ENTER key act like the TAB key
Reset all textfields in one shot
Limit a TextField to Uppercase
Widget
Have an ImageButton
Reset a checkbox group
Set the listbox width
Align the column in a List
Have a srolling text display using a List
Label dynamic resizing
Make a TextArea "word-wrap"
Synchronize a TextArea versus a Choice
Display underlined text
Display vertical text
Have Label with many lines
Have a Label with underlined text
Have a Label acting as HTML HREF (URLLabel)
Image, Graphic
Display a GIF in a Canvas
Embed an image into a Frame
Load several images from a single GIF
Load an Image from a JAR file
Load an Image from a JAR file (again)
Scale an Image
Fade an image
Rotate an image
Create a scrollable canvas
Use an Image as the Applet background
Have a simple Image browser
Simulate a "mouse over" event to toggle an image
Hide the mouse cursor
Make a color transparent
Save an Image as a GIF or JPEG file
Use the same background color as the browser
Do simple animation using Images
Do simple animation to show "work in progress"
Get the color of a specific pixel
Do "rubber-band" drawing
Convert RGB value to Hex (to be used in HTML)
Draw a line or set a pixel in my own image
Draw dashed line
Draw a line with a thickness
Draw a pie chart
Draw faster rectangles
Get a screen capture and save it as a JPEG
Display a TIF
Convert a multi-page TIF into single-page TIF
Convert an Image to a BufferedImage
Event
Detect a double click versus a simple click
Detect the mouse button used when clicking
Exit an application from a menu (single exit point)
Trigger a click on a Button
AWT
If you find this article useful, consider making a small donation
to show your support for this Web site and its content.