Re: A little help

1999-05-07 Thread Mario Jorge Nunes Filipe
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".

Re: A little help

1999-05-06 Thread papiraki
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

Re: A little help

1999-05-06 Thread Ted Neward
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,

Re: A little help

1999-05-06 Thread Mario Jorge Nunes Filipe
> > 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

Re: A little help

1999-05-06 Thread zun
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

Re: A little help

1999-05-06 Thread Mario Jorge Nunes Filipe
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 > "

Re: A little help

1999-05-06 Thread Mario Jorge Nunes Filipe
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")

A little help

1999-05-06 Thread Mario Jorge Nunes Filipe
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