can I create another package for another module?
Hi,
I am doing a project in NetBeans.
I used a JFrame with Menu and a JDesktopPane with five JInternalFrames for my I module.Now I first module is finished.
My designing and coding are in Package Javaapp1.
For II module I have to create another JDesktopPane with five jInternalFrames.
If I use the same Javaapp1 package for II Module my coding is very large and difficult to trace.
can I create another package Javaapp2 for II module and import
in my first package?
if it is possible? please give me few lines about this.
Thank you so much.
Meena.
> can I create another package Javaapp2 for II module
> and import
> in my first package?
Definitely
>
> if it is possible? please give me few lines about
> this.
It is possible. It is often a good idea. Packaging IMO is most useful in terms of organizing your code better.
>
>
> Thank you so much.
> Meena.
Hi,
Thank you so much for your reply.
In my project in NetBeans when i import another package in to my package i got the error of "Package does not exist".
So I go to
MyProject->Properties->Libraries->addProject->addProjectJarFile.
add my needed package jar file.
Now there is no error.
Is it a correct way ?(Because I am not well known about NetBeans)
Will you plese give me a line to me?
Thank you so much for your reply.
Meena.
This depends, have you divided your packages/modules across different projects? If so, you'll have to use the library approach you mentioned. If both packages are in the same project, you should be able to import them like any JDK package.
If you believe you've found an error in netbeans, better places to look for help would be the netbeans issue tracker (http://www.netbeans.org/community/issues.html) or the netbeans user mailing list (nbusers@netbeans.org)
DaanSa at 2007-7-13 10:08:01 >

Hi,
Thank you so much for your reply.
I understand what you mean.
I am developing only one project not two many.
But I have four modules in my project.So I try to the concept of package.
In NetBeans I first create one project named Javaapp1.
It automatically comes under the name Package Javaapp.
In this I finished my first module.
Now I want to develop second module.To avoid confusion in coding I need to create second module in different package.
So I create another project Javaapp2.It comes under the name
Package Javaapp2.I develop II module here.
Then I try to import Javaapp2 in Javaapp1.I got the error "Package Javaapp1 doesnot exist".Thenonly i add needed jar file(Javaapp2.jar) into my project.Now there is no error.
You told me that "The Above Approch is for when we create more than one project and take something from one to other".
But I donot know how can I create another package without creating another project and without including the jaf files.
I donot know is there any way to do.
I am also have a look at netBeans.org.
Can I continue with this?
will you please comment on my lines.That should be useful to me to get a idea.
Thank you so much.
Meena.
> But I donot know how can I create another package
> without creating another project and without
> including the jaf files.
> I donot know is there any way to do.
In netbeans there are two ways of doing so. You can create an empty package, or you can create a class in a new package. In that last case netbeans automatically creates the package for you. Both of these options can be find in the file menu: File -> New File. Select Java Classes from the categories and work from there.
> I am also have a look at netBeans.org.
Good idea. Don't forget to check out the mailing lists. They're the #1 place to look for netbeans "first-aid" ;)
DaanSa at 2007-7-13 10:08:01 >

Hi,
Thank you so much for your reply.
I got your ways.
I felt sorry to disturb you in this thread for a long.
I want to clarify my doubts in NetBeans.So I registered me in NetBeans.org.
But I could not send questions easily like forum.java.sun.com.Because
When I try to subscribe nbusers via nbusers-subscribe@netbeans.org
that wizard ask so many questions like server and our Internet account username .
I am a project trainee in my office.So I could not know about the server details and username.
How can I get the help from them?
I again told my sorry to you because I aks solution to log in to Nerbeans.org.
I f you have a little bit time,please comment on these lines about other
way to get help from NetBenas or any wrong in my way to get help.
Thank you so much.
Meena
> But I could not send questions easily like
> forum.java.sun.com.Because
> When I try to subscribe nbusers via
> nbusers-subscribe@netbeans.org
> that wizard ask so many questions like server and
> our Internet account username .
I think it's the default mail program on your office computer that asks for this information, not netbeans.org. Could this be correct?
If you have access to any mail account from your office (like your personal webmail, or something else) you can also subscribe directly by sending an empty email to nbusers-subscribe@netbeans.org from that mail account.
DaanSa at 2007-7-13 10:08:01 >

Hi,
Thank you so much for your reply.
Now I am trying to subcribe for netbeans by sending a mail from my own mail id but not from the site netbeans.org.
So I asked my system admin about the server details and internet account details.
So after getting response from them I will again send a reply to you.
I thank you.
Regards,
Meena.