 |
Author |
Topic: Swing Components (Read 3471 times) |
|
zatrix
|
Swing Components
« on: Feb 20th, 2005, 1:54am » |
|
Sorry not sure if I'm in the right catergory. Anyway, this Processing thing is wicked, I glad to see it's not limited and I am still able to take advantage of usual java code. However, when using a Swing component instead of a AWT component (Button : Awt , JButton : Swing), the swing version of each component acts funny. They dont show up properly. For example if you create a new button, Code: that will create a simple button no problem. However change the code to, Code:add(new javax.swing.JButton("test")); |
| now that button will appear in the same place as the previous button but it wont be visible until you click on it. I think it has something to do with the way the screen is redrawn. Anyone else encounter this? Any ideas how to fix it?
|
|
|
|
|