Repaint « Applet « Java Swing Q&A





1. Java - Repaint Not Working    stackoverflow.com

So I am making a Text-Based RPG Applet in Java. I am using SWING panels, with text fields and buttons on it. I am programming it in Netbeans, and I am ...

2. JApplet repaint    coderanch.com

Never programmed a graphical Applet (or a JApplet at all), so I'm not sure how they work. There are a couple of generic thing you could try: you could paint over the old text with the same text in black (or whatever the background colour is - won't work if it's a picture) before drawing the new line of text Double ...

3. repaint applet    coderanch.com

4. Applet repaint newbie help    coderanch.com

Greetings. Hopefully this is the right place to ask this question--I searched through the Applets discussion but wasn't sure if it was the right place for a newbie q. I've been banging my skull against my keyboard on this one. I need a smiley face to change to a frowny face when a Jbutton is clicked. I got the face, the ...

5. repaint() method of applet problem    coderanch.com

Valid XHTML 1.0 Transitional Valid CSS!
Quality Assurance, Step #1 Quality Assurance, Step #2

6. To make JApplet repaint    coderanch.com

7. Swing applet design paintComponent or repaint ?    coderanch.com

A few mistakes: - paintComponent should remain protected. There's no need to make it public. - paintComponent misses the call to super.paintComponent(g). - you're creating user interfaces and have complete business logic in the paintComponent method. That method's going to be called A LOT. The paint methods should be used for just that - painting the component.

8. Applet refuses to repaint    coderanch.com

I have tried wrting this program using JFrames and plain old applets. I get the same results every time - it wont repaint when I call it. I put some debugging info in it and I can tell that it is doing what it is supposed to other than repaint(). It is supposed to loop through animations in response to arrow ...