mirror of
https://github.com/processing/processing4.git
synced 2026-02-13 18:35:37 +01:00
Done with GUI changes for Show Compatible Contributions
This commit is contained in:
@@ -226,6 +226,22 @@ public class ContributionManagerDialog {
|
||||
// filterPanel.add(Box.createHorizontalGlue());
|
||||
filterField = new FilterField();
|
||||
filterPanel.add(filterField);
|
||||
|
||||
filterPanel.add(Box.createHorizontalStrut(5));
|
||||
|
||||
String compatibleContribType = title.substring(0, title.indexOf(" "))
|
||||
.equalsIgnoreCase("Library") ? "Libraries" : (title.substring(0, title
|
||||
.indexOf(" ")) + "s");
|
||||
|
||||
JCheckBox compatibleContrib = new JCheckBox("Show Only Compatible " + compatibleContribType);
|
||||
compatibleContrib.addItemListener(new ItemListener() {
|
||||
|
||||
@Override
|
||||
public void itemStateChanged(ItemEvent arg0) {
|
||||
System.out.println("Here");
|
||||
}
|
||||
});
|
||||
filterPanel.add(compatibleContrib);
|
||||
// filterPanel.add(Box.createHorizontalGlue());
|
||||
// }
|
||||
//filterPanel.setBorder(new EmptyBorder(13, 13, 13, 13));
|
||||
|
||||
Reference in New Issue
Block a user