Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » J2EE Interest »

Right group? + Question

McKown, John

2004-05-11

Replies:

Is this the correct group to ask what may well be an "ignorant" question.
Background: I'm an old-timer (51) who has been working my entire
professional life on IBM "mainframes". We are getting some Sun boxes which
will run Oracle and be used for "Web based eCommerce". So we are all
learning Java as well as other "goodies". As an aside, I think it's great
that the company is retraining us instead of just getting in a bunch of
replacements. Of course, if they did that, who'd maintain the "legacy" COBOL
stuff?

I've been looking at a lot of tutorials and the examples seem to use a very
different approach to how I would do things (nothing unusual about that).
I'm wondering if the examples are how things are really done. In particular,
suppose I want to display something in a JPanel. My way is to simply do a
"JPanel titlePanel = new JPanel();" in my code, followed by a bunch of
titlePanel.setXXXX() calls to set the values. The examples all seem to make
a new class which "extends JPanel" and encapsulate the setXXXX() calls in
that subclass. In my case the "titlePanel" is unique. It is not as if I were
going to make a number of them, just one. So, it is "more correct" to use
the "subclassing" and "encapsulation", or is my way of creating and
customizing it "in-line" correct?

Thanks.


--
John McKown
Senior Systems Programmer
UICI Insurance Center
Applications & Solutions Team

This message (including any attachments) contains confidential information
intended for a specific individual and purpose, and its' content is
protected by law. If you are not the intended recipient, you should delete
this message and are hereby notified that any disclosure, copying, or
distribution of this transmission, or taking any action based on it, is
strictly prohibited.

===========================================================================
To unsubscribe, send email to listserv@(protected)
of the message "signoff J2EE-INTEREST". For general help, send email to
listserv@(protected)".
©2008 junlu.com - Jax Systems, LLC, U.S.A.