MCPcopy Create free account
hub / github.com/GateNLP/gate-core / propertyChange

Method propertyChange

src/main/java/gate/swing/JTreeTable.java:98–105  ·  view source on GitHub ↗
(PropertyChangeEvent e)

Source from the content-addressed store, hash-verified

96
97 getColumnModel().getColumn(0).addPropertyChangeListener(new PropertyChangeListener() {
98 @Override
99 public void propertyChange(PropertyChangeEvent e) {
100 if(e.getPropertyName().equals("width")){
101 int width = ((Number)e.getNewValue()).intValue();
102 int height = tree.getSize().height;
103 tree.setSize(width, height);
104 }
105 }
106 });
107 }
108

Callers

nothing calls this directly

Calls 2

equalsMethod · 0.65
getSizeMethod · 0.45

Tested by

no test coverage detected