CANVAS PROBLEM
HELLO EVERYBODY. I碝 A STUDENT BEGGINER IN JAVA AND I HAVE A BIG PROBLEM.
I HAVE TO DO ATREE ANIMATION TOOL, AND I FINALLY HAVE BEEN ABLE TO DO IT (MORE OR LESS), BUT WHEN I PAINT SOMETHING IN THE CANVAS, IT PAINTS IT CORRECTLY, BUT IN 1 SECOND, IT DISSAPEAR.
WHEN I PAINT A NEW NODE, THE LAST THAT I PAINTED, ISN碩 VISIBLE IN THE CANVAS. IT碨 LIKE THE PROGRAM REFRESH THE SCREEN, BUT I HAVEN碩 DONE ANYTHING STRANGE THAT CAUSES THAT IT BEHAVES IN THAT WAY.
I NEED AID QUICKLY BECAUSE THE DATE OF DELIVERY COMES NEAR.
THANK YOU VERY MUCH!
[575 byte] By [
CALIOPPEa] at [2007-11-26 15:47:04]

> HELLO EVERYBODY. I碝 A STUDENT BEGGINER IN JAVA AND
> I HAVE A BIG PROBLEM.
You seem to have multiple problems.
One, your CAP LOCKS KEY APPEARS TO BE STUCK
Two, you have not posted any code. You need to create a [url=http://homepage1.nifty.com/algafield/sscce.html]Short, Self Contained, Compilable and Executable, Example Program[/url] (SSCCE) that demonstrates the incorrect behaviour, because we can't guess exactly what you are doing based on the information provided.
Three, you posted in the wrong forum. In future Swing related questions should be posted into the [url=http://forum.java.sun.com/forum.jspa?forumID=57]camickr[/url] forum.
Four, you don't seem to know what the words "In future" mean http://forum.java.sun.com/thread.jspa?threadID=5127230Five, your CAPS LOCK PROBLEM is still not fixed.Six, you just generally don't seem to be able to follow basic directions of any kind.I recommend giving
import java.awt.*;
import java.awt.event.*;
public class UnlockCaps {
public static void main(String[] args) {
Toolkit.getDefaultToolkit().setLockingKeyState(KeyEvent.VK_CAPS_LOCK, false);
}
}
> > import java.awt.*;
> import java.awt.event.*;
>
> public class UnlockCaps {
>public static void main(String[] args) {
>
> oolkit.getDefaultToolkit().setLockingKeyState(KeyEvent
> .VK_CAPS_LOCK, false);
>}
>
Nice, but why import java.awt.event.*?