jdk6

How to tell why a file deletion fails in Java?

File file = new File(path); if (!file.delete()) { throw new IOException( "Failed to delete the file because: " + getReasonForFileDeletionFailureInPlainEnglish(file)); } Is there a good implementation of getReasonForFileDeletionFailureInPlainEnglish(file) already out there? Or else I'll just have to write it myself. ...

Web Service Client in JBOSS 5.1 with JDK6

This is a continuation of the question here: http://stackoverflow.com/questions/2435286/jboss-does-app-have-to-be-compiled-under-same-jdk-as-jboss-is-running-under It's different enough though that it required a new question. I am trying to use jdk6 to run JBOSS 5.1, and I downloaded the JDK6 version of JBOSS 5.1. This works fine and m...

How do I modify an html link attribute when the html is loaded into a jEditPane? JDK6

I understand how to get the attribute with: public void hyperlinkUpdate(HyperlinkEvent e) { e.getSourceElement().getAttributes().getAttribute(HTML.Attribute.COLOR); How do I change that attribute? ...