how to open a file?

hai, i created a tree which contains system drives, folders and files.

What i want, if i select a file, how to open that file (like word, excel andr notepad......) in thier parent window, means if i selected word file it should open in MSword, if i select .txt file it should open in notepad like that.

Example in windows if we click the file of any format it will open.

Same like that using system resources how to open a file.

Please help me. i struck of here.

regards,

raja

[519 byte] By [raja8nza] at [2007-10-3 8:43:41]
# 1
http://java.sun.com/docs/books/tutorial/uiswing/components/tree.html#select
hiwaa at 2007-7-15 3:52:23 > top of Java-index,Desktop,Core GUI APIs...
# 2
Check out this posting: http://forum.java.sun.com/thread.jspa?threadID=781553
camickra at 2007-7-15 3:52:23 > top of Java-index,Desktop,Core GUI APIs...
# 3
thanks, i have to check out
raja8nza at 2007-7-15 3:52:23 > top of Java-index,Desktop,Core GUI APIs...