Problem with layers
I'm creating simple shape editor.
I have a little problem with calling repaint() on the whole JPanel, because i show also grid in the background.
For example when I'm doing multiple selection, just because I want to show current selection boundary I have to repaint everything ... grid, geometry, selection box.
So my question is:
Is it possible to create more ovelaping layers and each one renders only itself ? (analogy to glasspane)
I'd like to have:
1st layer ... grid
2nd layer ... geometry
3rd layer ... guides, select boxes .. a.s.o.
Anyone can point me out to solution? Or a pages? Thanks a lot lot !!!