Skip to content

Commit

Permalink
topcat: fix bug relating to BoxLayout
Browse files Browse the repository at this point in the history
Peter reported a stacktrace "java.awt.AWTError: BoxLayout can't be shared"
at a Container.removeAll call, java6 but not java5.  I can't really see
what it was complaining about, but rewording the code seems to have
sorted it out.
  • Loading branch information
mbtaylor authored and mmpcn committed Nov 27, 2014
1 parent 9a3464b commit b1d8c92
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -409,10 +409,12 @@ public void actionPerformed( ActionEvent evt ) {
+ " at the bottom of the window" );
navhelpModel.addChangeListener( new ChangeListener() {
public void stateChanged( ChangeEvent evt ) {
navhelpHolder.removeAll();
if ( navhelpModel.isSelected() ) {
navhelpHolder.add( navhelpLine );
}
else {
navhelpHolder.remove( navhelpLine );
}
navhelpHolder.revalidate();
}
} );
Expand Down

0 comments on commit b1d8c92

Please sign in to comment.