01-27-2005, 12:33 PM
lfd,Jan 27 2005, 03:38 AM Wrote:At the moment there's no mechanism to specify how many of each type of rune you have; I might have one Vex rune, but I can't make Phoenix or Last Wish with just one of them.
[right][snapback]66504[/snapback][/right]
Yeah, when I started making the program I had never even heard of runewords using more than one of one type of rune. So you know, halfway through I hit some of those high level ones and was kind of stuck, but I just let it go, but you definately have a good point.
There are a few ways to do this in my mind, so tell me what you think:
A. a text box appears where "HAVE" is right now so you can specify how many you have
B. a rolling/scrolling (don't know the correct terminology) little box appears where "HAVE" is now that lets up click up, and click down the number, and default will be 1
C. or...I don't know how to do this yet, but have it distinguish between right and left clicks on the runes, and one could up the number and one could lower the number. Min = ------ Max = 4 or something. None use more than 4 of the same, right? There has got to be a way to do this, but I'm having trouble figuring it out. We just go into listeners (button) in the last chapter, so I'm doing a lot of reading ahead/messing around. If anyone can point me here, I think this way might be the best.
And adeyke, I think you're right a fixed size textarea would be best. I'm not too good with them, because we never covered them yet, and the java website is a little too technical for me, but I think I can figure it out.
JTextArea text = new JTextArea(int dimen, int dimen) <-----it's those dimension things that I have a problem with. It's almost trial and error with me. Also, do you know the method to center text in a text area? I think it's something like:
text.setHorizontalAlignment() but I don't know the vairable. I tried JTextArea.CENTER and stuff like that, but it didn't work...
US East ROCKS!!! *Esahaettr
*I may not know the answer, but the voices in my head probably do.
*Cows may come and cows may go, but the bull in here will live on forever.