Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java - Create package inside another package

I am usign NetBeans and I would like to create and place a package within another package.

That's very easy but once created, the inner package is placed outside.

I do create an inner package by right click on the "taindicators" package

enter image description here

It seems allright, new package name "rsi" is going to be created inside "taindicators", but once finish the new package goes outside.

Where am I wrong?

Thanks.

enter image description here

Edit:

No changes even display project as Reduced Tree, rsi package is still outside

enter image description here

Edit 2:

Found (maybe) a solution: instead of creating a new package, I have created a folder, and it is now placed correctly.

I hope there are no great differences from packages to folders

enter image description here

like image 356
Alberto acepsut Avatar asked Dec 05 '25 23:12

Alberto acepsut


1 Answers

Try this steps: Right click on Project explorer -> View Java Packages as -> Reduced tree.

like image 184
Alexey Odintsov Avatar answered Dec 08 '25 12:12

Alexey Odintsov



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!