vicky bawge

Ranch Hand
+ Follow
since Sep 04, 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 vicky bawge

Hello!
I am using a JEditorPane to render html. I want to enable it to that the hyperlinks can show hand cursor. But i wasnt to disable the selection. Is there any way to achieve this. Is there any color combinations and TRANSLUCENT property combination for this. I have text in different colors inside the html.
Waiting for the answers
Thanks in advance
Vicky
21 years ago
Hello!
When i use the above dialog, the List and Details button on top right are disabled. Is there any way to enable them
22 years ago
i would do con.close() first
22 years ago
Hi Nilesh and sorry for getting bacck to you late.
is there any special way to pass the url for calpa?
i am using file:///D:\temp\temp.html
its just displaying the above string in view
22 years ago
Have you thought of using JEditorPane.
Have you tried to invoke setContentType("text/html")
Vicky
22 years ago
Hi Arun,
try this.
public void hyperlinkUpdate(HyperlinkEvent evt)
{
//Swing itself doesn't change the cursor when mouse moves over the link. so
if (evt.getEventType() == HyperlinkEvent.EventType.ENTERED) {
JEditorPane pane = (JEditorPane) evt.getSource();
// Enter event. Go the the "hand" cursor and fill in the status bar
pane.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
}
else if (evt.getEventType() == HyperlinkEvent.EventType.EXITED) {
JEditorPane pane = (JEditorPane) evt.getSource();
// Exit event. Go back to the default cursor and clear the status bar
pane.setCursor(Cursor.getDefaultCursor());
}
else if (evt.getEventType() == HyperlinkEvent.EventType.ACTIVATED)
{
//....
}
22 years ago
Hello!
I load a html inside JEditorPane, which is inturn inside JScrollPane. when i move the scrollbars back and forth, it garbles the table contents inside JEditorPane. Most of the contents are shown correctly, but few lines get oevrwritten nand so it looks garbled.
Any suggestions are welcome
Thanks in advance
Vicky
22 years ago
Hi Folks,
I have a list of JInternalFrames. Only one is visible at a time. In the componentResized event listener, if the visible JInternalFrame is resized, i resize all the other JInternalFrames in the list. And when i hide the current one and show the other, it shows up with the new size(It doesn't trigger a new ComponentResized event). All is fine till now. But, when the current JInternalFrame is maximized, obviously, in the listener code, all the other hidden JInternalFrames also get maximized. Now, if i switch the JInternalFrames(hide the current and show another JinternalFrame), this triggers a new componentResized event.
Why this difference.
Please treat this urgent
Thanks
Vicky
22 years ago
Hi,
I am displaying html content in a JEditorPane using the HTMLEditorToolkit. Now the problem is, how to programmatically select particular substring, say nth row in this JEditorPane.
Please reply soon,
Vivek
22 years ago
greenhorn posted November 18, 2001 03:08 PM
--------------------------------------------------------------------------------
when i try to display a html page using JEditorPane the following exception occurs.
Can you please help
java.util.EmptyStackException
at java.util.Stack.peek(Stack.java:82)
at javax.swing.text.DefaultStyledDocument$ElementBuffer.insertElement(DefaultStyledDocument.java:1623)
at javax.swing.text.DefaultStyledDocument$ElementBuffer.insertUpdate(DefaultStyledDocument.java:1361)
at javax.swing.text.DefaultStyledDocument$ElementBuffer.insert(DefaultStyledDocument.java:1231)
at javax.swing.text.DefaultStyledDocument.insert(DefaultStyledDocument.java:194)
at javax.swing.text.html.HTMLDocument.insert(HTMLDocument.java:212)
at javax.swing.text.html.HTMLDocument$HTMLReader.flushBuffer(HTMLDocument.java:3014)
at javax.swing.text.html.HTMLDocument$HTMLReader.flush(HTMLDocument.java:1921)
at javax.swing.text.html.HTMLEditorKit.read(HTMLEditorKit.java:240)
at javax.swing.JEditorPane.read(JEditorPane.java:421)
at javax.swing.JEditorPane.read(JEditorPane.java:439)
at javax.swing.JEditorPane$PageLoader.run(JEditorPane.java:468)
when i try to display a html page using JEditorPane the following exception occurs.
Can you please help
java.util.EmptyStackException
at java.util.Stack.peek(Stack.java:82)
at javax.swing.text.DefaultStyledDocument$ElementBuffer.insertElement(DefaultStyledDocument.java:1623)
at javax.swing.text.DefaultStyledDocument$ElementBuffer.insertUpdate(DefaultStyledDocument.java:1361)
at javax.swing.text.DefaultStyledDocument$ElementBuffer.insert(DefaultStyledDocument.java:1231)
at javax.swing.text.DefaultStyledDocument.insert(DefaultStyledDocument.java:194)
at javax.swing.text.html.HTMLDocument.insert(HTMLDocument.java:212)
at javax.swing.text.html.HTMLDocument$HTMLReader.flushBuffer(HTMLDocument.java:3014)
at javax.swing.text.html.HTMLDocument$HTMLReader.flush(HTMLDocument.java:1921)
at javax.swing.text.html.HTMLEditorKit.read(HTMLEditorKit.java:240)
at javax.swing.JEditorPane.read(JEditorPane.java:421)
at javax.swing.JEditorPane.read(JEditorPane.java:439)
at javax.swing.JEditorPane$PageLoader.run(JEditorPane.java:468)
22 years ago
Hello,
I have implemented displaying of html in my app using
JEditorPane and it has hyperlinks like next page and
previous page. But the output gets garbled many a
times
Why is so,
Vivek
Grettings!
i am using this format
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl utput method="html" omit-xml-declaration="yes" standalone="yes" encoding="UTF-8" indent="yes" media-type="text/html"/>
....
in the output html it displays some weird numbers like
70151620-12566464-16711681-16776961
before the correct html and also in the end it displays number 11
what can be the problem?
Greetings!
I am using apache xerces and xalan. When the writer writes xml file, it doesnt format it by newlines and so everything appears on the same line. Also the reader can't read a file thats manually created(as they have newlines.)
Any help will be appreciated,
Thanks,
Vivek