🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.jbuilder.java.swing
2 messages
2 total messages Started by madmax Fri, 12 Dec 2003 19:08
Display shape objects in a GUI
#1491
Author: madmax
Date: Fri, 12 Dec 2003 19:08
11 lines
1510 bytes
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
Re: Display shape objects in a GUI
#1387
Author: Craig Simmons
Date: Thu, 18 Dec 2003 15:42
26 lines
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
:
:
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads