IncdecApp2: IncdecHor.java

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

/**
 * Code for subclass IncDecHor, just like IncdecVert
 */
public class IncdecHor extends Incdec {
    /**
     * Superclass constructor does most of the work, we finish the job here,
     * just choose the layout and the order of the 3 widgets
     */
    public IncdecHor () {
	setLayout (new GridLayout (1, 3)); //*1 We have different layout
	makeDown (); //*2 We have different order
	makeLabel (); //*2
	makeUp (); //*2
    }
}
[download file]