This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
mainLabel.repaint();
}
//Called to clear the progressbar
void clearProgressBarOSX() {
//EMI: On OSX, an animation thread is started when the progressbar is created, even if not displayed (or added to a container).
// The following line is needed to kill the animation thread otherwise this tends to be alive for the rest of the JVM execution
// pumping a lot of repaing events in the event queue (in my tests, about 50% of the CPU while idle).
// The culprit apple.laf.CUIAquaProgressBar$Animator was discovered with the normal Profiler, while Tim Boudreau told me about a similar
// problem with OSX and the pulsating button (that also has a thread for that animation).
// Finally, btrace and this IDEA bug report (http://www.jetbrains.net/jira/browse/IDEADEV-25376) connected the dots.
if(bar!=null){
bar.getUI().uninstallUI(bar);
private class MListener extends MouseAdapter {
public void mouseClicked(MouseEvent e) {
private void discardBar() {
if (bar != null) {
bar.removeMouseListener(mouseListener);
bar = null;
private void removeListItem(InternalHandle handle) {
handleComponentMap.remove(handle);
ListComponent c = handleComponentMap.remove(handle);
pane.removeListComponent(handle);
pane.updateBoldFont(model.getSelectedHandle());
if (showingPopup) {
resizePopup();
if (c != null) {
c.clearProgressBarOSX();