MCPcopy Index your code
hub / github.com/benfry/processing4 / mousePressed

Method mousePressed

app/src/processing/app/tools/CreateFont.java:714–724  ·  view source on GitHub ↗
(MouseEvent e)

Source from the content-addressed store, hash-verified

712
713 addMouseListener(new MouseAdapter() {
714 public void mousePressed(MouseEvent e) {
715 if (isEnabled()) {
716 int index = locationToIndex(e.getPoint());
717
718 if (index != -1) {
719 JCheckBox checkbox = getModel().getElementAt(index);
720 checkbox.setSelected(!checkbox.isSelected());
721 repaint();
722 }
723 }
724 }
725 });
726 setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
727 }

Callers

nothing calls this directly

Calls 3

setSelectedMethod · 0.80
repaintMethod · 0.80
isEnabledMethod · 0.45

Tested by

no test coverage detected