Programming Resources
For Fun and Learning
Charles Cusack
Computer Science
Hope College
main

Python
C++

JAVA


PHP
SQL
Alice

SimpleListDemo


Description

Run it
Download jar file (Right click)

ListButton.java
ListView.java
MyList.java
SimpleListDemo.java

ListButton.java

import aLibrary.*;
import java.awt.event.*;

public class ListButton extends AButton {
    private SimpleListDemo callback;
    private int idNum;
//------------------------------------------------------------------------------
    public ListButton(int x,int y,int w,int h,SimpleListDemo slb,int id) {
        super(x,y,w,h);
        callback = slb;
        idNum = id;
    }
//------------------------------------------------------------------------------
    public void actionPerformed(ActionEvent e) {
        callback.clickedAction(idNum);
    }   
}