🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #9640

drawing lines to link JButtons, like in JavaStar

#9640
From: Peter Doyle
Date: Thu, 24 Feb 2000 00:00
15 lines
1285 bytes
Hi,
 I have a subclass of JPanel containing various JButtons (subclasses of
JButton). The buttons can be dragged around and that works great. I want
to draw lines linking boxes. I'm having touble mixing say the drawLine
method of Graphics with this Container.
Ideally I'd like to have arrows, with heads, linking them. I've seen
this in the Sun utillity JavaStar, which is used for testing GUIs.

Also the layout algorithm is a bit of a problem...but that another
story.

Do you have any suggestions?

Thanks,
Peter
Technical Details
Message-ID: <38B5909F.108BEB8F@gofree.indigo.ie>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,8672931e68d94ac4,start
X-Google-Attributes: gid111d45,public
X-Google-Thread: f5d71,8672931e68d94ac4,start
X-Google-Attributes: gidf5d71,public
From: Peter Doyle <syzygy@gofree.indigo.ie>
Subject: drawing lines to link JButtons, like in JavaStar
Date: 2000/02/24
Message-ID: <38B5909F.108BEB8F@gofree.indigo.ie>
X-Deja-AN: 589450613
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=us-ascii
X-Complaints-To: news@indigo.ie
X-Trace: news.indigo.ie 951423113 194.125.174.46 (Thu, 24 Feb 2000 20:11:53 BST)
Organization: Indigo
MIME-Version: 1.0
NNTP-Posting-Date: Thu, 24 Feb 2000 20:11:53 BST
Newsgroups: borland.public.jbuilder.java.swing,comp.lang.java