Results 1 to 2 of 2
- 10-28-2012, 09:17 PM #1Member
- Join Date
- Mar 2012
- Rep Power
Hey guys, I have an empty arrayList and the user can type into the textfield a word, click the add word button and the word will be added to an ArrayList. My problem is that I need to make it so when they press another button the list of words will be draw to the centre of the applet.
I can do this for example.
String s = "banana";
g.drawString(s, xPos, yPos);
al = new ArrayList();Java Code:
g.draw(al, xPos, yPos); //doesn't work.
Please try to not just refer me to a generic java.docs page because I've looked through the articles already. Didn't find anything about drawing the contents of an array.
- 10-29-2012, 02:29 AM #2