 |
AppletTalk.com Java discussions newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
D.M.Jackson Guest
|
Posted: Tue May 01, 2007 7:10 am Post subject: Do not put classes in default package? |
|
|
Greetings Folks,
I'm going through the beans trail tutorials on Sun's website trying
to teach myself about JavaBeans components. The tutorial tells me to right
click on the "default package" and add a MyBean class. OK, so I do this,
but I notice that there is a "small print" disclaimer at the bottom of the
dialog window telling me that "Since JDK 1.4 it is not recommended to put
classes in the default package." OK, so what gives? I do realize that the
tutorial is based on using NetBeans IDE v.5 and that I am using v.5.5. So,
what is the presently prescribed method for adding classes to beans?
TIA,
Mark |
|
| Back to top |
|
 |
kinow Guest
|
Posted: Sat May 05, 2007 10:08 pm Post subject: Re: Do not put classes in default package? |
|
|
On Apr 30, 10:15 pm, "D.M.Jackson" <cnoe...@catt.com> wrote:
| Quote: | Greetings Folks,
I'm going through the beans trail tutorials on Sun's website trying
to teach myself about JavaBeans components. The tutorial tells me to right
click on the "default package" and add a MyBean class. OK, so I do this,
but I notice that there is a "small print" disclaimer at the bottom of the
dialog window telling me that "Since JDK 1.4 it is not recommended to put
classes in the default package." OK, so what gives? I do realize that the
tutorial is based on using NetBeans IDE v.5 and that I am using v.5.5. So,
what is the presently prescribed method for adding classes to beans?
TIA,
Mark
|
Hey Mark,
I did this tutorial some time ago, and I thought it's very useful.
About the bottom dialogue message, it's a message from NetBeans,
right? Or did you find it in the Beans Tutorial?
I don't know any rule or recommendation of this kind about adding
classes in the default package from Sun's specifications.
But I may be wrong.
Regards,
Kinoshita. |
|
| Back to top |
|
 |
D.M.Jackson Guest
|
Posted: Mon May 07, 2007 7:10 am Post subject: Re: Do not put classes in default package? |
|
|
Yes kinow, the message was at the bottom of the dialog displayed by NetBeans
IDE when I went to add a new class file to the project in the "default
package" as instructed by the tutorial. I was just wondering if there was
some other hierarchal structure that was now the accepted norm for creating
JavaBeans (or adding classes to any java project)... that's all.
Thanks,
Mark
"kinow" <brunodepaulak (AT) gmail (DOT) com> wrote in message
news:1178384918.451727.225780 (AT) u30g2000hsc (DOT) googlegroups.com...
| Quote: | On Apr 30, 10:15 pm, "D.M.Jackson" <cnoe...@catt.com> wrote:
Greetings Folks,
I'm going through the beans trail tutorials on Sun's website
trying
to teach myself about JavaBeans components. The tutorial tells me to
right
click on the "default package" and add a MyBean class. OK, so I do this,
but I notice that there is a "small print" disclaimer at the bottom of
the
dialog window telling me that "Since JDK 1.4 it is not recommended to put
classes in the default package." OK, so what gives? I do realize that
the
tutorial is based on using NetBeans IDE v.5 and that I am using v.5.5.
So,
what is the presently prescribed method for adding classes to beans?
TIA,
Mark
Hey Mark,
I did this tutorial some time ago, and I thought it's very useful.
About the bottom dialogue message, it's a message from NetBeans,
right? Or did you find it in the Beans Tutorial?
I don't know any rule or recommendation of this kind about adding
classes in the default package from Sun's specifications.
But I may be wrong.
Regards,
Kinoshita.
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|