Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to search a class in Java Library using Netbean IDE?

Tags:

java

netbeans

I have no idea, but would like to know whether it is possible or not to search in java libraray using netbean IDE. For example, 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?

like image 372
zdcobran Avatar asked Dec 31 '10 10:12

zdcobran


2 Answers

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.

like image 175
Martin Andersson Avatar answered Nov 15 '22 20:11

Martin Andersson


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

alt text

for second of your question
alt text

like image 21
jmj Avatar answered Nov 15 '22 20:11

jmj