Meaningless Drivel is fun!*
The moose likes Swing / AWT / SWT and the fly likes Problem in Jframe and Canvas AWT 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 "Problem in Jframe and Canvas AWT" Watch "Problem in Jframe and Canvas AWT" New topic
Author

Problem in Jframe and Canvas AWT

Yogi Sugianto
Greenhorn

Joined: Jun 26, 2012
Posts: 2
Hi,i am yogi from indonesia. i have a problem. i have a jframe as a parent (main Menu) and jinternal frame as a child menu, in child menu i have a Canvas AWT to display a upload image from computer to application when i display a child menu,when i choose jmenubar in main menu,jmenubar block by Canvas awt. this my picture code and picture when jmenubar block by canvas awt. sorry my english is bad.


This code class for display image in all canvas awt



This mainmenu before i called a child menu


This mainmenu when jmenubar block by Canvas AWT in child menu


Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
Happens when you mix swing components
with awt components.

Use a JPanel instead of Canvas to draw
your images
Yogi Sugianto
Greenhorn

Joined: Jun 26, 2012
Posts: 2
if i am use a jpanel to upload the image whether image can be save into database mysql as datatype longblob?
 
Don't get me started about those stupid light bulbs.
 
subject: Problem in Jframe and Canvas AWT