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
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")
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
> "
>
> 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
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".
Joel McCarty wrote:
>
> Mario,
>
> Java is a case sensitive language. You are getting a NullPointerException
> because the getParameter call is looking for WINDOWCLASS and can't find it.
> Please change the case of the param name to match that in the java class.
Actually it doesn't.
Hi
I'm trying to pass parameters to an applet.
My html says the following :
You don't have java!!
My applet is like this :
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.tree.*;
import javax.swing.event.*;
import javax.swing.JTree;
import javax.swing.t
[EMAIL PROTECTED] wrote:
>
> Try putting the paramater name and value's in quotes, like this
>
>
This wasn't the sollution either but i've found the solution.
My initial code had a constructor for the class wich called a private
function init_components. When i removed the con
Mario Jorge Nunes Filipe wrote:
>
> [EMAIL PROTECTED] wrote:
> >
> > Try putting the paramater name and value's in quotes, like this
> >
> >
>
> This wasn't the sollution either but i've found the solution.
>
> My i
Hi
I'm creating an applet to show an outline in the form of a Jtree.
I created a class outline that supposedly parses a string and creates
the outline in memory, allowing me to write it out as string, or as a
tree.
The Outline class is in the attached file. I call this outline in the
following
Hi
Is there such a beast (running on linux) ?
Thanks
--
Mario Filipe
[EMAIL PROTECTED]
http://neptuno.sc.uevora.pt/~mjnf
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe".
11 matches
Mail list logo