adding a button to NodeDialog

Is there an easy way to add a button and respective call-back functions to a nodeDialog?
I tried:
b1 = new JButton(“Test Connection”);
b1.setActionCommand(“test”);
b1.addActionListener(this);
JPanel jp = getPanel();
jp.add(b1);
but that will give me only the button. I would just like to add a button after the other options…

Thanks,

Bernd

Do you mean something like:
DialogComponentButton dcb = new DialogComponentButton(“test”)
dcb.addActionListener(this);
addDialogComponent(dcb);

?

yes that’s what i exactly what I want.
maybe you can add it to the http://www.knime.org/developer/documentation/default-dialog/overview web-page?
thanks,

Bernd

Hi Bernd, You are completely right, we somehow missed that. But now we added an example of the DialogComponentButton to the dialog component overview page (almost at the bottom of the page). @baj: Thank you for the remark! @aborg: Thanks for the quick help! Best, Fabian