🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #1652

Re: how to send data to COM port?

#1652
From: Avi Abrami
Date: Mon, 22 Oct 2001 05:24
20 lines
1479 bytes
Jason wrote:

> traditionally, when we want to send data to COM port printer, we just
> specify filename as "PRN". Then the data will be printed by COM port
> printer.
>
> How to do it in java?

Hi Jason,
If you want to print something from your java app, look at

http://java.sun.com/docs/books/tutorial/2d/printing/overview.html
http://developer.java.sun.com/developer/Books/swing2/

If you want to communicate with the COM port from your java app,

http://java.sun.com/products/javacomm/index.html

HTH,
Avi.
Technical Details
Message-ID: <3BD3AD76.1CA6BBDE@intersystemsww.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newsfeed.media.kyoto-u.ac.jp!newsfeed.mesh.ad.jp!uunet!osa.uu.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews
References: <3bd371d5_2@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,e5faef356b0884d6
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2001-10-21 22:24:12 PST
Message-ID: <3BD3AD76.1CA6BBDE@intersystemsww.com>
Date: Mon, 22 Oct 2001 07:24:06 +0200
From: Avi Abrami <aabrami@intersystemsww.com>
Organization: InterSystems Ltd
X-Mailer: Mozilla 4.78 [en] (Windows NT 5.0; U)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: borland.public.jbuilder.java.api
Subject: Re: how to send data to COM port?
References: <3bd371d5_2@dnews>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 212.199.57.233
X-Trace: dnews 1003728151 212.199.57.233 (21 Oct 2001 22:22:31 -0700)
Lines: 22
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newsfeed.media.kyoto-u.ac.jp!newsfeed.mesh.ad.jp!uunet!osa.uu.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews