Try filling it with a transparent color before drawing the text.
Welcome to the Java Programming Forums
The professional, friendly Java community. 21,500 members and growing!
The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.
>> REGISTER NOW TO START POSTING
Members have full access to the forums. Advertisements are removed for registered users.
Try filling it with a transparent color before drawing the text.
If you don't understand my answer, don't ignore it, ask a question.
JavaInProgress (May 2nd, 2013)
Well, I got it to work! Thanks so much for all the help. The issue was that by drawing an image, all the transparency was being filled. The solution was to draw the painted image on the component, then draw the custom ui over top and refresh every mouseDragged event. However, the whole project was supposed to be for android, and I didn't realize there were different commands/structure. I'll start a new thread in the Android section, with an example from android. Thanks again for all the help and patience!