🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #14852

SV: The AWT is slow and can not do everything I want?

#14852
From: Johan Forsberg
Date: Thu, 29 Jul 1999 00:00
20 lines
1371 bytes
Marcel van den Dungen <info@c-content.nl> skrev i
diskussionsgruppsmeddelandet:37A03AD6.77B696BA@c-content.nl...
> Hello,
>
> I use the copyArea() method in the java.awt.Graphics class. However,
> this method is very slow. Other graphical methods also seem to be slow.
> Are there any alternatives? I want to draw text, (dotted) lines and
> rectangles and I want to move an area on the screen vertically.  The AWT
> does not have a method for drawing dotted lines and can not underline
> text. The AWT seems to be slow. What else can I use for drawing on
> screen (and eventually printing)?

If you are using Java2, you have access to java.awt.Graphics2D. This
graphics
has massive amounts of features.

To use it, simply recast your Graphics to Graphics2D in any JComponent
paint()
method.
Technical Details
Message-ID: <7npmn5$a0o20@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <37A03AD6.77B696BA@c-content.nl>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,3640c8bccc35aca6
X-Google-Attributes: gidf74b3,public
From: "Johan Forsberg" <jfo@stmf.se>
Subject: SV: The AWT is slow and can not do everything I want?
Date: 1999/07/29
Message-ID: <7npmn5$a0o20@forums.borland.com>
X-Deja-AN: 506594801
References: <37A03AD6.77B696BA@c-content.nl>
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211
Organization: Another Netscape Collabra Server User
X-MSMail-Priority: Normal
Newsgroups: borland.public.jbuilder.java.language