Browsing all posts in "frame".

Using Internal Frame Dialogs with JDesktopPane

Here’s a simple example that shows how this works. It also shows how you can make sure your container fills the desktop, even if the desktop changes size (since there’s no layout manager, this won’t happen automatically).
// DialogDesktop.java
//
import javax.swing.*;
import java.awt.event.*;
import java.awt.*;
// A frame that can easily support internal frame dialogs
public class DialogDesktop extends JFrame [...]

A Simple AWT Application

You probably have some programs lying around that use regular AWT buttons that you’d love to replace with image buttons, but you don’t have the time or, honestly, the necessity to produce your own image button class. Let’s look at a simple application that demonstrates an upgrade path you can use on your own programs. [...]