How to open files

I just learned how to use the JFileChooser, but I can't figure out how to actually open the file. Does anyone know how to do that?
Thanks
Mike

So i could i launch an app based off of extensions?
If i can is it possible to find which app a file
needs using something other then lots of if
statements?Apart from upgrading your JDK to version 6 and using the not yet complete Desktop class which can do all you require without you sweating much, then I'd say no.
Checking out the extension and choosing the program to run is the only way so far
ICE

Similar Messages

  • How to open file in their native application

    How to open file in their native application form web browser?
    if associated .txt file should open in editplus then from web browser if I try to open .txt file it should open in editplus rather then open in notepad(default), If on other computer if I associate .txt file should open in word, it should open in word. I am using Tomcat Web Server.

    that's nothing you could influence from a servlet or jsp.
    all you could do is specifying the content type of your response.
    Next you might hope that the client requesting your content uses a browser that relates the given content type to a special application (e.g. "text/plain" -> editplus or notepad or kedit or word or ...)

  • Switching to MAC from Windows: How to open files in Office 2007  VMFusion?

    Dear all,
    Intro:
    I switched to MAC and now cannot find the solution to a simple problem.
    First: I need an Office 2007 PowerPoint FULLY compatible solution.
    What did not work: IWork, NeoOffice, Office 2008 (this is not fully compatible with Office 2007 Files)
    I also had problems with: Parallels (not stable, too many hangups), codeweaver crossover (office files do not even open sometimes, good idea but not suitable for serious office jobs)
    Now I have VMWare Fusion with WinXP and Office 2007 as this seems to be the only truly stable and best solution to run Office 2007 on Mac
    Question:
    How to open files in Office 2007 on MAC VMWare Fusion easily?
    It would be nice to spotlight the file and click and it opens in powerpoint or excel or word 2007 in Virtual Machine.
    The only known solution to me is to use the Windows explorer to navigate to the file and then open it from Fusion WinXP. This is very cumbersome and honestly makes me think of getting back to a windows machine as I work with office frequently.
    Thank you for your help.

    Thank you for the quick reply.
    Yes, I have Office 2007 installed. The problem is that to open files in Fusion virtual machine I have to use the windows explorer and navigate to the file to open it. Now that I have the mac I want to use the good feature of spotlight. So when I search and find the file I want to open I cannot click on it on the mac (or in finder) but I have to switch back to the virtual machine, locate the file again and open it from windows.
    You might think - ok, why not skip the first step of using spotlight, and look up the file in windows explorer before anything else?
    Correct, but I know from parallels that there is a file association possible to directly access the file in office 2007.
    This does not seem possible in Fusion - So the question is whether there is a possibility on the mac to associate the file and to click on it in finder/spotlight and the office 2007 application in fusion opens the file. So far I could not find anything.
    Thanks

  • How to open file system file from Apex?

    Hi,
    Can someone help me to find how to open a pdf file e.g. test.pdf from apex when someone click on a button ABC?
    The file is located in /C/
    Thanks in advance
    Dip

    You can use the Onclick event and window.location to show the file when the user clicks a button.
    <input type=button onClick="window.location= 'file:///C:/Documents%20and%20Settings/rchamarthi/Desktop/test.pdf' + document.form1.cmuds.value;" value="Open File">The actual location of the file is "C:/Documents and Settings/rchamarthi/Desktop/test.pdf"
    Since the location is treated as a URL, remember that it should be URL encoded.
    Hence all spaces should be replaced by '%20' (32 being the ASCII for space and 20 in hex -> 32).

  • How to open files in MIDP (from the jar file)?

    Hello,
    I can't seem to figure out how to open a file that is in my MIDP applications jar-File.
    From what I've found via Google, I assume that the way to do it should be by using
    Connector.openInputStream("file:{path_to_my_file}")
    but I only get the error
    java.lang.ClassNotFoundException: com.sun.midp.io.j2me.file.Protocol
    (Running the Emulator from Suns WTK 2.0 with DefaultColorPhone)
    I've also tried file:// with the same result.
    Any ideas?
    Many thanks in advance!
    Bjoern

    I think I've found something that looks promising now:
    Class.getResourceAsStream()

  • How to open files in their native fromats in a browser

    Hi,
    i have jsp file which contains pure java script functionality, from this page i want to open local files. the same i can open with following code as html page but it is not opening when i place in the tomcat server,
    code
    function loadPage(id)
              if(id == 'launch')
                   document.getElementById("docframe").src = "C:\\Documents and Settings\\3041\\documents\\01\\pdf\\DOM.pdf";
              if(id == 'prev')
                   document.getElementById("docframe").src = "C:\\Documents and Settings\\3041\\documents\\01\\doc\\HR-007_Leave.doc";     
              if(id == 'next')
              document.getElementById("docframe").src = "C:\\Documents and Settings\\3041\\documents\\01\\excel\\sample.xls";                    
    <table cellspacing="10" cellpadding="0" border="0" width="100%" height="100%">
         <tr valign="top" height="5%">
              <td align="left">
              <input type="button" id="prev" name="prev" onClick="javascript:loadPage('prev');" value="Previous">
    </td>
              <td align="right">
              <input type="button" id="next" name="next" onClick="javascript:loadPage('next');" value="Next">
              </td>
         </tr>
         <tr valign="top" height="95%">
         <td colspan="2">
              <iframe id="docframe" src="javascript:pageCall('launch');" width="100%" height="100%"></iframe>
              </td>
         </tr>
         </table>
    please help me in getting out of this problem

    What is it you are trying to do???
    The browser open files with their defaults programs, because they make use of the header values such as content-type. it seems that you are using DOM to archieve that, how do you expect that to work??
    Something is not right.
    MeTitus

  • How can open File Dialoge Box in Oracle9i

    can any one tell me how can i open file dialoge box in oracle 9i i am using webutil but when i run this code.. there is an exception during runtime.. not compile time.. so plz tell me how can i open file dialoge box.. thx..
         declare
              file_name varchar2(100);
         begin
              file_name := client_get_file_name(FILE_FILTER=>'TEXT FILES (*.txt|*.txt|');
         end;

    Please do not post the same topic in multiple forums. The
    only thing I can suggest is when they click on the button to
    download, you take flash out of full screen while they download the
    video, you can use fileReference to control and monitor the
    download. Use a listener object to monitor when download is
    complete, then set flash back to full screen.
    How are you scripting the full screen?

  • How to open files with .IVR on a mac

    Does anyone know how to open a .IVR file on a macbook? or any apps for the mac book to open it ?

    You can try
    http://download.cnet.com/RealPlayer-SP/3000-2139_4-24751.html

  • How to open files from old claris works with Appleworks 6 in OS X 10

    Hi,
    I have some claris works files backed up on a zip disk from a G3 with OS 7.X.
    Now I try to open them on another G3 with Appleworks6 in OS X 10.
    In Appleworks, I choose "open file" but those files are grey out so I cannot choose them. Is there anyway I can open those files in OS X 10?

    Kuul, welcome to Apple Discussions.
    MacLinkPlus @ http://www.dataviz.com/products/maclinkplus/ will probably translate the files so you can open them.
     Cheers, Tom

  • HT204382 Can anyone tell me how to open files in the format 'radio.ram' ?

    Can anyone tell me how to play files in radio.ram' format, as an add-on to QuickTime or whatever?

    Wow, that's a name from the past, Real Player. 
    And it worked.
    It's a product that I'd completely forgotten about going back to my days struggling with Windows on IBM clones and shows that I haven't tried listening to streaming Internet radio in a long, long time!
    Thank you very much, Varjak, for your help.
    Michael Young

  • How to open files using cmd command?

    Hello... First:
    try {
    Process p = Runtime.getRuntime().exec("cmd.exe ?????");
    catch(Exception e){ }well... I'm trying to open files using a cmd command. It's working only oppening files on my own pc, but i need to know if i can open files using a localweb's pc, with the follow address, for example:
    "\\172.21.0.4\firstdir\seconddir\thirddir..."
    Thanks :D

    Gamboua wrote:
    normaly, i type \\172.21.0.4\dir\dir\dir... directly directly in my cmd.This only works because you are already running cmd.exe
    Try getting it to work with cmd.exe at the start of the line.

  • How to open files from the SAP DMS (DOC Mgt. System) ?

    Hello All,
            I making the Transaction CV04N in BSP.
    When I execute this CV04N I should give a DOC Nr and the list is generated for this DOC.Now in the List if I select one Record and then Press Display Icon then the content of this list is opened in a new window in it's respective format (PDF,Word,GIF,Image file  etc).These are stored in the SAP DMS.
            I want to open a file from this SAP DMS .
    This can be done in ABAP using the standard FMs. But in BSP we can't use these FMs as it will call a screen.
    The Fm which I'm using is " DOCUMENT_SHOW_DIRECT ".
    In Report prog. To this FM I'll pass the
    a, DOC Type
    b, DOC Number
    c, Document part and
    d, Document version.
    then It'll directly open a PDF file in a new window.
    But in BSP how should I acheive this as the FM calls a screen internally.
    The content of the documents are stored in the DMS. Is there any TCODE or Table to get the files from the DMS ?
    How should I proceed ? can any one help me out.....
    Regards,
    Deepu.K

    Hello All,
             I found the FM : <b>CVAPI_DOC_OPEN_CAD</b> which wil return the file path.
    But when I execute this in my BSP since the FM internally calls a screen it fails.
    But can anyone tell me the alternative for this.
    Should I create a FM omitting the GUI code ?
    I found one more thread which says that I can use classes starting with cl_gos*.
    But all the classes use a gui.
    Dowload a document from R/3 DMS to BSP page
    Am I wrong in the interpretation of the logic from the above thread ?
    Please suggest me .
    I too went thru the BSP Applications <b>CVAW_ENTIRE, CVAW_DOCUMENT_DISPLAY.</b>
    But these are used to display only the <b>thumbnails.</b>
    There is no code for displaying other formats like PDF,XLS etc.
    Please correct me if I'm wrong and let me know the correct path to solve my problem.
    Regards,
    Deepu.K

  • How to Open File in Full-Screen Mode

    How do I set a Quicktime file to open in full-screen mode?
      Windows XP  

    New to QuickTime 7 Pro is the ability to apply "Presentation" to a file. You'll see the tab in the Movie Properties window.
    One option is to "Enter fullscreen mode when opened". Use Save As to create a new file (leaving your original untouched).
    The "Presentation" properties travel with the file and you can use the feature even in Web based media (if you use special html tags).
    http://homepage.mac.com/kkirkster/mycareerfuture/
    One of my pages that uses tags to call the QuickTime Player (even the free version found on most computers). These new files are now "Presented".

  • How to open file in Quicktime Player when it shows gray/unavailable?

    How do I erase audio on idvd project?  Looking to separate audio from video, and apply new audio. Using 10.6.8 macbook air, Processor 1.4 GHz Intel Core 2 Duo.   Using imovie 11, 9.0.4, idvd 7.1.2.  Could not import to imovie, file would not appear. Quicktime Player, the file appears gray and doesn't open.  I am grateful to all suggestions.
    MacBook Air (11-inch Late 2010), Mac OS X (10.6.8)

    Hard to say for sure, but it could be a Microsoft Works file. Probably not Adobe related.

  • How to open File open/save dialog for a file saved in the Appl. Server?

    Hi Experts,
       My requirement is that, there will be a link in my BSP page "Link to BI Report" and when the user will click this link, the File open/save Dialog box will appear for a BI Report file that will be in a fixed path in the Application Server. I have checked with <a href="/usr/sap/tmp/bi_report.csv"> tag but it is not working. The BI report file will be currently in the CSV format. Any ideas about how to achieve this? Thanks in advance.

    If you want to work in tabbed view, do it like this:
    Select the move tool. Go to the tab that contains one of the image files.
    Drag the image over the tab that has the blank document (Keep holding down the mouse button). Wait till that tab opens.
    Drag & drop the image into the blank document.

Maybe you are looking for

  • Trying to email file from adobe reader 11.0 email addresses will not longer auto complete after moving to office 365

    trying to email file from adobe reader 11.0 email addresses will not longer auto complete after moving to office 365. It did work with older versions of outlook. Tried changing to global address book. It will only access global address book offline

  • Exporting Pop-up Menu to Dreamwaver?

    I am having trouble getting a pop-up menu (more specifically a drop down menu) that I created in Fireworks to work in Dreamweaver. I am exporting it as a Dreamweaver Library file and I'm thinking this may not be correct. None of my menus are showing

  • Hiding images from work flow

    I was wondering if it is possible to hide images in a locked area of Aperture, so that others are unable to view when Aperture is opened? Thanks!

  • Integration to Impress : Requirement check

    We are working on plan to have a PS integration between SAP and Impress. However there are two requirement stated by Impress quoted as below : Impress suggests a 'Downgrade Kit for Orders and Notifications' is loaded to obtain the relevant PM BAPI's.

  • Dynamic Logging level control in a grid/rac system

    How is the logging level in a grid/rac configured Weblogic system dynamically configured? I would like to control the logging level in grid/rac configured system dymaically via a GUI. What are the steps to controlling the level, or please direct to t