Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

9
LINES

< > BotCompany Repo | #1016228 - swing_clearLightWeightPopupCache - avoid ghosting from LightWeightPopupCache

JavaX fragment (include)

svoid swing_clearLightWeightPopupCache() {
  swing {
    L cache = cast call(classForName("javax.swing.PopupFactory$LightWeightPopup"), 'getLightWeightPopupCache);
    if (nempty(cache)) {
      //print("Clearing LightWeightPopupCache");
      clear(cache);
    }
  }
}

download  show line numbers  debug dex   

Travelled to 12 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz

No comments. add comment

Snippet ID: #1016228
Snippet name: swing_clearLightWeightPopupCache - avoid ghosting from LightWeightPopupCache
Eternal ID of this version: #1016228/3
Text MD5: 6835838cece18a08bfb76d1903edf0ca
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-06-10 23:32:12
Source code size: 277 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 146 / 161
Version history: 2 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1016228 & http://1016228.tinybrain.de