I have no idea, but would like to know whether it is possible or not to search in java libraray using netbean IDE. For exam开发者_开发知识库ple, I have heard ArrayList. And I want to find which package ArrayList belongs to. Is there any tool or plugins to search within Java Library for Netbean IDE?
CTRL+O
This shortcut triggers an action called interchangeably by the NetBeans documentation for Go to Type...
and Go to type/file
. The usage of this shortcut resembles the keyboard shortcut SHIFT+CTRL+T in Eclipse. Both IDE:s will search for a Java type/class as you type in the opened search field and provides a quick way to navigate to different types and classes. Thus in your case, instead of having to write down "ArrayList x;" in your code somewhere and hold down CTRL while you click on the variable type with your mouse (or any other "hack" provided in this thread now or in the future) just press CTRL+O and type in "arraylis" should be enough.
The shortcut may be changed if you go to your Tools menu item and then click Options. A window will pop up. Click on Keymap and find the action. Edit the shortcut.
You can find keyboard shortcut cards for different versions of Netbeans here.
Just type ArrayList
+ CTRL + SPACE
Netbeans will suggest which package it belongs
But If that class isn't in classpath netbeans will suggest to create a new class with name ArrayList
for second of your question
You can press ctrl and then move mouse over the function and click. You will move to the file where that function defination is provided. So you can easily see return type .. parameter type
To search Library .. In netbean at the top right corner serach box is given. There you can search library like google.
This might not be the best way to do that.
Just create an object for this class and press Ctrl + Shift + I. It will automatically import all the necessary classes. Hence you can check the package in the import statements.
精彩评论