This project allows that capability but last I checked, only in windows. You can't do it currently with the core Swing API. You might check the mustang features for Swing and/or the JDIC project (which is going to be part of mustang core I believe) and see if they have anything coming down the pipeline.