mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
Update buttom enabled when updates are present ans background is set
This commit is contained in:
@@ -294,6 +294,7 @@ public class UpdateContributionTab extends ContributionTab {
|
||||
icon, "<html><b>" + entry.getName() + "</b></html>", name, entry.getPrettyVersion(),
|
||||
contributionTab.contribListing.getLatestVersion(entry) });
|
||||
}
|
||||
((UpdateStatusPanel)statusPanel).update();
|
||||
}
|
||||
private class MyTableModel extends DefaultTableModel{
|
||||
MyTableModel() {
|
||||
@@ -329,7 +330,7 @@ public class UpdateContributionTab extends ContributionTab {
|
||||
}
|
||||
}
|
||||
});
|
||||
this.setBackground(new Color(0xe0fffd));
|
||||
setBackground(new Color(0xebebeb));
|
||||
// this.setBorder(BorderFactory.createMatteBorder(2, 0, 0, 0, Color.BLACK));
|
||||
layout = new GroupLayout(this);
|
||||
this.setLayout(layout);
|
||||
@@ -345,10 +346,10 @@ public class UpdateContributionTab extends ContributionTab {
|
||||
layout.setVerticalGroup(layout.createParallelGroup()
|
||||
.addComponent(updateButton));
|
||||
updateButton.setVisible(true);
|
||||
updateButton.setEnabled(false);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void update(ContributionPanel panel) {
|
||||
public void update() {
|
||||
if (contributionListPanel.getNoOfRows() > 0) {
|
||||
updateButton.setEnabled(true);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user