Jump to content

Java Side Slider Issue #2

chazat123
Go to solution Solved by Duda777,

I'm a noob a Javascript and have ran into a slight issue!

The issue starts from the two lines starting with "g2."

The error reads on line 107

Multiple markers at this line

- Syntax error on token "(", delete this token

- Syntax error on tokens, VariableDeclarator expected

instead

The error reads on line 108:

Multiple markers at this line

- Syntax error on tokens, VariableDeclarator expected

instead

- Syntax error on token "(", delete this token

Does the error say what is there instead of variable expected ?

The only thing I can think of is that the variable g2 has not been defined

And missing ; at the end

I'm a noob a Javascript and have ran into a slight issue!

The issue starts from the two lines starting with "g2."

 

The error reads on line 107

 

Multiple markers at this line

- Syntax error on token "(", delete this token
- Syntax error on tokens, VariableDeclarator expected 
instead

 

The error reads on line 108:

 

Multiple markers at this line
- Syntax error on tokens, VariableDeclarator expected 
instead
- Syntax error on token "(", delete this token
 

If someone could inbox me too as I need help with other coding!

private void update() {}	private void draw() {}	private void drawToScreen() {}		Graphics g2 = getGraphics();		g2.drawImage(image, 0, 0, null);		g2.dispose(image, 0, 0, null);					public void keyTyped(KeyEvent key) {}	public void keyPressed(KeyEvent key) {}	public void keyReleased(KeyEvent key) {}
Link to comment
Share on other sites

Link to post
Share on other sites

I'm a noob a Javascript and have ran into a slight issue!

The issue starts from the two lines starting with "g2."

The error reads on line 107

Multiple markers at this line

- Syntax error on token "(", delete this token

- Syntax error on tokens, VariableDeclarator expected

instead

The error reads on line 108:

Multiple markers at this line

- Syntax error on tokens, VariableDeclarator expected

instead

- Syntax error on token "(", delete this token

Does the error say what is there instead of variable expected ?

The only thing I can think of is that the variable g2 has not been defined

And missing ; at the end

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×