Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
achana chan
Ranch Hand
Posts: 277
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Marilyn de Queiroz
Sheriff
Posts: 9067
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Getting any ideas?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic