!7 set flag Processing2. please include function pMain. p { final PGauge gauge1 = pMain(PGauge); Window w = getWindow(gauge1); for (WindowListener l : w.getWindowListeners()) w.removeWindowListener(l); getParent(gauge1).remove(gauge1); disposeWindow(w); showPackedFrame(gauge1); printComponentTree(getFrame(gauge1)); //hideConsole(); repeat with sleep 1 { GlobalMemory m = oshi_systemMemory(); double percent = 100-percentRatio(m.getAvailable()-m.getSwapUsed(), m.getTotal()); S title = "RAM used"; // scale to 180 //pgauge_showDiskSpace(gauge1, title, percent); // scale to 100 gauge1.setValue(percent, iround(percent) + "% of " + title); } }