2 ms·
ah, good old Java Swing. Spent years working on big Swing projects. BTW, you want to wrap statements like this in a logger.isDebugEnabled() especially in the
by fnord77 2y ago
ah, good old Java Swing. Spent years working on big Swing projects.
BTW, you want to wrap statements like this in a logger.isDebugEnabled() especially in the paint loop because otherwise you always incur the cost of string concat, debug or not!
> logger.debug("REPAINT COMPONENT "+(CNT++)+" ("+ImageComponent.getDebugColorName()+") portion " + bounds_.x +","+bounds_.y+" " +bounds_.width+"x"+bounds_.height);
- dougdonohoe 2y agoThat code block is in an "if (debug)" block, which is enabled if "settings.debug=true" is set.