I have a Swing JTabbedPane with several rows of tabs, which show summary information from various parts of my application. I'd like to let the user double-click on any tab to display the full contents in a window, but the tab rows are moved around when the first click is detected on a tab in anything but the first row. The second click is detected as a double-click, but now a different tab is under the cursor (due to the original tab row being moved to the front), and the wrong window is displayed.
How can I prevent the tab rows from reordering, or, how else can I easily allow the user to view associated data when clicking on any given tab?
Edit: attempt to clarify: the movement of rows, rather than the movement of tabs within rows.