Java Code Examples for java.awt.event.ActionEvent#setSource()
The following examples show how to use
java.awt.event.ActionEvent#setSource() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TreeTable.java From netbeans with Apache License 2.0 | 5 votes |
public void actionPerformed(ActionEvent e) { if (TreeTable.this.getSelectedColumn() == getTreeColumnIndex()) { //Issue 40075, on JDK 1.5, BasicTreeUI remarkably expects //that action events performed on trees actually come from //trees e.setSource(getTree()); treeAction.actionPerformed(e); } else { tableAction.actionPerformed(e); } }
Example 2
Source File: ResourceActionTransmitter.java From rapidminer-studio with GNU Affero General Public License v3.0 | 5 votes |
@Override public void loggedActionPerformed(ActionEvent e) { if (eventSource != null) { e.setSource(eventSource); } action.actionPerformed(e); }