This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes How to use AWT's Frame()??? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "How to use AWT Watch "How to use AWT New topic

How to use AWT's Frame()???

achana chan
Ranch Hand

Joined: Jul 29, 2002
Posts: 277
I have been working on this piece of code for the whole afternoon and still get compilation error :
...cannot resolve symbol
symbol constructor Frame (java.awt.Image)
location class java.awt.Frame
Frame frame = new Frame(thisCliPic);

I am trying to create a frame and paint a picture in it.
Can someone please advise ???

[ November 08, 2002: Message edited by: achana chan ]

humanum errare est.
Marilyn de Queiroz

Joined: Jul 22, 2000
Posts: 9058
Frame constructors include:

Frame(GraphicsConfiguration gc)
Frame(String title)
Frame(String title, GraphicsConfiguration gc)

There is no Frame constructor like:

Frame(Image thisCliPic)

You need to use a Frame constructor from one of the four choices above.

"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
Dirk Schreckmann

Joined: Dec 10, 2001
Posts: 7023
Getting any ideas?

[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
I agree. Here's the link:
subject: How to use AWT's Frame()???
It's not a secret anymore!