final SmallButton newReceiverButton;
private ReceiverToolbar() {
setFloatable(false);
SmallButton restartReceiverButton = new SmallButton(restartReceiverButtonAction);
restartReceiverButton.setText(null);
SmallButton shutdownReceiverButton =
new SmallButton(shutdownReceiverButtonAction);
shutdownReceiverButton.setText(null);
SmallButton restartAllButton = new SmallButton(startAllAction);
restartAllButton.setText(null);
newReceiverButton = new SmallButton(newReceiverButtonAction);
newReceiverButton.setText(null);
newReceiverButton.addMouseListener(new PopupListener(newReceiverPopup));
add(newReceiverButton);
add(restartAllButton);
addSeparator();
add(restartReceiverButton);
add(shutdownReceiverButton);
addSeparator();
Action closeAction =
new AbstractAction(null, LineIconFactory.createCloseIcon()) {
public void actionPerformed(ActionEvent e) {
ReceiversPanel.this.setVisible(false);
}
};
closeAction.putValue(
Action.SHORT_DESCRIPTION, "Closes the Receiver panel");
add(Box.createHorizontalGlue());
add(new SmallButton(closeAction));
add(Box.createHorizontalStrut(5));
}