Replaces the panel at the specified position with a new panel.
public void setPanel( int index, StatusBarPanel panel )
index
The zero-based index of the panel to replace.
panel
A StatusBarPanel object that represents the new panel to insert in place of the specified panel.
ArrayIndexOutOfBounds thrown if the specified index is not valid.