Win a copy of Machine Learning with TensorFlow this week in the Artificial Intelligence and Machine Learning forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Bear Bibeault
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • salvin francis
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Frits Walraven
Bartenders:
  • Jj Roberts
  • Carey Brown
  • Scott Selikoff

HTML exception

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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).]
 
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic