Desktop application position

Asked

Viewed 28 times

0

Everybody good afternoon I’m having a problem I’ll try to explain:

I created a desktop app and need your onscreen position to take a picture... first step catch posY,and X with getX,GetY, already Fis. I put these values in an Arq propert; when I start the app I read Arq and write in variable.. there’s the problem when convert the string in int back 0 because?

1 answer

0

I found out what was wrong. I typed the code like this:

Integer.getInteger(prop.getProperty("getY"));

But the thing is:

Integer.parseInt(prop.getProperty("getY"));

Browser other questions tagged

You are not signed in. Login or sign up in order to post.