invalid Token in Java Script

I have a problem with my Script, because the “:” doesn´t work. Im working in replit ans it says that I have to delete this Token.

My script:

GalgenratenBild = CustomTools.loadImage(gemeinsameKonstante.IMAGE_PATH);
    GalgenratenBild.setBounds(x: 0, y: 0, GalgenratenBild.getPreferredSize().width, GalgenratenBild.getPreferredSize().height)); --> "syntax error on token ":", invalid AssignmentOperator."

I tried to Debug it with the replit Debugger but if I delete it, the x,y would be also invalid and undefined.