Change Contents of the Bubble
View this PageEdit this PageUploads to this PageHistory of this PageHomeRecent ChangesSearchHelp Guide

Questions on HW2-Summer07

Ask Questions on homework 2 here. Please enclose code with <code> </code> tags.

Question: The assignment says "Create a PictureCollege.java class with...", and I was curious if it was supposed to be PictureCollage.java

Question:If we want to use some of the picture manipulations used in the Picture.java class, can we import the class at the beginning of our code, and then call the methods in the methods we create within the PictureCollage.java class?

Question: Is using only one type of image manipulation okay, as long as we have the original picture and at least three copies that are manipulated?

QuestionAre we still suppose to submit it on tsquare or through an email?

Question: I am getting this error when i try and use methods from picture.java even though i have declared everything thing to be a picture. what does void mean??
File: /Users/taylorvirgil/Desktop/Georgia Tech/CS 1316/java-source-Fall06/PictureCollage.java  [line: 21]
Error: incompatible types
found   : void
required: Picture

Why am I getting this message:
NullPointerException: 
  at javax.swing.ImageIcon.loadImage(Unknown Source)
  at javax.swing.ImageIcon.setImage(Unknown Source)
  at PictureFrame.updateImage(PictureFrame.java:91)
  at PictureFrame.initFrame(PictureFrame.java:152)
  at PictureFrame.<init>(PictureFrame.java:57)
  at SimplePicture.show(SimplePicture.java:345)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  at java.lang.reflect.Method.invoke(Unknown Source)
why I try to show my collage? Everything compiles fine, and it should inherit the show method from Picture, so...?



Link to this Page