This article contains a source code of a simple Java program which draws image(from file or http:// URL) at the center of full-screen window. It uses AWT Toolkit to load image (from the file or http URL) and Swing JFrame to display it.
FreeVersion: n/a Platform(s): linux, windows, freebsd, osx, sun Updated: Thu Jan 25 2007
Accepting formatted input doesn't have to be difficult with input verifiers and focus listeners. This installment of Magic with Merlin shows you how to use the new JFormattedTextField component to prompt for numbers, dates, and formatted input. The Java 2 Standard Edition (J2SE), version 1.4, adds two new Swing components to the palette of available GUI elements: JSpinner and JFormattedTextField.
This generic Swing architecture eases your UI development by integrating intelligent data with Swing components. You can use the iData architecture to create a central repository of data within your application. By doing so, you'll more fully separate data from presentation and produce code that's cleaner and easier to maintain. This article explains how to use the iData technique to ease complex GUI development.
Version: n/a Platform(s): n/a Updated: Wed Jan 30 2002
This new column offers a glimpse into the new Java 1.4 release, starting with the new jSpinner component of Swing, which lets users easily select a date, number, or choice from a pick list. Article includes code snipets.