Results 1 to 8 of 8
  1. #1
    jo15765 is offline Member
    Join Date
    May 2012
    Posts
    42
    Rep Power
    0

    Default Adding "Imports" to Eclipse

    I know you can use ctrl+shft+o to attempt to auto-add your imports statements in Eclipse, but for the life of me, I can not find the place in Eclipse to manually add an imports statement. Can someone show me how to do this?

  2. #2
    KevinWorkman's Avatar
    KevinWorkman is online now Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    3,988
    Rep Power
    9

    Default Re: Adding "Imports" to Eclipse

    ...what exactly do you mean? You can just type in whatever import statement you need...
    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  3. #3
    jo15765 is offline Member
    Join Date
    May 2012
    Posts
    42
    Rep Power
    0

    Default Re: Adding "Imports" to Eclipse

    I know I can manually type it, but sometimes I don't know exactly what I need. Like I know I may need javax.swing but need to look at the javax.swing options. How would I look and see there there are javax.swing.JButton, javax.swing.JOptionPane etc etc?

    I know somewhere there has to be an option in the menu that allows you to add these.

  4. #4
    KevinWorkman's Avatar
    KevinWorkman is online now Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    3,988
    Rep Power
    9

    Default Re: Adding "Imports" to Eclipse

    What happens when you start typing the import?

    Type "import java.awt." and then wait a second or two. Doesn't a list of possible completions come up?
    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  5. #5
    jo15765 is offline Member
    Join Date
    May 2012
    Posts
    42
    Rep Power
    0

    Default Re: Adding "Imports" to Eclipse

    I don't get any predective text, or selective text whichever you want to call it on my import statements.

  6. #6
    KevinWorkman's Avatar
    KevinWorkman is online now Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    3,988
    Rep Power
    9

    Default Re: Adding "Imports" to Eclipse

    Weird. Do you get it elsewhere?
    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  7. #7
    jo15765 is offline Member
    Join Date
    May 2012
    Posts
    42
    Rep Power
    0

    Default Re: Adding "Imports" to Eclipse

    Yes, anywhere else I get the predective text just not in the imports.

  8. #8
    KevinWorkman's Avatar
    KevinWorkman is online now Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    3,988
    Rep Power
    9

    Default Re: Adding "Imports" to Eclipse

    I would take a poke around the options discussed in this post: Turning on Auto Complete / suggestions etc There are several for import statements.
    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

Similar Threads

  1. Replies: 0
    Last Post: 12-07-2012, 08:29 AM
  2. Replies: 3
    Last Post: 10-30-2012, 03:06 PM
  3. JDialog and "adding a window to a container" error
    By yalondg in forum AWT / Swing
    Replies: 3
    Last Post: 04-15-2012, 09:37 AM
  4. Replies: 3
    Last Post: 01-18-2012, 05:51 PM
  5. Replies: 1
    Last Post: 10-20-2008, 07:35 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •