aspose file tools*
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
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "How to use AWT Watch "How to use AWT New topic
Author

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

achana chan
Ranch Hand

Joined: Jul 29, 2002
Posts: 277
Hi.
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
Sheriff

Joined: Jul 22, 2000
Posts: 9047
    
  10
Frame constructors include:

Frame()
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.


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

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: http://aspose.com/file-tools
 
subject: How to use AWT's Frame()???