I don't think that standard java supports this. However, I do believethat the SWT graphics package from IBM (for java) does.