m pap

Greenhorn
+ Follow
since Jun 13, 2001
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by m pap

Goodluck...its sounds like so much fun
Well if you ever feel up to it and want to let your wisdom onto me I would love some help in this area.
Thanks.
Take care, Nikki
22 years ago
thanks.but one question
what if I want the file name to be an input from the user.
For instance the user was manapulating data, that by code is structured in a JTree, and wants to save their work. Therefore will save the changes to a file. I want to know how to save these changes to a jtree to a file. A file they will name. I hope I make sense.
All help is great.
thank you
22 years ago
thanks.
one more question. i was coming across too many while loops in my code and was told to use exceptions...now does that break up the while loop and loops are no longer used. how do you use exceptions to fix the problem of too many loops.
thank you, m pap
22 years ago
Hello.
Can anyone explain to me the whole concept of excpetion handling...specifically trys and catchs. mostly why and how they are used.
thanks, m pap
22 years ago
Hello all.
Does anyone know how to code saving a JTree to a file. I want to be able to save a newly constructed Jtree to a file. Thanks.
22 years ago
Hi There,
I have been able to display my JTree and preform various selections causing Node expansions. However, i was wondering if it there was one function which could rest the whole tree back to its unexpanded form. Thank you.
22 years ago
Hi,
Can someone please explain to me what TreeSelectionListener()or a TreeSelectionEvent is and what they do?
My main reason for asking is beacuse when i try to use a DefaultTreeModel method...RemoveNodeFromParent(), i get a :
Exception occurred during event dispatching:
java.lang.NullPointerException
and it referrs back to my use of TreeSelectionListener() and TreeSelectionEvent.
If you can give any help or guidence, it would help greatly. Thank you, mpap
22 years ago
Does anyone know the method used to make a copy of a JTree.
Thank you...m pap
Ajith Kallambella,
Thank you for responding. Let me try to explain alittle better what I am trying to do.
I want to take an XML file be able to veiw it as a JTree edit it, then convert back to XML so that I can get an XSL.
What I have done so far is convert XML to DOM. I thought this would be the best way to edit the XML. However, was using JTreeOutputter to veiw my XML as a Tree but with DOM JTreeOutputter is not working because of incompatable types (org.jdom.Document and org.w3c.dom.Document conflict.)
Do you have any advice on an easier way, or how to finish this way off.
Thank you very much, m pap
Hi Everyone,
I am still trying to get my program to work. Does anyone know how to build a DOMTree from a DOM Document. Thank you, m pap
I know but in the DomEcho it converts a DOM to JTree knowing the element values. What if you dont know them. You can not make an array of element names you just want it to be a generic method so that you can use it to make any tree conversion.
Thanks, m pap

HELP!!!
I have been trying to days now to figure out how to output a JTree from a DOM document. The implementation of this can not be specific. I want to be able to take any DOM document not knowing its values and output a JTree. Can anyone help, it is REALLY needed.
Thank you in advance, mpap
A program to convert Java code into XML would not be an XML parser....
Then what would it be called and how is it done. I want to be able to write Java that will become XML with different Schemas there is not a set one. My code should be able to be used for many types of schemas.
Thanks, mpap