Load XML file into a JEditorPane

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • aryan24
    New Member
    • Aug 2007
    • 8

    #1

    Load XML file into a JEditorPane

    Hi everybod .. as part of my project , i need to call an xml file into an Jeditorpane. I have a button called Load ,when i click on it ,,i need to load the xml file into the JeditorPane...C an any1 plz provide the solution .
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Originally posted by aryan24
    Hi everybod .. as part of my project , i need to call an xml file into an Jeditorpane. I have a button called Load ,when i click on it ,,i need to load the xml file into the JeditorPane...C an any1 plz provide the solution .
    You know anything about the actionPerformed method?

    Comment

    • aryan24
      New Member
      • Aug 2007
      • 8

      #3
      Originally posted by r035198x
      You know anything about the actionPerformed method?
      The main pblm i am facing is loading the xml into the jeditor pane...As part of my project , i have a JeditorPane and a JTextPane one Below the other seperated by a jSplitPane embedded in one of the many panels. .

      Comment

      • Nepomuk
        Recognized Expert Specialist
        • Aug 2007
        • 3111

        #4
        Originally posted by aryan24
        The main pblm i am facing is loading the xml into the jeditor pane...As part of my project , i have a JeditorPane and a JTextPane one Below the other seperated by a jSplitPane embedded in one of the many panels. .
        So, do I understand correctly, that you don't know, how to read the XML File? If so, read about the java.io.FileRea der!

        Comment

        Working...