Code Comments
Programming Forum and web based access to our favorite programming groups.Andrew Thompson wrote: > On 30 Oct 2004 10:08:37 -0700, Avraham wrote: > > > > > I don't see the point of using Java to (try to) interact so > closely with the command line. It is not a language well > suited for it and it destroys the x-platform nature of Java > for the sake of a few lines on the screen. > > If your students are so hungry for pretty lines, it would be > better to give your students a quick taste* of Java GUI's > with a single frame where you overide paint. Yup, totally agree... trying to do ascii art graphics is not practical in this fashion (i.e. controlling ascii output location much like the curses library would). A way is *could* be done is to make an object that accepts drawing operations, buffers/remembers them, and then when requested outputs a block of X by Y ascii showing the given lines, triangles etc. (It would just output spaces, of course, where nothing was drawn.) If AWT and graphics were really, really cryptic and hard to do, I could see why the original poster was requesting this; but AWT is pretty simple to do once you've got started! alex
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.