Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Im starting to despise java programming for the mac



If I had to guess - this sounds to me like there are some assumptions you have made about the transform applied to a graphics context that you are getting from outside of your code.  Perhaps you are restoring the transform to unity somewhere in your code instead of restoring the saved state or something like that.  I mention this because you specifically wrote that you were doing some rendering to a double size image and also that in some cases you need to halve your values...  It could be a bug in the Mac JRE, or your own bug that just happens to show up on the Mac but not Windows.

Regards,

Scott

On 26-Aug-08, at 8:17 PM, Adam Ornstein wrote:

hi!

I just felt that I should vent a little bit.

I developed an desktop application in java.  Initially for the pc , the idea was to create a macintosh version using the same (or similar code).  This was my first time that I was doing something like this, so I expected some minor issues to come up.

At first it was no big deal, some of my gui's had to be redesigned to fit the mac design scheme.  Also I had to do some very minor backtracking to java 1.4.12 - simply because I wanted to develop for the lowest grade mac that I could (with os 10.3.9 or higher).  THis involved some extremely minor touchups to code!

So far this is a fantastic experience, in a couple of days I was able to get the majority of my application running on the mac!  

Then it turned for the worse - I had a graphics2d item that appeared on the screen for a "preview" of what their program output would be.  This became one of 2 major headaches.  What i finally discovered, is that by setting the a non-default font for text I was printing out - I needed to adjust every piece of text that I had printed out to about half.  What I mean is that if I wanted to print text to coordintate space 10, 20.  I needed to write it out to space 5,10.  Why?!?!?!  It made no sense to me.  Default text writes out in the proper place, and when a font was set I needed to print out to half the space.  PLUS, at times ridiculous things would happen.  for instance I would print line 1 at 5,10. and the next line which should be printed out at 15,10 under the halving rule, I would have to print to 7.5,10!

UCH!  But I finally got that piece working.

Now the final output of the program takes the same information and writes it to an image double the size of the earlier image.  needless to say I am still struggling with it, as the output is always non-standardized.  for instance I cannot determine when to print out in the correct original pc location, or if I need to halve it, or if I need to adjust the font-metrics measurements to meet the new oddity of a (1/2 fontwidth) equalling a full font width.  Therefore never being able to properly and dependably center a line of text.

I want to throw my macintosh out the window.

Anyway, sorry for venting here, but its extrememly frustrating.

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden

References: 
 >Java for Mac OS X 10.5, Update 2 (From: Matt Drance <email@hidden>)
 >Re: Java for Mac OS X 10.5, Update 2 (From: Paul Taylor <email@hidden>)
 >Re: Java for Mac OS X 10.5, Update 2 (From: Pratik Solanki <email@hidden>)
 >Re: Java for Mac OS X 10.5, Update 2 (From: Paul Taylor <email@hidden>)
 >Im starting to despise java programming for the mac (From: Adam Ornstein <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.