• Java, replace single char occurence with drawPolygon. Applet

    HeatherKort Member

    Hello, for my course ive been asked to write an applet that has numerous functions from whatever the user writes into a text box. This includes whenever my initials arise in the text box they have to be replaced by a polygon i have drawn, of that letter. I have numerous methods all that aren’t working as a polygon cannot replace a string. I have the initials saved as a global variable sl1 and sl2. I have used replace.All(sl1, (nameofpolygonfunction)) but this won’t work. Anyone can help with this?

Viewing 0 reply threads
  • You must be logged in to reply to this topic.