Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

How to "draw" (print) "graphics" on black text screen (console) - text mode
I would like to "draw" polygons on console (black) screen in "text
mode".
That is, to draw '**'s  instead of lines. Purpose is to let students
activate polygon methods and see it on screen, even before they learn
AWT and graphics.

I wonder if there are freeware classes doing this.

If not, how do I do gotoXY()  in black console screen. That is, how do
I control the cursor position ?.  Also, is there a clearScreen ()
method ?

How do I find the actual dimentions (in characters) of the screen ?
(not necessarily 25X80). Or, how do I maximize it ?


Thanks,
Memi (highschool teacher)

Report this thread to moderator Post Follow-up to this message
Old Post
Avraham
10-30-04 08:57 PM


Re: How to "draw" (print) "graphics" on black text screen (console) - text mode
On 30 Oct 2004 10:08:37 -0700, Avraham wrote:

> ....Purpose is to let students
> activate polygon methods and see it on screen, even before they learn
> AWT and graphics.

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.

(* Simple example to be explained later in the course.)

My 2c worth.

--
Andrew Thompson
http://www.PhySci.org/codes/  Web & IT Help
http://www.PhySci.org/  Open-source software suite
http://www.1point1C.org/  Science & Technology
http://www.LensEscapes.com/  Images that escape the mundane

Report this thread to moderator Post Follow-up to this message
Old Post
Andrew Thompson
10-30-04 08:57 PM


Re: How to "draw" (print) "graphics" on black text screen (console) - text mode
On 30 Oct 2004 10:08:37 -0700, Avraham <niv444@walla.co.il> wrote:

> I would like to "draw" polygons on console (black) screen in "text
> mode".
> That is, to draw '**'s  instead of lines. Purpose is to let students
> activate polygon methods and see it on screen, even before they learn
> AWT and graphics.
>
> I wonder if there are freeware classes doing this.
>
> If not, how do I do gotoXY()  in black console screen. That is, how do
> I control the cursor position ?.  Also, is there a clearScreen ()
> method ?
>
> How do I find the actual dimentions (in characters) of the screen ?
> (not necessarily 25X80). Or, how do I maximize it ?

Not in the default SDK, since there is hardly any way to make such a
facility platform-independant. You might have a look at the console
library for your platform, though, and see if anyone wrote JNI-Bindings
for it.

See you
Stefan
--

Whom the gods wish to destroy they first call promising.

Report this thread to moderator Post Follow-up to this message
Old Post
Stefan Schulz
10-30-04 08:57 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Java Help archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 05:08 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.