Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

HTML exception  RSS feed

 
Vishu Neelavalli
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
i got a small exception trouble for the nerds.
i have a JEditor pane that shows HTML content, on clicking a button.
this is the code.
**an small overview of the functionlaity is below the code.**
----------------------

-----------------------
my editorpane is basically doing a powerpoint presentation(saved in html format). i save the slide/htmlfile sequence on a linked list and then pop-up each of them in sequence upon mouse-clicks on the button "next". and i am also recording the mouse clickes simultaneously as you can see i am using the 'date' class.
this code runs great.
Now to the trouble-point.
now if i open another small file and try to search for some small string in it..and based on whether the required string is present or not(just a simple if condition), if i try to record the mouse clicks..it throws some exception and the dialog-box pops up..saying "Invalid URL".
here is its code..
------------------

---
I got no clue why that happens..
any early light on this is greatly welcome.
thanks,
Vishu
ps:
pl use the [ code ] [ / code ] tags (without the spaces) when posting source code. thanks.
- satya

[This message has been edited by Madhav Lakkapragada (edited September 07, 2001).]
 
Madhav Lakkapragada
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I suggest that you print the trace in the catch stmt.
You probably are encountering an IOException.
 
Vishu Neelavalli
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi madhav,
i could finally figure it out..
the url(which the JEditorpane uses) was not being recognized for file opening..
so..i just needed to extract the file name outof the url and it just runs fine..
thanks for your time..
Vishu.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!