Skip to content

Commit

Permalink
Element lookup table wasn't accepting clicks on element names, only c…
Browse files Browse the repository at this point in the history
…heckboxes
  • Loading branch information
nathanielsherry committed Jan 11, 2024
1 parent 705022d commit 7629667
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,25 +108,21 @@ public void setSelected(boolean selected) {

static class TSRenderer extends ClearPanel {

private JLabel name;
JCheckBox check;
private boolean editor = false;

public TSRenderer(boolean editor) {
this.editor = editor;
setLayout(new FlowLayout(WEST, Spacing.small, Spacing.small));
name = new JLabel();
name.setBorder(new EmptyBorder(0, Spacing.small, 0, 0));
check = new JCheckBox();
add(check);
add(name);

setBorder(Spacing.bTiny());

}

public void setTransitionSeries(ITransitionSeries ts) {
name.setText(ts.getShell().toString());
check.setText(" " + ts.getShell().toString());
}

public void setSelected(boolean selected) {
Expand All @@ -136,7 +132,7 @@ public void setSelected(boolean selected) {
} else {
colour = Stratus.getTheme().getControlText();
}
if (name != null) name.setForeground(colour);
if (check != null) check.setForeground(colour);
}


Expand Down

0 comments on commit 7629667

Please sign in to comment.