> ...
> > I wrote a Japplet using the Netbeans's GUI builder.
[quoted text clipped - 45 lines]
>
> Andrew T.
Please try to put your comments *immediately after*
the relevant text, and trim other text no longer needed
(including signatures).
> > ...
> > > I wrote a Japplet using the Netbeans's GUI builder.
[quoted text clipped - 3 lines]
> >
> > Is that just to make things interesting?
> You are probably right. It seems that mixing the GUI builder with
> overriding paintComponent isn't a straight forward task (I just
> thought it would be) so I'll probably write the swing manually.
At least until you understand basically how layouts work,
I think that is a good idea. You might find that once
you have that understanding, you can revisit the GUI
builder and get *it* to work for you as well..
> Concerning the Reading/Writing local files from web Applets, I found a
> way using CGI scripts to do it without signed classes or security
> warnings.
OK. But my point (at that instant) was about applets in
general, rather than signed applets specifically.
Applets are harder to debug and deploy than applications.
Futher, an unsigned, web-started, application could
access those same scripts, but in a much more
predictable environment (i.e. no browser to deal with).
> ..My goal is to have a stand alone web application at the end.
I am not sure what you mean by this mix of terms,
I would hardly consider any applet that exists in
a web-page in a browser to be 'stand alone'.
OTOH, check the ..'two applications'* you can launch here.
<http://www.physci.org/pc/>
The ones if interest are the two .jnlp files.
Click those to launch JTest (a simple program I wrote to
query the Java proerties) to see two forms of the same
application, both launched using webstart - one use the
'applet' form of the program, the other launches the
application.
Either of those unsigned applications has access back
to the server that launched them - they can 'phone home'
in the same way as an unsigned applet.
I suggest you use WebStart - and make an application.
* It is of course, neither '2', they are the same program,
nor 'applications' since one is the applet form.
> What do you think would be a user friendlier tool, Netbeans or Eclipse?
Oh that's easy. The one I use more often* is the most
user friendly. (And I suspect that people's answers will
almost invariably fall along those lines - even if they don't
realise it!)
* It does it matter which I use most often. ;-)
Andrew T.
Andrew Thompson - 31 Aug 2006 17:19 GMT
..
> OTOH, check the ..'two applications'* you can launch here.
> <http://www.physci.org/pc/>
....
> Either of those unsigned applications has access back
> to the server that launched them - they can 'phone home'
> in the same way as an unsigned applet.
They do *not* do that, but my point is that (theoretically)
they *could*. WebStart should allow it - even in an
unsigned JWS app.
...
> > What do you think would be a user friendlier tool, Netbeans or Eclipse?
>
[quoted text clipped - 4 lines]
>
> * It does it matter which I use most often. ;-)
Oops! 'It does *not* matter which...'
Andrew T.
e_matthes@hotmail.com - 01 Sep 2006 18:26 GMT
public void paintComponent(Graphics g) {
g.drawOval(50,50,250,300);
g.drawString("Hello",50,50);
All of my recent Java work involving paintComponent has required a
casting of the Graphics object to a Graphics2D object, and a call to
super:
public void paintComponent(Graphics g) {
super.paintComponent(g);
Graphics2D g2d = (Graphics2D)g;
g2d.drawOval(50,50,250,300);
...
Not sure if that applies to your work.
Eric