waving android

I am currently a software engineer at Google, where as a member of the Android platform team I build frameworks and user interfaces.

The blog here at is mostly historical; you can find more recent posts on .

Archive for October 26th, 2005

Swing buttons on Mac OS X

October 26th, 2005

I just spent hours discovering that you should never, ever use setAction() on a JMenuItem on Mac OS X. The end result is an empty menu (that is, no text in it at all). Why? Who knows. (The correct answer is to use setActionCommand() and addActionListener().) Unfortunately, this same fix does not seem to fix my empty JButton, which will not show its label no matter how hard I try. Update: Wait, no, this fixes the button, too. GRAR!

Write a million times, run nowhere!

newer: older: