menubar.addMenuItem("Feedback...",new ActionListener() {
public void actionPerformed(ActionEvent actionEvent) {
JPanel feedback = new JPanel();
feedback.setLayout(new BoxLayout(feedback, BoxLayout.Y_AXIS));
JComponent tmp = new JLabel("Please report bugs at ");
tmp.setAlignmentX((float) 0.0);
feedback.add(tmp);
final String bugsURL = "http://sourceforge.net/tracker/?group_id=84593&atid=573298";
tmp = new JTextField(bugsURL);
// tmp.setAlignmentX((float) 1.0);
feedback.add(tmp);
JButton yesB = new JButton("Report Bug");
yesB.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
displayURL(bugsURL);
}
});
feedback.add(yesB);
tmp = new JLabel("Please request features at ");
tmp.setAlignmentX((float) 0.0);
feedback.add(tmp);
final String featureURL = "https://sourceforge.net/tracker/?group_id=84593&atid=573301";
tmp = new JTextField(featureURL);
// tmp.setAlignmentX((float) 1.0);
feedback.add(tmp);
yesB = new JButton("Request Feature");
yesB.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
displayURL(featureURL);
}
});
feedback.add(yesB);
tmp = new JLabel("For support, send email to ");
tmp.setAlignmentX((float) 0.0);
feedback.add(tmp);
final String supportURL = "jtreeview-users@lists.sourceforge.net";
tmp = new JTextField(supportURL);
// tmp.setAlignmentX((float) 1.0);
feedback.add(tmp);
yesB = new JButton("Email Support");
yesB.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
displayURL("mailto:"+supportURL);
}
});
feedback.add(yesB);
tmp = new JLabel("You may also search the list archives at ");
tmp.setAlignmentX((float) 0.0);
feedback.add(tmp);
final String archiveURL = "http://sourceforge.net/mailarchive/forum.php?forum_id=36027";
tmp = new JTextField(archiveURL);
// tmp.setAlignmentX((float) 1.0);
feedback.add(tmp);