Add JButton to JToolBar also auto add JButton to L&F?
posted 13 years ago
Under kunststoff L&F add one button instance to JToolBar, it found that the instance also be added to the KunststoffToolBarUI's one field. and the KunststoffToolBarUI is one static instance. And there has no method can be used to remove the referrence from the KunststoffToolbarUI instance, so the button instance's resource and the resource the button referres will never be gc'ed until exit the program. Can you help me? Thanks adv.