View Single Post
  #1 (permalink)  
Old April 28th, 2007, 06:07 AM
AndrewH AndrewH is offline
Authorized User
 
Join Date: Nov 2005
Location: , , United Kingdom.
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to paste a bitmap into a JPanel?

I want to design a class that extends the JPanel class so that I can copy a bitmap image and then right-click on the JPanel and select paste to make the bitmap image appear inside the JPanel.
I have no idea of how to do this in java.
Can anyone give me a simple example of a java program that does this?
Are there any classes in the standard java class library that correspond to bitmaps?

Any pointers will be greatly appreciated.

        AndrewH:)

Reply With Quote