View Single Post
Old 05-22-2007, 04:56 PM   #10
scotty1024
Banned
scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.
 
Posts: 1,300
Karma: 1479
Join Date: Jul 2006
Location: Peoples Republic of Washington
Device: Reader / iPhone / Librie / Kindle
I thought I'd have a nice surprise and release the new widgets and a PDF viewer...

But I just learned the hard way that PBP-1.0 doesn't just mean AWT with all the widgets torn out. Some of the supplied classes have been gutted of methods as well.

java.awt.Shape for example is but a pale shadow of the full AWT version.. The PDF Viewer was kind of expecting to have a full Graphics2D environment to implement Postscript upon.

You can get the PBP-1.0 Java Doc here: http://javashoplm.sun.com/ECom/docs/...actionId=noreg

Another gotcha for you other java developers out there: java.io.File's createTempFile/createNewFile. The System.getProperty("java.io.tmpdir") is set to a non-functional value. But even after dealing with that I was getting no love at all from createNewFile. I had to do my own file creation calls via new File("name of temp file") and feed that to an OutputStream constructor to get a file I could write to.

I also discovered that Runtime.getRuntime().totalMemory() and Runtime.getRuntime().freeMemory() return roughly 128MB of memory. Looks like something else iRex needs to tweak.
scotty1024 is offline   Reply With Quote