This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes JFrame Help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JFrame Help" Watch "JFrame Help" New topic
Author

JFrame Help

John Pereira
Greenhorn

Joined: Aug 24, 2012
Posts: 3
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

Joined: Oct 24, 2010
Posts: 557
Why do you have a method, DrawImageControlPanel(), enclosed in (or nested in) another method called DrawImageControlPanel()?


Learning Java using Eclipse on OpenSUSE 11.2
Linux user#: 501795
John Pereira
Greenhorn

Joined: Aug 24, 2012
Posts: 3
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

Joined: Oct 24, 2010
Posts: 557
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

Joined: Aug 24, 2012
Posts: 3
well the message i written is pretty clear.I cant help if you do not understand. thanks
Greg Brannon
Bartender

Joined: Oct 24, 2010
Posts: 557
Have I requested something unreasonable in my quest to help you?

How about the updated code?
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4531
    
    5

John, please BeForthrightWhenCrossPostingToOtherSites <- link
http://www.daniweb.com/software-development/java/threads/432012/image-into-jframe


luck, db
There are no new questions, but there may be new answers.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JFrame Help