Find Us On: Facebook Twitter Rss Feed Blog
Need To Register? Sign Up Login

CIS355 Week 4 ilab

msladona
msladona 


Solution for assignment Attachments Tags
Clarifications

Answers

CIS355 Week 4 ilab - Solution

dickersonka
dickersonka 



Attached is the solution to ilab 4 for CIS355 Week 4 Attachments
ilab4.zip (2 K) Download
Preview
public void actionPerformed(ActionEvent e) { if (e.getSource() == cmdgood) JOptionPane.showMessageDialog(null, "Today is a good day!", "Event Handler Message", JOptionPane.INFORMATION_MESSAGE); else if (e.getSource() == cmdbad) JOptionPane.showMessageDialog(null, "I'm having a bad day!", "Event Handler

Preview
sideLength * sideLength; } public double perimeter() { return 4 * sideLength; } } class Cube extends Square { private double depth; public Cube(int x, int y, double z) { super(x, y, z); depth = z; } public double area() { return 6 * super.area(); } public

Preview
private JLabel lengthlabel; private JLabel widthlabel; private JLabel arealabel; public OfficeAreaCalculator() { mainframe = new JFrame("office area calculator"); calculatebutton = new JButton("Calculate area"); exitbutton = new JButton("Exit"); lengthlabel = new JLabel("Enter the length of the office:"); lengthfield = new JTextField(15); widthlabel = new JLabel("Area: "); areafield = new JTextField(15); widthfield

Screenshots
Purchase Answer