IncdecApp2: IncdecVert.java

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

/**
 * Code for subclass Incdecvert
 */
public class IncdecVert extends Incdec { //*2 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)); //*1 We set our own layout
	makeUp (); //*2
	makeLabel (); //*2
	makeDown (); //*2
    }
}
[download file]