I have a class which extends from JComponent and it paints string (with help of Swing Timer) which is moving and changing.
Whenever my opaque glass panel gets repainted then will content panel too, how I could repaint it from particular area only (glass and content panels) like bounds of the string.
Major problem is clearly the CPU usage, because of the repainting of whole area. This ins't so important for me right now but I'm grateful for any reply. Because in future I could write some nice floating, moving and iconed menu component on glass panel.
Like JTable paints dirty regions (cells) ???
Some code (what the hell, here is the whole code):
posted 11 years ago
>> Maybe I will use opaque CellRendererPane for this one
Umm, what I mean was maybe content panel could act like CellRendererPane by painting dirty regions, in area where glass panel is painting ?