The
many Visual Library samples in "contrib" include one called
"serialization". I used that sample today to serialize one of my
own scenes.
Before showing the code, some screenshots. First, I drag and
drop one or two items from the palette onto my scene:
Next, after resizing them (code for which you can find via the
NetBeans Platform Tutorials page, bearing in mind this
issue), I save them, using the Save menu item:
Then, simply as a result of using the above menu item, this...