|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
Picture p = new Picture(FileChooser.getMediaPath("swan.jpg")); p = p.decreaseRed();A void method like decreaseRed() is a method does not return an object. Essentially you're telling Java that I want my variable p to be equal to nothing (not to be confused with null which is like an "empty" object). The Java compiler hates this and basically yells at you. A simple fix would be to change the second line to p.decreaseRed();. Dawn Finney.
|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...?