NetBeans Problem

nikhil_a_s <[email protected]> Tue, 24 Jul 2007 06:18:03 -0700 (PDT)
Newsgroups gmane.comp.java.netbeans.user-interface
Message-ID <[email protected]>
Hello,
I am using NetBeans IDE 5.5 for development. Problem is that, I cant see the
methods of the class. I have imported the required class, I have created its
reference as public and static. and I have created its object inside the
constructor.
Now, when I type '.' [dot] in front of object created, netBeans displays the
list of available methods. But it doesnt show all the methods. What might be
the problem? If anything unclear to you, please ask me.

In fact I have used the method without any problem. Otherwise built-in
compiler tool might throw an error by making that statement red. Only
problem is that, I can use it, but I cant see it when I type '.' [dot].

Following is the sample code snippet. This class is compiled successfully
and also its getting executed very well. I am using this code in my project.

import javax.swing.tree.*;
import javax.swing.*;
import java.io.*;
 
public class MyTree {
    public static DefaultTreeModel model;
    public static JTree myTree;
 
    public MyTree() {
        DefaultMutableTreeNode root = new DefaultMutableTreeNode("ROOT"); 
        model = new DefaultTreeModel(root); 
        model.setAsksAllowsChildren(true);
        myTree = new JTree(model); 
        myTree.setShowsRootHandles(false);
        JScrollPane jScrollPane3 = new JScrollPane(myTree);        
    }
}

1) model.setAsksAllowsChildren(true);
No compile time error, No rutime error/exception. But when I type '.' [dot]
in front of model, I cant see this method in the list displayed.

2) myTree.setShowsRootHandles(false);
Same case with this also.

i.e. I am using both setAsksAllowsChildren() and setShowsRootHandles()
methods, but I cant see them in the dropDownList displayed by typing '.'
after corresponding objects i.e model and myTree respectievly.

hope this will clear the problem.

Thanks and Regards
-- 
View this message in context: http://www.nabble.com/NetBeans-Problem-tf4135943.html#a11762821
Sent from the Netbeans - UI mailing list archive at Nabble.com.