Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JFrame Help

 
John Pereira
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey guys i am struggling a bit with Jframe.Pretty new to JFrame.
I have a file in Picture class and need to bring the BufferedImage to the DrawingImageControlPanel.How do i do this.
I know the template for doing this is as stated below.



Here is the code in Picture Class that i need to invoke



Below is my code for Just the class DrawDrawingImageControlPanel



Thank you
 
Greg Brannon
Bartender
Posts: 563
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why do you have a method, DrawImageControlPanel(), enclosed in (or nested in) another method called DrawImageControlPanel()?
 
John Pereira
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok i removed the constructor the Complier say i still got 1 error


The fact is the below code which in principle is almost the same as the one i highlighted gave me no error.Thats why i used the constructor.

 
Greg Brannon
Bartender
Posts: 563
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please post your updated code and error messages copied and pasted from exactly as they appear at your end. I agree that the statement you've most recently highlighted is odd. Perhaps you can also post an explanation of what you're trying to do there.
 
John Pereira
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
well the message i written is pretty clear.I cant help if you do not understand. thanks
 
Greg Brannon
Bartender
Posts: 563
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have I requested something unreasonable in my quest to help you?

How about the updated code?
 
Darryl Burke
Bartender
Posts: 5125
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
John, please BeForthrightWhenCrossPostingToOtherSites <- link
http://www.daniweb.com/software-development/java/threads/432012/image-into-jframe
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic