A JTree that supports Drag and Drop, Cut, Copy, Paste, and Undo/Redo.
Born out of the frustration of trying to find an example anywhere that implements all the fruit. This is a more-or-less bare-bones model to build on. Not terribly well written and hardly optimised, once I got it to work I stopped fiddling.
Also includes:
- a friendlier cell editor,
- a toolbar, and
- additional edit actions;
- Clone, and
- Delete.
Props to these folk from whom I shamelessly stole code:
- Rob Camick for Component Border (Java Tips WebLog and GitHub), and
- Albert Hendriks Stack Overflow which was in turn code edited from coderanch by
- Craig Wood