final Panel buttons = new Panel();
buttons.setLayout(new FlowLayout());
tabPane.add(buttons, BorderLayout.SOUTH);
// add buttons
Button b = new java.awt.Button("Refresh");
b.setFont(font);
buttons.add(b);
b.addActionListener(new java.awt.event.ActionListener() {
@Override
public void actionPerformed(final ActionEvent e) {
showDebugForPane();
}
});
b = new java.awt.Button("Print...");
b.setFont(font);
buttons.add(b);
b.addActionListener(new java.awt.event.ActionListener() {
@Override
public void actionPerformed(final ActionEvent e) {
DebugOutput.print("Debug " + tabPane.getName(), field.getText());
}
});
b = new java.awt.Button("Save...");
b.setFont(font);
buttons.add(b);
b.addActionListener(new java.awt.event.ActionListener() {
@Override
public void actionPerformed(final ActionEvent e) {
DebugOutput.saveToFile("Save details", "Debug " + tabPane.getName(), field.getText());
}
});
b = new java.awt.Button("Copy");
b.setFont(font);
buttons.add(b);
b.addActionListener(new java.awt.event.ActionListener() {
@Override
public void actionPerformed(final ActionEvent e) {
DebugOutput.saveToClipboard(field.getText());
}
});
b = new java.awt.Button("Close");
b.setFont(font);
buttons.add(b);
b.addActionListener(new java.awt.event.ActionListener() {
@Override
public void actionPerformed(final ActionEvent e) {
closeDialog();
}
});