Question on my homework, I'm stuck..need help(URGENT)
1 posts in topic
Flat View  Flat View

Posted By:   Ian_Chan
Posted On:   Tuesday, May 28, 2002 10:58 PM

Hi, my homework requires me to write a simple spreadsheet programme. I need to create a componenst to draw graph, and a table of cells to get the data.
Well, I'm stuck on major parts of this homework, it's due Friday, I need help.
here is my handout in pdf format.


please help, especially I need to help do the events, the logics, the tables and the graph componets..please

Re: Question on my homework, I'm stuck..need help(URGENT)

Posted By:   Ian_Chan  
Posted On:   Tuesday, May 28, 2002 11:10 PM

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

* Assignment 5 for COMPSCI 101fc.
* @author
* @version 2002.05.

public class A5 extends Frame {

private static final int ROWS = 5;
private static final int COLS = 4;
private static final int MAX_COLS = 26;

* Constructs the assignment window.
public A5() {
setTitle("A5 - by hahaha");
addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {

* Sets up the window showing the GUI of the program.
private void init() {
Panel panelForControlArea = new Panel();
panelForControlArea.add(new Label("rows: "));
panelForControlArea.add(new TextField("5", 8));
panelForControlArea.add(new Label("columns: "));
panelForControlArea.add(new TextField("4", 8));
panelForControlArea.add(new Button("randomize"));
panelForControlArea.add(new Label("graph: "));
panelForControlArea.add(new TextField("A-D"));
add(panelForControlArea, BorderLayout.NORTH);


here is how far I got now...please help
About | Sitemap | Contact