[2 JFrames, one only repaints when being resized..!?] [FIXED]

So i tried adding a sub JFrame, it’s in a private inner class, it has a paint method, super.paint(g);, the only time that it paint is while it’s being resized, or everytime it’s being opened.

If need be I can explain more, upload pictures, all i’m having it to is repaint Strings.

EDIT: My bad, I made the GUI implement class: SF1, when it should of implemented SF1.SUB so ‘super.paint(g)’ could loop.

Code:


	public static class SUB extends JPanel {
		public void paint(Graphics g) {
			super.paint(g);
			//p = new Performance();
			final Graphics2D g2d = (Graphics2D) g;
			g2d.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_ON);
			g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
			g2d.setRenderingHint(RenderingHints.KEY_RENDERING,RenderingHints.VALUE_RENDER_QUALITY);
		    //getTotalMem(), getFreeMem(), getMemUsed(), getMemUsedPercent()
			GraphicsHandler.renderText(g, "Memory Used: "+Performance.memoryUsed+"mb.", 50, 50, Color.RED, GraphicsHandler.small);
			System.out.println("Painting SUB");
		}
	}

And even though thrown in other loops:


	private void Cycle() {
		repaint();
		SF1 SUB;
		SUB = new SF1();
		SUB.cycle();
		SUB.sub.repaint();
		updateFps();
	}

		public void cycle() {
			Performance.processMemory();
			repaint();
		}

It still doesn’t want to repaint.