What are you trying to do with the bitmap? To display any sort of image you are going to use Image or BufferedImage. If you are going to be manipulating images, there are many ways to do this depending on what you are trying to do (easy to complex).
Write once, run anywhere, because there's nowhere to hide! - /. A.C.