Common swing UI code for bb4 projects