How about you search in google for "texture mapping" or "perspective correct texture mapping".
There's no Graphics.textureMap() method in Java, you'll have to code it
yourself. Or you can use GL4Java (www.jausoft.com/gl4java.html) if you're
lazy, incompetent or both.