title: How can I freeze on one pane of a JTabbedPane?
body: <p>Under certain circumstances, I need a JTabbedPane to remain on one pane until the user supplies certain information.  Essentially, when this circumstance occurs, I need the current pane to become modal.</p>
  
  <p>How can I implement this?  I was thinking I could catch whatever event is triggered when the pane changes, and reset back to the pane I want to stick on.  But I'm worried that this won't be quite right, that depending on when the event actually fires the transition to the new pane will happen <i>after</i> I call the method to set the pane to the pane I want, or some other similar race condition.  Is there a better way?  Is there a way I can make this approach work?</p>