Results 1 to 4 of 4
  1. #1
    richirich is offline Member
    Join Date
    Jan 2011
    Posts
    4
    Rep Power
    0

    Default 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

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

  3. #3
    richirich is offline Member
    Join Date
    Jan 2011
    Posts
    4
    Rep Power
    0

    Default

    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

  4. #4
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    Quote Originally Posted by richirich View Post
    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
    Yes you can. Please check out the tutorials on this.

Similar Threads

  1. Replies: 0
    Last Post: 03-05-2010, 05:21 AM
  2. Different Files Open in File -> Open Workspace
    By mgm2010 in forum JCreator
    Replies: 0
    Last Post: 04-11-2009, 03:14 PM
  3. SWT TreeView
    By sushistix in forum AWT / Swing
    Replies: 1
    Last Post: 10-28-2008, 06:25 PM
  4. Open File
    By JavaLerner in forum SWT / JFace
    Replies: 5
    Last Post: 07-12-2008, 07:41 PM
  5. To open an image file such as Jpeg file using JAva Program
    By itmani2020 in forum Advanced Java
    Replies: 10
    Last Post: 07-11-2008, 10:57 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •