Topic awaiting preservation: Java question (Page 1 of 1) |
|
---|---|
Paranoid (IV) Inmate From: [s]underwater[/s] under-snow in Juneau |
posted 01-25-2004 04:13
Yeah, I know- 'This is for server side stuff, not applications programing'. But I didn't know where else to post this one... code: /Users/normknowles/java/Image.java:9: incompatible types
code: import java.awt.*;
|
Bipolar (III) Inmate From: Missoula, MT |
posted 01-25-2004 06:24
I get the program to compile with 3 changes, but I didn't test your code. code: F:\>javac Image.java |
Paranoid (IV) Inmate From: [s]underwater[/s] under-snow in Juneau |
posted 01-25-2004 06:39
thanks jdauie, I changed those lines and now it compiles! |
Paranoid (IV) Inmate From: Milwaukee |
posted 01-25-2004 13:23
Try your original code, but add the following: code: import java.awt.image.*;
|
Paranoid (IV) Inmate From: [s]underwater[/s] under-snow in Juneau |
posted 01-25-2004 20:35
I added import java.awt.image.* , but still no picture shows up in the frame ( which is a shame because it is a very good picture of me). code: class ImageFrame extends JFrame
|
Bipolar (III) Inmate From: Missoula, MT |
posted 01-26-2004 00:02
You mispelled a method: |
Paranoid (IV) Inmate From: [s]underwater[/s] under-snow in Juneau |
posted 01-26-2004 01:14
My thanks to both of you. |