XWindow Java Apps performance issues