For Programmers: Free Programming Magazines  


Home > Archive > Java Beans > June 2007 > Do not put classes in default package?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Do not put classes in default package?
D.M.Jackson

2007-04-30, 10:02 pm

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

2007-05-05, 10:04 pm

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.

D.M.Jackson

2007-05-07, 4:03 am

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@gmail.com> wrote in message
news:1178384918.451727.225780@u30g2000hsc.googlegroups.com...
> On Apr 30, 10:15 pm, "D.M.Jackson" <cnoe...@catt.com> wrote:
>
> 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.
>



Boboy

2007-05-13, 12:47 am

Halle Berry in anal action!
http://Halle-Berry-anal-action.org/...hp?movie=726071
Abadanpoder

2007-06-19, 3:48 am

Hilary Swank and Ashlee Simpson With Wired Snatch!
http://www.shockingonline.com/Player.wmv?id=1673286
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com