Results 1 to 4 of 4
Thread: Open a selected file in treeview
- 01-20-2011, 05:07 AM #1
Member
- Join Date
- Jan 2011
- Posts
- 4
- Rep Power
- 0
Open a selected file in treeview
Hello
I am new to JAVA and Swings , I wanted to write a code to open a folder from the hard disk in in treeview and then selecting any particular file its contents should be opened in the text area of my application .
right now I am able to open the folder in treeview but it becomes visible ony when I maximize the icon by using this code
Display a file system in a JTree view : Tree*«*Swing JFC*«*Java
Now could any one please help me how to proceed to the next step of opening the particular selected file in the text area .
Thanks in advance
-
I assume that using JFileChooser is not an option here, but I have to ask -- why not?
- 01-20-2011, 05:27 AM #3
Member
- Join Date
- Jan 2011
- Posts
- 4
- Rep Power
- 0
Can I use that ? in the menu bar on Open Folder menu Item can I use JFileChooser to open a particular folder .
If yes then please tell me how
-
Similar Threads
-
How to show or open a file download or file save dialog box
By java_bond in forum New To JavaReplies: 0Last Post: 03-05-2010, 04:21 AM -
Different Files Open in File -> Open Workspace
By mgm2010 in forum JCreatorReplies: 0Last Post: 04-11-2009, 02:14 PM -
SWT TreeView
By sushistix in forum AWT / SwingReplies: 1Last Post: 10-28-2008, 05:25 PM -
Open File
By JavaLerner in forum SWT / JFaceReplies: 5Last Post: 07-12-2008, 06:41 PM -
To open an image file such as Jpeg file using JAva Program
By itmani2020 in forum Advanced JavaReplies: 10Last Post: 07-11-2008, 09:57 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks