Article View: borland.public.jbuilder.java.swing
Article #1387Re: Display shape objects in a GUI
From: Craig Simmons
Date: Thu, 18 Dec 2003 15:42
Date: Thu, 18 Dec 2003 15:42
26 lines
2094 bytes
2094 bytes
Hi Try looking into using java.awt.Canvas and overide paint(Graphics g) craig http://java.sun.com/j2se/1.4.2/docs/api/java/awt/Canvas.html "madmax" <kushanku@bigfoot.com> wrote in message news:3fda1214$0$25673$cc9e4d1f@news.dial.pipex.com... : I am a complete beginner to Java, so any help would be great;y appreciated. : : I need to create a number of shape objects(triangles for existance) and : display them in a GUI. I need to place the shapes in random positions and : keep a record of their x - y position within the frame or container. Can : anyone point me in the right direction in terms of a tutorial / book or code : snippets that I can work on. : : Many thanks : : Steve : :
Technical Details
Message-ID:
<brshsl$81f$1@sparta.btinternet.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!crtntx1-snh1.gtei.net!news.gtei.net!newsfeed1.easynews.com!easynews.com!easynews!newspeer1.nwr.nac.net!colt.net!diablo.netcom.net.uk!netcom.net.uk!194.72.7.126.MISMATCH!news-peer-test!news-peer0-test!btnet-feed3!newreader.ukcore.bt.net!btnet-feed5!btnet!news.btopenworld.com!not-for-mailReferences:
<3fda1214$0$25673$cc9e4d1f@news.dial.pipex.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,e903b445c5191cdb X-Google-Attributes: gid111d45,public X-Google-ArrivalTime: 2003-12-18 07:43:02 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!crtntx1-snh1.gtei.net!news.gtei.net!newsfeed1.easynews.com!easynews.com!easynews!newspeer1.nwr.nac.net!colt.net!diablo.netcom.net.uk!netcom.net.uk!194.72.7.126.MISMATCH!news-peer-test!news-peer0-test!btnet-feed3!newreader.ukcore.bt.net!btnet-feed5!btnet!news.btopenworld.com!not-for-mail From: "Craig Simmons" <Cjs1@btinternet.com> Newsgroups: borland.public.jbuilder.java.swing Subject: Re: Display shape objects in a GUI Date: Thu, 18 Dec 2003 15:42:13 +0000 (UTC) Organization: BT Openworld Lines: 28 Message-ID: <brshsl$81f$1@sparta.btinternet.com> References: <3fda1214$0$25673$cc9e4d1f@news.dial.pipex.com> Reply-To: "Craig Simmons" <Cjs1@btinternet.com> NNTP-Posting-Host: host213-122-70-198.in-addr.btopenworld.com X-Trace: sparta.btinternet.com 1071762133 8239 213.122.70.198 (18 Dec 2003 15:42:13 GMT) X-Complaints-To: news-complaints@lists.btinternet.com NNTP-Posting-Date: Thu, 18 Dec 2003 15:42:13 +0000 (UTC) X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MSMail-Priority: Normal X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165