Merge pull request #4096 from iamutkarshtiwari/bugfix-IconInsteadOfX

Icon instead of an "X" for the "could not connect" message #3706 #4055
This commit is contained in:
Ben Fry
2016-02-13 20:07:43 -05:00

View File

@@ -228,8 +228,7 @@ public class ContributionTab extends JPanel {
StyleConstants.setAlignment(center, StyleConstants.ALIGN_CENTER);
doc.setParagraphAttributes(0, doc.getLength(), center, false);
// TODO https://github.com/processing/processing/issues/3706
closeButton = new JButton("X");
closeButton = new JButton(Toolkit.getLibIconX("manager/close"));
closeButton.setContentAreaFilled(false);
closeButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {