Hi Again
I wanted to thanks everyone for your help!
--
Mario Filipe
[EMAIL PROTECTED]
http://neptuno.sc.uevora.pt/~mjnf
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe".
Hey,
don't feel stupid. Tell yourself that more advanced users are
ex-beginners too. I for one would have been glad if someone had helped me
a few years ago.
Here is a quick example, the class it foo and the array is bar.
foo[] bar;
// at this point bar == null
...
bar = new
Your import statement (in your teste code) must be wrong; otherwise, java
would pick it up.
To determine if its a CLASSPATH issue, try this:
javax.swing.tree.DefaultTreeModel model = new
javax.swing.tree.DefaultTreeModel(root);
That'll tell you if you left out the import, got the import wrong,
>
> It should be:
>
> DefaultTreeModel model = new DefaultTreeModel(root);
> ^^^
>
> as you're creating an object there.
100% Correct (Even I should have seen it)! Thanks people fo you help!
--
Mario Filipe
[EMAIL PROTECTED]
http://ne
On Thu, 6 May 1999, Mario Jorge Nunes Filipe wrote:
> 13:38:01$ javac teste.java
> teste.java:42: Method
> DefaultTreeModel(javax.swing.tree.DefaultMutableTreeNode) not found in
> class teste.
> DefaultTreeModel model = DefaultTreeModel(root);
> ^
> 1 er
Nobby Knox wrote:
>
> Hi Mario.
>
> I'm also new to Java and Netbeans, but I have experienced the same
> problem you mentioned here. Let me explain.
>
> Netbeans (I'm using NetbeansX2) creates your application/applets in
> "packages". Have a look at the top of your code. Do you see the line
> "
Pavel Tolkachev wrote:
>
> Hello Mario,
>
> Try to use this code snippet:
>
> // -cut here--
> import javax.swing.JTree;
> import javax.swing.tree.DefaultMutableTreeNode;
> import javax.swing.tree.DefaultTreeModel;
> ...
> DefaultMutableTreeNode root = new DefaultMutableTreeNode("Root")
Hi
I'm trully a newbie to Java. I've been reading the Java tutorial
available at java.sun.com but i need to make a quick presentation of a
small applet and I need a little beet of help. If you point me in the
direction of specifics docs i will appreciate equally, waht i need are
just examples.
M