Sounds like you activated Wireframe Mode (Ctrl+W
).
I hope you did a backup of your preferences in advance. Otherwise, you’d might be lucky and find it in the file preferences.xml_backup
in the JOSM config folder. You should backup the file immediately as it could be overwritten if you close JOSM.