Console RPG "Command box"es?
Okay... I'm not quite sure how to explain this... basically, I'm looking for a class or at least some kind of methodology for creating little boxes inside a game window. The purpose I have in mind is similar to the way such boxes were used in, say, a Final Fantasy game (or nearly any other RPG with menu-driven battles)-- basically, one comes up for the command window, and more keep popping up as sub-menus, etc. Basically, I'm just trying to find some way so that I could throw those out like nothing with no more than like 1 line needed to create and draw one in the main loop (of course, I would have to have a bunch of lines of code in the class itself, but that's quite normal).
Incidentally, would this be the kind of thing referred to by the name "internal frame"? (Yeah, that's probably a bad question, but I'm just trying to figure this out.)
Thanks in advance for your help!
> sub-menus, etc. Basically, I'm just trying to find
> some way so that I could throw those out like nothing
> with no more than like 1 line needed to create and
> draw one in the main loop (of course, I would have to
> have a bunch of lines of code in the class itself,
> but that's quite normal).
Kind of like JOptionPane except not in a separate window. You might be able to adapt JOptionPane to this purpose
> Incidentally, would this be the kind of thing
> referred to by the name "internal frame"? (Yeah,
> that's probably a bad question, but I'm just trying
> to figure this out.)
Maybe. Or a popup window. Depends how you're doing it.
I'm aiming for within the same window... Theoretically, I could just draw a rectangle and draw text onto it using the AWT or Swing API's native methods (and somehow implement menu functionality), but I'm just wondering if there's a class that would simplify it, is all.
I'll be sure to review the Swing tutorial in case I just missed something there.
Thanks for the help so far!