Well thx i did that and it worked thx for the advice man .
Type: Posts; User: savvas
Well thx i did that and it worked thx for the advice man .
import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
import java.util.Random;
import java.applet.*;
public class SimpleApplet extends JApplet
{
JButton ng;
JPanel...
Problem solved thx
Well yes the constructor i call yes there is in the Box class. The Box construtctor takes a double x and it creates a cube. all i want to do is to prevent the Box to create a cube if i a negative...
well guys this is my code
public class MyBox extends Box
{
public MyBox(double x)
{
if(this.x >0){
super(x);
}
}