🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: aus.computers.java
Article #999

Re: Newbie question

#999
From: Cannon
Date: Thu, 09 Dec 1999 00:00
55 lines
3295 bytes
Hi Neil,

I use JBuilder2, regarding the bugs, you should see version one.
Criminal...anyway.
JPanel is part of the shwing set. I suggest you check out the samples or
even download the latest swing version from sun.com
Swing is more GUI specific and supports better windows as well as advanced
other GUI features.
I use a combination of swing and standard GUI related libs, again for
various reasons.
I think it is good to stick with swing, as it is becoming faster and better.
That is, if you decided to be a serious Java cooking machine.
#WB##
http://mercury.spaceports.com/~viw/

P.S.
For the unaware. Java as an object orientated language that works with libs,
classes and methods. In its core Java is designed to be multi-platform, the
problem for some is that it is going well beyond its core. It is hard to
find a technology today, which can not be approached using Java. More
important, the technologies inner workings be understood WITHOUT much
tutoring, all thanks to Java. Only obstacle is to learn the language and be
in touch with the ever emerging new.

Neil Milne <nmilne@senet.com.au> wrote in message
news:384DF346.1DC7C893@senet.com.au...
>
> Hi All (or any, as the case may be) -
>
> I'm fairly new to Java programming and have been hacking around a bit in
> JBuilder2 (nice tool, pity about the bugs).  At the moment I'm putting
> together a simple applet to teach myself more about dynamic object
> handling more than anything.
>
> I've got an extension of a JPanel (call it ObjectPanel) which is being
> used to contain a bunch of other objects.  These other objects are also
> derived from JPanel (lets just call these Object1's), but contain a
> ShapeControl, text, etc. and are plotted onto the parent ObjectPanel.
> There may be many Object1's, but only one ObjectPanel.  OK, so far so
> good - now I want to be able to move these Object1's around in
> ObjectPanel, but I'm not sure how to go about it.
>
> I've tried putting the mousedrag even listener on either ObjectPanel or
> Object1, but am unsure as to how to move the panel to the co-ordinates
> dictated by the mouseevent passed into the listener.  I looked at a
> bunch of examples but they basically just dealt with boxes and graphical
> things painted on the object and called something like
> object.SetLocation(...) or simply adjusted components and re-called the
> repaint() method which included the code to repaint all the on screen
> graphics, which is not something I'm doing manually since the child
> objects are being derived from JPanels.
>
> Help!  Thanks in advance -
>
> Neil.
Technical Details
Message-ID: <L1D34.218$W46.4221@nsw.nnrp.telstra.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <384DF346.1DC7C893@senet.com.au>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10d6db,11cfd207a946f410,start
X-Google-Attributes: gid10d6db,public
From: "Cannon" <wb@nospam.basketball.net.au>
Subject: Re: Newbie question
Date: 1999/12/09
Message-ID: <L1D34.218$W46.4221@nsw.nnrp.telstra.net>
X-Deja-AN: 558363886
References: <384DF346.1DC7C893@senet.com.au>
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
X-Complaints-To: abuse@telstra.net
X-Trace: nsw.nnrp.telstra.net 944700651 203.35.100.252 (Thu, 09 Dec 1999 11:50:51 EST)
Organization: Customer of Telstra Big Pond Direct
NNTP-Posting-Date: Thu, 09 Dec 1999 11:50:51 EST
Newsgroups: aus.computers.java