DirectoryFileFilter - Filter to only accept directories in a JFileChooser
JFileChooser has an option to only accept directories but it does not populate the description combo box
resolves an absolute path against a relative path to get an absolute path
case insensitive
examples of input/output combinations:
----
absolutePath="c:\\folder1\\"
relativePath=".\\sub-folder1\\"
getAbsolutePath="c:\\folder1\\sub-folder1\\"
----
absolutePath="c:\\folder1\\sub-folder1\\"
relativePath="..\\..\\folder2\\"
getAbsolutePath="c:\\folder2\\"
----
absolutePath="c:\\folder1\\sub-folder1\\"
relativePath="..\\..\\folder2\\file.txt"
getAbsolutePath="c:\\folder2\\file.txt"
----
getAction() -
Method in class com.huguesjohnson.tiamat.demos.Camineet.Event
resolves an absolute path against another to get a relative path
case insensitive
examples of input/output combinations:
----
absolutePath1="c:\\folder1\\"
absolutePath2="c:\\folder1\\sub-folder1\\"
getRelativePath=".\\sub-folder1\\"
----
absolutePath1="c:\\folder1\\"
absolutePath2="c:\\folder1\\sub-folder1\\file.txt"
getRelativePath=".\\sub-folder1\\file.txt"
----
absolutePath1="c:\\folder1\\sub-folder1\\"
absolutePath2="c:\\folder2\\"
getRelativePath="..\\..\\folder2\\"
----
if the drives are different then an absolute path must be returned, for example:
absolutePath1="c:\\folder1\\"
absolutePath2="d:\\folder2\\"
getRelativePath="d:\\folder2\\"
----
getScript() -
Method in class com.huguesjohnson.tiamat.demos.Camineet.GameData
class LaunchBrowser
usage: String result=(new LaunchBrowser()).launch("http://www.wherever.com");
alternate usage: String verboseResult=(new LaunchBrowser()).launch("http://www.wherever.com",true);
alternate usage: String verboseResult=(new LaunchBrowser()).launch("file://c:\\some-folder\\some-file.html",true);
alternate usage: String verboseResult=(new LaunchBrowser()).launch("file:///some-dir/some-file.html",true);
This has only been tested on Windows 2000, if it doesn't work on another OS please set verbose to true to debug.