Article View: borland.public.jbuilder.java.language
Article #16258Re: Output to Display?
From: Paul Furbacher
Date: Fri, 12 Mar 1999 00:00
Date: Fri, 12 Mar 1999 00:00
24 lines
1630 bytes
1630 bytes
Kerry Helmer wrote: > Does anyone know how to output text or numbers to a specific column and row > number from a java applacation to the screen? I don't want to use the > println method to output the information I need to specify a specific row > number. I'm guessin that there is a method that does it, but I'm unable to > find it. Are you thinking in terms of a character-based DOS window/terminal display? The Java UI is a graphical, not character-based, user interface. Hence, unless you consider each pixel as having a row and column address, there are no such things as column and row numbers. Furthermore, instead of outputting to "the screen", one paints into a component. Are you saying that you have a window, and in that window's content area you'd like to be able to place a piece of text at any location specified by an x-y coordinate? If so, numerous beginning books on Java explain this. Look in some of the examples in the JBuilder\samples\java\demo folder for the use of Graphics.drawString(). Paul Furbacher
Technical Details
Message-ID:
<36E97AA7.DA37F372@bilbo.bio.purdue.edu>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<7c9psg$mjk8@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,ef7d9e7128d8f5a0 X-Google-Attributes: gidf74b3,public From: Paul Furbacher <pf@bilbo.bio.purdue.edu> Subject: Re: Output to Display? Date: 1999/03/12 Message-ID: <36E97AA7.DA37F372@bilbo.bio.purdue.edu> X-Deja-AN: 454323482 Content-Transfer-Encoding: 7bit References: <7c9psg$mjk8@forums.borland.com> Content-Type: text/plain; charset=us-ascii Organization: Reverse Alchemy, Inc. Mime-Version: 1.0 Reply-To: pf@bilbo.bio.purdue.edu Newsgroups: borland.public.jbuilder.java.language