List of usage examples for java.awt Frame subclass-usage
From source file ListenerReuse.java
public class ListenerReuse extends Frame { public ListenerReuse() { Button b = new Button("Save"); add(b); MenuBar mb = new MenuBar(); setMenuBar(mb);
From source file SplashDemo.java
public class SplashDemo extends Frame implements ActionListener { static void renderSplashFrame(Graphics2D g, int frame) { final String[] comps = { "foo", "bar", "baz" }; g.setComposite(AlphaComposite.Clear); g.fillRect(120, 140, 200, 40); g.setPaintMode();
From source file Sampler.java
public class Sampler extends Frame { private Frame mImageFrame; private SplitImageComponent mSplitImageComponent; private Hashtable mOps;
From source file AnotherMenuDemo.java
/**
* Demonstrate Menus and the MenuBar class/MenuContainer interface
*
* This version uses 1.1 action handling and MenuShortcut. The action handling
* is incomplete; realistically, each MenuItem would have its own, task-specific
* ActionListener; this would handle the MenuShortcuts and the CheckboxMenuItems
From source file ClipboardTest.java
/** Taken from the Sun documentation on Clipboard API */ public class ClipboardTest extends Frame implements ClipboardOwner, ActionListener { TextArea srcText, dstText; Button copyButton, pasteButton;
From source file omr.jai.RGBToBilevel.java
/**
* Demo code for dithering a 24-bit RGB image to a monochrome (1-bit
* or bilevel) image. The source image must be an 24-bit RGB image.
* The result is displayed.
*
* Usage: java RGBToBilevel filename [true]
From source file SimpleGame.java
/**
* This application demonstrates a number of things in the implementation of a
* simple shooting game. The object of the the game is to shoot a duck that
* repeatedly moves across the screen from left to right. There are two duck
* models, one for the 'live' duck and one for the 'dead' one. These are loaded
* from 'duck.obj' and 'deadduck.obj' files. The 'gun' is built from primitives.
From source file StreamConverter.java
class ShowString extends Frame {
FontMetrics fontM;
String outString;
From source file Seek.java
/** * Sample program to demonstrate FramePositioningControl. */ public class Seek extends Frame implements ControllerListener, ActionListener { Player p;
From source file GridsCanvas.java
/** This is the demo class. */ public class Grids extends Frame { /* * Construct a GfxDemo2 given its title, width and height. Uses a * GridBagLayout to make the Canvas resize properly.