IntelliJ Java IDE
The moose likes Swing / AWT / SWT / JFace and the fly likes HTML exception Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT / JFace
Reply Bookmark "HTML exception" Watch "HTML exception" New topic
Author

HTML exception

Vishu Neelavalli
Greenhorn

Joined: Aug 07, 2001
Posts: 13
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).]


Good Luck!!!
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040

I suggest that you print the trace in the catch stmt.
You probably are encountering an IOException.


Take a Minute, Donate an Hour, Change a Life
http://www.ashanet.org/workanhour/2006/?r=Javaranch_ML&a=81
Vishu Neelavalli
Greenhorn

Joined: Aug 07, 2001
Posts: 13
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.
 
 
subject: HTML exception
 
Threads others viewed
Reading File Problem
Changing file
Updating File
How do I declare an arrayList and initilise it in a constructor Method
IntelliJ Java IDE

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture