Uses 6028K of libraries. Compilation Failed (18474L/96K).
!7 set flag Processing2. sclass RAMUsageGuage > DynModule { PGauge gauge; JComponent visualize() { // XXX - experimental JPopupMenu.setDefaultLightWeightPopupEnabled(false); gauge = pMainAsComponent(PGauge); //JComponent panel = singleComponentPanel(gauge); //JComponent panel = jfullcenter(gauge); JComponent panel = jfullcenter(jFixedSize(gauge.Wsize1, gauge.Wsize2, gauge)); //JComponent panel = jscroll_centered(jFixedSize(gauge.Wsize1, gauge.Wsize2, gauge)); awtEveryAndNow(panel, 1000, r actualUpdate); ret panel; } void actualUpdate { temp enter(); GlobalMemory m = oshi_systemMemory(); double percent = 100-percentRatio(m.getAvailable()-m.getSwapUsed(), m.getTotal()); if (gauge.setValue(percent, iround(percent) + "% of RAM used")) gauge.handleDraw(); setModuleName(gauge.title); } }
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: | #1016729 | 
| Snippet name: | RAM usage gauge [Dyn Module, still has some repaint problems] | 
| Eternal ID of this version: | #1016729/12 | 
| Text MD5: | 0f7501ad817c0855089ff55801f053a1 | 
| Transpilation MD5: | 6c144744c47d880bbc704ccf6974f3b5 | 
| Author: | stefan | 
| Category: | javax | 
| Type: | JavaX source code (Dynamic Module) | 
| Public (visible to everyone): | Yes | 
| Archived (hidden from active list): | No | 
| Created/modified: | 2018-06-30 15:52:25 | 
| Source code size: | 905 bytes / 29 lines | 
| Pitched / IR pitched: | No / No | 
| Views / Downloads: | 596 / 784 | 
| Version history: | 11 change(s) | 
| Referenced in: | [show references] |