Figured it out... invalidate() then validate() refreshes the window without any popping, blinking or niggering about.
</thread>
Name:
Anonymous2012-05-11 12:49
ok I lied, it's still gay...
how the hell do I get it to remove the chart element from the panel, re-add it and then re-draw it?
so I remove the chart from the panel, but then what? I've tried re-validating the panel, repainting the window, re-validating the window, etc. but the original chart won't gtfo
I agree 100%, which is why I fucking hate Java. That said, I need to use it for this asshole class, and I can't figure this shit out.
You have to be kidding me, this is such shit. This doesn't even work:
//Add new chart to panel & update window
window.invalidate();
window.remove(panel); //Remove panel from window
panel.remove(chartPanel); //Remove chart from panel
panel.repaint();
panel.add(chartPanel); //Add new chart to panel
window.add(panel); //Add panel back to window
window.validate();
>>7
Doesn't stop JVM's GC from being slow as fuck
That, and the horrible syntax, and the horrible API, and how it shoves OOP's in its shittiest down your throat.