Thread: Dumb Netbeans Q
View Single Post
  #7 (permalink)  
Old 05-25-2008, 11:21 AM
carderne carderne is offline
Member
 
Join Date: Nov 2007
Posts: 46
carderne is on a distinguished road
That's just the bit of code that executes when the specific button is clicked.

The Browse class is a JInternalFrame with a JFileChooser called browser in it. That's it.

So I created a new object of the Browse class:
Browse br = new Browse()
Then I used the showOpenDialog method to show the JFileChooser called browser.
Then I used the getSelectedFile method to return the selection made in browser.

It all works perfectly, but it returns only the filename.
i.e. Instead of returning D:\lists\songs.txt it just returns songs.txt
Reply With Quote