• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JButton takes graphics

 
Maron Balinas
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would like to make the button (in task pane for basic logic gates) that when you click it, it will take an image of the logic gate to be drag and drop to the left panel. Please provide me some instructions. Thanks!
Btw, i already have my Graphics2D for each buttons.
untitled.JPG
[Thumbnail for untitled.JPG]
 
Campbell Ritchie
Sheriff
Pie
Posts: 48940
60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch

We do not simply give out answers. Have you seen the Java Tutorials about drag’n’drop?
 
Maron Balinas
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Campbell Ritchie wrote:Welcome to the Ranch

We do not simply give out answers. Have you seen the Java Tutorials about drag’n’drop?


Yeah I know that you don't give answer. I'm just asking for some instructions. I've already read many DnD tutorials but I think there's different way in my case.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic