you also have to provide parameters for the method as i only overloaded the constuctor once. they are simple though Ivb test = new Ivb(x, y, width, height, cells/columns, frame/panel, borderThickness, ...