Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / February 2005

Tip: Looking for answers? Try searching our database.

Macintosh problems

Thread view: 
Steven T Abell - 31 Jan 2005 16:44 GMT
I posted a little game applet on http://www.brising.com/blackbox
that works just fine on Windows machines.
It doesn't work on Macs.
Several friends have tried it on OSX,
and JButtons that are supposed to change color don't,
although AFAICT everything else works correctly.
Is there any known lore on this topic?

Steve
Bill Tschumy - 31 Jan 2005 23:00 GMT
> I posted a little game applet on http://www.brising.com/blackbox
> that works just fine on Windows machines.
[quoted text clipped - 5 lines]
>
> Steve

How are you trying to change the color?  JButtons on Mac OS X use the Aqua
L&F and don't respond to setBackground() if that is what you are doing.  If
you use icons (just squares of the different colors) instead for the colors
then that would be more portable.

Signature

Bill Tschumy
Otherwise -- Austin, TX
http://www.otherwise.com

Steven T Abell - 01 Feb 2005 02:20 GMT
> How are you trying to change the color?  JButtons on Mac OS X use the Aqua
> L&F and don't respond to setBackground() if that is what you are doing.  If
> you use icons (just squares of the different colors) instead for the colors
> then that would be more portable.

That's what I needed to know.
Hard to believe they'd do that, but stranger things have happened.

Thanks,

Steve
Bill Tschumy - 01 Feb 2005 13:28 GMT
>> How are you trying to change the color?  JButtons on Mac OS X use the Aqua
>> L&F and don't respond to setBackground() if that is what you are doing.  If
[quoted text clipped - 7 lines]
>
> Steve

You know Apple...  "Think Different"

Signature

Bill Tschumy
Otherwise -- Austin, TX
http://www.otherwise.com

Steven T Abell - 01 Feb 2005 18:12 GMT
>>I posted a little game applet on http://www.brising.com/blackbox
>>that works just fine on Windows machines.
[quoted text clipped - 8 lines]
> you use icons (just squares of the different colors) instead for the colors
> then that would be more portable.

I now forcibly set the L&F to Metal and
http://www.brising.com/blackbox
now works correctly on Macs also.

Write once, test everywhere. <}:-)

Thanks.

Steve


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.