aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes JButton takes graphics Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JButton takes graphics" Watch "JButton takes graphics" New topic
Author

JButton takes graphics

Maron Balinas
Greenhorn

Joined: Apr 26, 2013
Posts: 3
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.


[Thumbnail for untitled.JPG]

Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38784
    
  23
Welcome to the Ranch

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

Joined: Apr 26, 2013
Posts: 3
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JButton takes graphics