java swing hacks this closes #7