Desktop application position

0

Good evening guys I'm having a problem I'll try to explain:

I created a desktop app and I need your position on the screen to take a photo ... 1st step get posY , and X with getX , GetY , already fis. I put these values in a proper table; When I start the app I read the file and I record it in variable..ai what's the problem when convert string to int return 0 because?

    
asked by anonymous 07.02.2018 / 20:49

1 answer

0

I discovered what was wrong. I typed the code like this:

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

But the truth is:

Integer.parseInt(prop.getProperty("getY"));
    
07.02.2018 / 20:59