Re: Swing on Mac
From: steve (me_at_me.com)
Date: 01/15/05
- Next message: Michael Borgwardt: "Re: Internationalisation and Unicode"
- Previous message: Michael Borgwardt: "Re: sessionBean vs EntityBean"
- In reply to: jonck: "Re: Swing on Mac"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: Michael Borgwardt: "Re: Internationalisation and Unicode"
- Previous message: Michael Borgwardt: "Re: sessionBean vs EntityBean"
- In reply to: jonck: "Re: Swing on Mac"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|