Oh, I think I found out the error now. I should have extended my VisaStapel - class with JPanel instead of JFrame...
Thanks for the help everyone :)
Type: Posts; User: Fermen
Oh, I think I found out the error now. I should have extended my VisaStapel - class with JPanel instead of JFrame...
Thanks for the help everyone :)
Yes, this change make it work. But it should, according to my instructions work the way I wrote it to. This is the error:
Exception in thread "main" java.lang.IllegalArgumentException: adding a...
Why do I get this error? --> Exception in thread "main" java.lang.IllegalArgumentException: adding a window to a container
It's ridiculous... I'm just adding a JPanel to a JFrame..or?
Class...