import java.awt.*;
import java.awt.java.awt.event.*;
import java.awt.java.awt.image.renderable.*;
can not use a code ? Anyway jdk7 in , it will automatically determine which is the need it .
------ Solution ---------------------------------------- ----
compilers have shortcut keys, not a one write
------ Solution -------------------- ------------------------
integrated environment , if you do not lead pack , the corresponding class name will appear underlined in red , you use the mouse move to redline class name , there will be what you want it. Many package inside the same class name , it is impossible to use one instead.
------ Solution ------------------------------------ --------
That is, without having to manually write the import statement
------ Solution ------------------- -------------------------
MyEclipse have shortcut keys
ctrl + shift + o Sometimes the choice again , it may have more than one package of the same name .
------ Solution -------------------------------------- ------
I use netbeans7, how to get
I use MyEclipse, for example, you use the ArrayList class , but did not import util package , then there will be a red underline beneath Arraylist , you move the cursor to the ArrayList , which will appear import java.util options you click automatically imported Arraylist class if other classes also util package , you put Arraylist can be changed *
------ Solution ------------------------------------ --------
netbeans seems ctrl + shift + i
------ For reference only ------------------- --------------------
I use netbeans7, how to get
------ For reference only ----------------------------- ----------
crtl + shift + o, shortcut keys automatically lead pack
没有评论:
发表评论