Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / JavaBeans / May 2007

Tip: Looking for answers? Try searching our database.

Do not put classes in default package?

Thread view: 
D.M.Jackson - 01 May 2007 03:15 GMT
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
kinow - 05 May 2007 18:08 GMT
> Greetings Folks,
>
[quoted text clipped - 9 lines]
> 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.
D.M.Jackson - 07 May 2007 03:45 GMT
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

>> Greetings Folks,
>>
[quoted text clipped - 26 lines]
> Regards,
> Kinoshita.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.