public void actionPerformed(ActionEvent e) {
VizController.getInstance().getScreenshotMaker().configure();
}
});
screenshotPopup.add(configureScreenshotItem);
final JButton screenshotButton = new JDropDownButton(new javax.swing.ImageIcon(getClass().getResource("/org/gephi/visualization/component/screenshot.png")), screenshotPopup);
screenshotButton.setToolTipText(NbBundle.getMessage(VizBarController.class, "VizToolbar.Global.screenshot"));
screenshotButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
VizController.getInstance().getScreenshotMaker().takeScreenshot();
}
});