Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 1 of 1

Thread: Fully automatic Content Assis in Eclipse. Is it possible?

  1. #1
    Junior Member
    Join Date
    Jul 2010
    Posts
    21
    My Mood
    Sleepy
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Question Fully automatic Content Assis in Eclipse. Is it possible?

    Hi all,

    I've found how to make content assist appear automatically when, e.g. I type the name of some class instance. It will show all public methods it contains and so on. But I want it to show up automatically every time it's possible, for example: I write something like this:
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*;
     
    public class Test extends JFrame
    {
    	private JTextField tf;
     
    	public Test() 
    	{
    		super("Title of the window");
    		this.setLayout(new FlowLayout());
     
    		tf = new JTextField("TextField Content", 15);
    		tf.setFont(new Font("Serif", Font.PLAIN, 12));
     
    		this.add(tf);
     
     
    	}
    }
    See, I have a tf variable. When I type "add" I want content assist to show the names of all objects I have in my class and that I can add to the screen.
    Or if I start to write the name of the declared variable, I want Eclipse to show the auto completion prompt for it and if I press enter to complete it.
    Right now it all works only if I press CTRL + SPACE.


    p.s. I know it's not very important but I got used to such IDE behavior working in FlashDevelop for a long time and I'd like to have the same in Eclipse
    Last edited by goodguy; December 26th, 2010 at 10:26 AM.


Similar Threads

  1. Replies: 24
    Last Post: August 4th, 2014, 12:49 PM
  2. Automatic correction of brightness and contrast
    By Mirko in forum Java Theory & Questions
    Replies: 1
    Last Post: September 16th, 2009, 06:26 PM
  3. Content positioning on the screen
    By Drakenmul in forum AWT / Java Swing
    Replies: 1
    Last Post: July 27th, 2009, 09:02 AM
  4. Java program for downloading contents from the web
    By alley in forum Java Networking
    Replies: 8
    Last Post: June 17th, 2009, 01:13 PM
  5. How to display the contents of my queue?
    By rocafella5007 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: April 30th, 2009, 11:46 AM