• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem in Jframe and Canvas AWT

 
Yogi Sugianto
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4632
  • Likes 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Happens when you mix swing components
with awt components.

Use a JPanel instead of Canvas to draw
your images
 
Yogi Sugianto
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if i am use a jpanel to upload the image whether image can be save into database mysql as datatype longblob?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic