import java.beans.*; static NotTooOften fixSwingTitledBorderMemoryLeak_notTooOften = onlyEvery10Secs(); // just for printing svoid fixSwingTitledBorderMemoryLeak() { PropertyChangeListener[] l = UIManager.getPropertyChangeListeners(); for (O o : l) if (eq(className(o), "javax.swing.border.TitledBorder$1") && getOpt(o, "this$0") != null) { setOpt(o, "this$0", null); if (fixSwingTitledBorderMemoryLeak_notTooOften.yo()) print("FIXED TitledBorder bug."); } }
Began life as a copy of #1016261
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1016262 |
| Snippet name: | fixSwingTitledBorderMemoryLeak |
| Eternal ID of this version: | #1016262/5 |
| Text MD5: | 64be15df52d611432fb995e116e7a59a |
| Author: | stefan |
| Category: | javax / modules |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-10-16 13:36:30 |
| Source code size: | 511 bytes / 14 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 631 / 679 |
| Version history: | 4 change(s) |
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1018601 - unfixSwingTitledBorderMemoryLeak - to allow changing L&F [seems to work] |