IncdecApp2: IncdecVert.java

import java.awt.*;
import java.awt.event.*;
import javax.swing.*;

/**
 * Code for subclass Incdecvert
 */
public class IncdecVert extends Incdec { //*1 Taken from superclass, but we determine the order
    /**
     * Superclass constructor does most of the work, we finish the job here,
     * just choose the layout and the order of the 3 widgets
     */
    public IncdecVert () {
	setLayout (new GridLayout (3, 1)); //*2 We set our own layout
	makeUp (); //*1
	makeLabel (); //*1
	makeDown (); //*1
    }
}
[download file]