android - pictures as objects in app with java -
i scouting web, , maybe im terrible couldn't find answer. i'm making game friend project, , wonder, how can implent kinds of pictures code. wanna following: create male / female character. implent pictures hats, shoes, kinds of things can put on avater. , last thing background game. i'm not asking bunch of code, advise look. since pretty new on subject. game gonna in 2d. if know program interacts java in advance helping. michael.
basically can use images in multiple ways. instance can use add jlabel icon:
imageicon icon = new imageicon("pathtoimg.png"); jlabel label = new jlabel(); label.seticon(icon); if might need this:
label.setopaque(true); this small , quick example, i'm sure find need googling "images in java" or that. oracle docs should plenty of information use.
Comments
Post a Comment