Re: Swing on Mac

From: steve (me_at_me.com)
Date: 01/15/05


Date: Sun, 16 Jan 2005 06:13:34 +0800

On Sat, 15 Jan 2005 22:26:15 +0800, jonck wrote
(in article <1105799175.808316.190300@z14g2000cwz.googlegroups.com>):

>> I have a little library, of single liners that work on the mac, but
> can crash
>> a windows or linux machine.
>
> Could I perhaps get a copy of this library? I work mainly on the Mac,
> but my code is meant to work on Windows and/or Linux most of the time
> as well. Therefore knowing what to avoid would be very useful to me.
>
> Thanks very much, Jonck
>
> P.S. my email address is:
> "jonck van der kogel $ yahoo ! com".replaceAll(" ", "").replace('$',
> '@').replace('!', '.')
>

it's not that simple, you must also run your app on a windows machine ,
whenever you do any major modules, as there is always something else.

it relates to calling classes, depending on where and what type you init
variables & statics, you can cause problems.

also mac seems to drop packages & jar refs, a lot faster when they are not in
use. ( closes the files) Windows seems to hold onto them forever, once you
ref a jar, it seems the file is "locked" open for the life of the app.

here seems to be one problem
in theory when you start the application , it makes sense to get the current
user name, and lock it down.

    // public static String theUser =
System.getProperty("user.name").substring(0,9); //max of 10 chars ( do not do
this it fails on anything but mac)

another serious issue relates to the language kits, in java you are supposed
to be able to "lock" to a specific language or disable foreign language
input, at textfield/area level.

on the mac it is impossible, and you can actually do some major damage to
backend databases. ( try it on any java app,running on a mac)
( in mac you can switch languages at will) ,but java on mac has no way to
prevent this. ( i asked apple to add a couple of system calls to the
"apple.java" library 1 year ago, to allow a java app to disable language
input.

steve



Relevant Pages

  • Re: Turkish Proofing Tools
    ... Microsoft "has" transferred its available experience to the Mac. ... The price of Windows in ... Windows language extensions, you now want Word, running on a Mac, under Unix ... It would cost as much to make that, as it did to make the Windows version. ...
    (microsoft.public.mac.office.word)
  • Re: C# is a proprietary programming language ??
    ... Java tried this too, of course. ... for calling the Windows API, SUN sued, and won. ... Java is the language where you can write code on one operating system ... Of course, if you write code in C# on Windows, you can't run it on UNIX. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: 10 Reasons .NET developers should consider the switch to Mac OS
    ... Core 2 Duo based Mac? ... Java on Windows is just as much a "jewel" as it is on the Mac. ... Frankly, if Apple were charging for Xcode, I'd be offended. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: MFC updates and enhancements
    ... We're not talking about some fringe niche tool here, ... applications to run on Windows. ... I may not like the language but it is far from being a nice tool. ... To a large part the relative simplicity of the Java language is ...
    (microsoft.public.vc.mfc)
  • Re: Other options - Tablet PCs
    ... magnitude better than Windows. ... language is just a configuration option. ... old non-unicode Japanese electronic dictionaries in both Mac and Windows ... I was not able to install them in any previous ...
    (sci.lang.japan)