class FirstDrawPanel extends JPanel
{
public void paintComponent(Graphics g)
{
g.setColor(Color.WHITE);
g.fillRect(0, 0, this.getWidth(), this.getHeight());...
Type: Posts; User: SyntheticD
class FirstDrawPanel extends JPanel
{
public void paintComponent(Graphics g)
{
g.setColor(Color.WHITE);
g.fillRect(0, 0, this.getWidth(), this.getHeight());...
Any theories on the "somehow" part.. I had some code in there, but when I clicked the button, it freezed. That's why I removed it.
package four.work.course;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Graphics;
import javax.swing.JFrame;
import javax.swing.JPanel;
// import java.util.Random;
...
I tried that, but when the button is clicked to stop the animation, program "freezes"
protected void retrace(boolean check)
{
while (status == true)
{
for (counter = LOOPBACK; counter <= frameCW4.getWidth(); counter++ )
{
for (counter = LOOPBACK; counter <=...
Hey,
but I get this, same codes..
I'm using Eclipse, there's a link above to the results Im getting.
problem solved.
Wrong post.
What you told me, gives me expected behaviour.. but.. when the button is clicked, another button pops up, and I now have two buttons. Why is that ?
problem solved.