question: JPanel makeButtonPanel ( ActionListener updateListener , ActionListener cancelListener , ActionListener deleteListener ) { JPanel panel3 = new JPanel ( ) ; panel3 . setLayout ( new BoxLayout ( panel3 , BoxLayout . X_AXIS ) ) ; JButton cancelAction = new JButton ( Bundle . getMessage ( "ButtonCancel" ) ) ; panel3 . add ( cancelAction ) ; panel3 . add ( Box . createHorizontalStrut ( STRUT ) ) ; cancelAction . addActionListener ( cancelListener ) ; cancelAction . setToolTipText ( rbx . getString ( "CancelButtonHint" ) ) ; JButton updateAction = new JButton ( Bundle . getMessage ( "ButtonUpdate" ) ) ; panel3 . add ( updateAction ) ; panel3 . add ( Box . createHorizontalStrut ( STRUT ) ) ; updateAction . addActionListener ( updateListener ) ; updateAction . setToolTipText ( rbx . getString ( "UpdateButtonHint" ) ) ; JButton deleteAction = new JButton ( Bundle . getMessage ( "ButtonDelete" ) ) ; panel3 . add ( deleteAction ) ; deleteAction . addActionListener ( deleteListener ) ; deleteAction . setToolTipText ( rbx . getString ( "DeleteButtonHint" ) ) ; return panel3 ; }
target:  Utility for making Variable and Action editing Windows