Returns the last path component of the selected path. This is a convenience method for getSelectionModel().getSelectionPath().getLastPathComponent(). This is typically only useful if the selection has one path. @return the last path component of the selected path, or null</cod
()
| 1812 | * @see TreePath#getLastPathComponent |
| 1813 | */ |
| 1814 | public Object getLastSelectedPathComponent() { |
| 1815 | TreePath selPath = getSelectionModel().getSelectionPath(); |
| 1816 | |
| 1817 | if(selPath != null) |
| 1818 | return selPath.getLastPathComponent(); |
| 1819 | return null; |
| 1820 | } |
| 1821 | |
| 1822 | /** |
| 1823 | * Returns the path identified as the lead. |
no test coverage detected