Dialog box to Select Directories...

Hi,
I need to develop a Java tool where you have an option for the customer to select a directory in which a group of files wiil be saved. To implement this, when I invoked the JFileChooser.SAVE_DIALOG and set the filter to display only directories, it opens the same Dialog to save FILES ??? (JDK Version : 1.4 OS:MS-Windows 2000). In the Dialog box. there is a Label which says "File Name: "
This is misleading and confusing to the customer, who maybe a novice when it comes to computers. Hence this issue has come up and I need to fix this. I came up with alternate solutions like popping a confirmation box etc.. but the customer doesnt want to see the default dialog box as it is very confusing.
I wish I could show you the snapshot which highlights this problem, to make the problem clear, but that is not possible.
I browsed the net with little help. Please tell me what is the best way to go about this as I have no clue of where to go from here?

I'm not going to write code for you? Is this for your
job? Do you want to get paid for something I do?
Why don't you write the code? When you find a problem
or a bug you can't resolve, then ask a question
here.
Please Sir,
None of the questions that I have raised here were EVER directed to you or anyone in particular. This is an open forum and if you are not willing to share your hardwork, its fine...
.....and by the way, it never should be the question of your code and my code. Its not that I cant write code for it...its just that I dont believe in re-inventing the wheel.
I know that this is a known limitation in Java and someone must have spent a lot of time and energy on this dialog...no use if everyone broke thier heads on the same problem...
...and that is the very idea behind creating such public forums....so that people communicate and share instead of re-inventing the wheel.
- Vijay

Similar Messages

  • Set dialog box to open directories in "Details" view by default

    Hi,
    Is there a (natvie LabVIEW) way to set dialog boxes (file select, file save etc.) to open the folders in "Details" view by default, or is it necessary to make calls to the win API?
    Thanks,
    Chris

    smercurio_fc ,
    Thanks for the information (and I followed the linked and voted, by the way).
    Best Regards,
    Chris

  • How to create application toolbar in modal dialog box in selection-screen

    Hi Experts,
    how to create application toolbar in modal dialog box in selection-screen?
    Regards,
    Swapnika

    Hi,
    Check the following link regarding Model dialog box and appication toolbar
    http://help.sap.com/saphelp_nw70/helpdata/en/d1/801b84454211d189710000e8322d00/frameset.htm
    It helps in solving your problem.
    Thanks.
    Ramya.

  • How to access the Document Options dialog box to select display properties?

    How to access the Document Options dialog box to select display properties (e.g. smartcut ) for a selected document to
    be viewed in the Workspace.
    regards

    Preferences --> General --> Reset all warnings.
    Mylenium

  • Opening print dialog box with "Selection" printing enabled

    Hi all,
    I have a JTable in which I wan to print only selected rows. When I open the Print dialog box using printDialog() method of PrinterJob, the dialog opens with "Selection" option disabled.
    How can I enable this option ?
    How can I print my selection using the standard Print Dialog ?

    This I know.
    Let me refrase my question:
    I have a table with selected cells (Rows Cols
    whatever ...) I wish to open the print dialog box
    with Selection radio button enabled, such that when I
    will check it and click print, the selected table
    cell get printed.This I had understood.
    Let me refrase my reply:
    If you simply print a new table containing the selected data
    then you don't need to have the Selection radio button enabled
    in the print dialog box.

  • Filter in the Dialog box for selection

    I have report that contains a file selection dialog using the following code
    at selection-screen on value-request for p_file.
      perform f_get_file using cl_gui_frontend_services=>filetype_excel.
    form f_get_file using p_filetype type string.
      data: lt_filetable  type filetable,
            ls_file       type line of filetable,
            lv_filename   type string,
            lv_path       type string,
            lv_fullname   type string,
            lv_title      type string,
            lv_desktop    type string,
            lv_rc         type i,
            lv_action     type i.
      call method cl_gui_frontend_services=>get_desktop_directory
        changing
          desktop_directory    = lv_desktop
        exceptions
          cntl_error           = 1
          error_no_gui         = 2
          not_supported_by_gui = 3
          others               = 4.
      if sy-subrc <> 0.
        message e007(zspx) with 'Desktop not found'.
      endif.
    * Update View
      call method cl_gui_cfw=>update_view
        exceptions
          cntl_system_error = 1
          cntl_error        = 2
          others            = 3.
      lv_title = text-003.
      call method cl_gui_frontend_services=>file_open_dialog
        exporting
          window_title            = lv_title
          file_filter             = p_filetype
          initial_directory       = lv_desktop
        changing
          file_table              = lt_filetable
          rc                      = lv_rc
          user_action             = lv_action
        exceptions
          file_open_dialog_failed = 1
          cntl_error              = 2
          error_no_gui            = 3
          others                  = 4.
      if sy-subrc = 0 and lv_action ne cl_gui_frontend_services=>action_cancel.
        read table lt_filetable into ls_file index 1.
        if sy-subrc = 0.
          p_file = ls_file-filename.
        else.
          clear p_file.
        endif.
      else.
        clear p_file.
      endif.
    endform.                    " f_get_file
    Currently while opening the dialog for file selection its showing the desktop directory. But user can select file from any other directory.
    My question is how to restrict this dialog box from which user can select only from desktop directory.
    PS : Please don't suggest  to validate the file after getting the file that its from desktop or not

    Hi,
    Like the bellow ?
    Replace following code
    if sy-subrc = 0 and lv_action ne cl_gui_frontend_services=>action_cancel.
        read table lt_filetable into ls_file index 1.
        if sy-subrc = 0.
          p_file = ls_file-filename.
        else.
          clear p_file.
        endif.
      else.
        clear p_file.
      endif.
    with the bellow
    IF sy-subrc = 0 AND lv_action NE cl_gui_frontend_services=>action_cancel.
        READ TABLE lt_filetable INTO ls_file INDEX 1.
        IF sy-subrc = 0.
          FIND FIRST OCCURRENCE OF lv_desktop IN ls_file-filename.
          IF sy-subrc = 0.
            p_file = ls_file-filename.
          ELSE.
            MESSAGE: 'Sorry! you can select file only from Desktop' TYPE 'I'.
            PERFORM f_get_file USING cl_gui_frontend_services=>filetype_excel.
          ENDIF.
        ELSE.
          CLEAR p_file.
        ENDIF.
      ELSE.
        CLEAR p_file.
      ENDIF.
    Regards,
    Faisal

  • Using ExcelExport without opening the dialog box to select all the channels in portal by default

    Hi,
        I need to export all the data in the Data portal to an Excel file without opening the Dialog for channels selection. In the ExcelExport command, it asks for a Config (*.stp) file as one of the parameters. Is there need to create a new stp file for selecting all channels or can the same file (Example_ASC.stp ) be reused ? If so, do I need to change any content in the system stp file ?
    Thanks
    Venkatesh Murthy

    http://forums.ni.com/ni/board/message?board.id=60&message.id=8565&query.id=128811#M8565

  • Add Folder to Library - No dialog box to select folder

    Hi,
    I wanted to designate a specific folder as the folder where iTunes / my iPhone should import music from. I want to limit iTunes to a specific folder as do not want comingle my Zune data as I have 100 gig of music which will not fit on my 32G 3GS.
    When I click on File-->Add Folder To Library, I don’t get the expected dialog from where I can select the folder.
    I can see from iTunes that its windows dims, meaning that another dialog has the focus however I cannot see this dialog window.
    When I click on iTunes at this time, I get a beep and Browse For Folder outline / dialog flashes on the screen, but it is blank and I can just see the form caption in the top left.
    Hitting ESC returns me to iTunes.
    I am however able to do a file selection File-->Add File To Library without any problems.
    Seems iTunes is a little buggy.
    Any suggestions?

    Here is maybe another clue.
    Whenever any dialog message pops up (got a warning that some .MOV file would not be copied for some reason or another) I hit alt tab and changed to another applications. When I returned to iTunes the dialog had disappeared.
    Again, the focus is not on the main iTunes application window and I can not interact with iTunes. Once I hit escape (which dismisses the dialog) control returns to the iTunes application and I can use it again.
    Just to test, I changed my screen res to 1024 x 768 (I normally run 1920 x 1080) to see if iTunes dislikes my resolution. Same problems....
    Any help much appreciated as I would like to get some music on my iPhone 3GS.
    Thanks
    André

  • How to suppress the Print Dialog Box?

    Running an (ASP.NET /Crystal Reports 2008) application and using CrystalReportViewer control. Is there way to suppress the print dialog box when I click the print icon on the report tool bar?
    Edited by: juRamz on Aug 26, 2009 2:54 PM

    Hello,
    Sort of, CR needs the info. Only option is to create your own print button that has all the info filled in. It's a Windows Framework Common dialog box that CR calls so it's the OS that is prompting for the info.
    Using ReportClientDoc here's a possible solution, note that this too has a dialog box to select the printer:
    private void button1_Click(object sender, System.EventArgs e) // Print To Printer button
        System.Drawing.Printing.PrintDocument pDoc = new System.Drawing.Printing.PrintDocument();               
        PrintReportOptions rasPROpts = new CrystalDecisions.ReportAppServer.Controllers.PrintReportOptionsClass();
        CrystalDecisions.ReportAppServer.ReportDefModel.PrintOptions newOpts = new PrintOptionsClass();
        //CrystalDecisions.CrystalReports.Engine.PrintOptions newOpts = new PrintOptionsClass();
        pDoc.PrinterSettings.PrinterName = cboCurrentPrinters.Text;
        rasPROpts.PrinterName = cboCurrentPrinters.Text;
        rasPROpts.PaperSize = (CrPaperSizeEnum)
            pDoc.PrinterSettings.PaperSizes[cboCurrentPaperSizes.SelectedIndex].Kind;
        rasPROpts.PaperSource = (CrPaperSourceEnum)
            pDoc.PrinterSettings.PaperSources[cboDefaultPaperTrays.SelectedIndex].Kind;
        // new API added to allow changing printing options
        newOpts = new CrystalDecisions.ReportAppServer.ReportDefModel.PrintOptions();
        newOpts.DissociatePageSizeAndPrinterPaperSize = true;
        rptClientDoc.PrintOutputController.ModifyPageMargins(0, 0, 0, 0);
        rptClientDoc.PrintOutputController.PrintReport(rasPROpts);
        MessageBox.Show("Printing report.", "RAS", MessageBoxButtons.OK,MessageBoxIcon.Information );
    Thank you
    Don

  • Problem with Indesign CS3 missing save as dialog box

    I am having problems saving documents with Indesign CS3. I have upgraded it to the latest version, repaired permissions, shut down a restarted to no avail. This is Indesign CS3 running on a Macbook under Leopard 10.5.2. You can select save and it appears to save a file. However, if you select "save as", the dialog box to select a location never comes up. Nothing seems to happen. I can't figure it out, and it happens to any file. I have created test files and the same thing happens.
    Help!!!

    Trash preferences before re-installing. Also, try this weird procedure: open the equivalent dialog in one of the other Suite products on the same computer (assuming they're there). That's been known to solve the problem on Windows machines.
    Dave

  • Printer dialog box does not appear

    When I do  File>Print  I'm getting the following error message:
    "The saved printer information is not compatible with this version of Photoshop, or the saved printer is no longer available. You will need to check your printer settings before printing."
    The Print option then gets grayed out and a print dialog box never appears.  Don't you need the printer dialog box to select the printer?  How can I select a printer so that at least the dialog box comes up?

    Someone had a similar issue below and their solution fixed my problem also:
    Go into windows control panel and get into the printer section. Choose  another printer as the default printer as in MS XPS document writer and  save. Then open PS back up and select what you want to print and also  the printer you want to print on.

  • Remove Keyword from Filter dialog box help

    When I imported my iPhoto library of about 5,000 photos Aperture created two keyword filters (visible when I open the FILTER dialog box and select "All Images" under the main Project Library. It created "iPhoto Edited" and "iPhoto Original" keywords. each of my imported iphoto photos had one of the keywords attached to them. I found originally that filtering through all images took forever - so I removed these two keywords from all of the imported iPhoto files.
    Question: how do I remove these two keywords from the FILTER dialog box? Note that these two keywords do not appear in the Keyword HUD at any time.

    Here is the code:
    var cResponse = app.response({ cQuestion: "Enter the Month & Year of Published Ad (i.e. August 2008)", cTitle: "Published Ad"});
    if (cResponse == null) app.alert("Process Cancelled");
    else ConvertToPA();
    function ConvertToPA() {
    var size = this.getPageBox("Media"); if ((size[0] == 0) & (size[1] == 612) & (size[2] == 792) & (size[3] == 0))
    { this.addWatermarkFromFile ({bOnTop: true, nHorizAlign: app.constants.align.left , nVertAlign: app.constants.align.bottom , nHorizValue: 184, nVertValue: 12,
    cDIPath: "/Macintosh HD/Users/ben/Desktop/Printer's Final PDF's/Printer's Final (Flyer Stamp).pdf"});
    this.addWatermarkFromText ({cText: cResponse + " Published Ad", cFont: "Arial,Bold", nFontSize: 24, aColor: [ "G", 0.5 ], bOnTop: true,
    nHorizAlign: app.constants.align.center, nHorizValue: 72, nVertAlign: app.constants.align.top, nVertValue: -42}); }; // Flyer Ad Horiz
    var size = this.getPageBox("Media"); if ((size[0] == 0) & (size[1] == 792) & (size[2] == 612) & (size[3] == 0))
    { this.addWatermarkFromFile ({bOnTop: true, nHorizAlign: app.constants.align.left , nVertAlign: app.constants.align.bottom , nHorizValue: 184, nVertValue: 12,
    cDIPath: "/Macintosh HD/Users/ben/Desktop/Printer's Final PDF's/Printer's Final (Flyer Stamp).pdf"});
    this.addWatermarkFromText ({cText: cResponse + " Published Ad", cFont: "Arial,Bold", nFontSize: 24, aColor: [ "G", 0.5 ], bOnTop: true,
    nHorizAlign: app.constants.align.center, nHorizValue: 72, nVertAlign: app.constants.align.top, nVertValue: -42}); }; // Flyer Ad Vert

  • New script dialog box only displays momentarily

    FM10 in TCS3 on Windows XP
    My coworker and I decided to investigate Extendscript and when we select File>Scripting>New from the main toolbar, the New Script dialog box flashes momentarily and then disappears. However, selecting Run displays the Choose Script dialog box, and selecting Catalog displays the Script Library.
    We have the latest patches and have installed DITA-FMx, FrameSLT, and SDLAuthorAssistant in FM.  Could any of those be affecting the scripting function?
    Thanks in advance.
    m

    Using TechCommSuite 3.0 on Windows XP.
    I always like to close loops and this posting is no exception.
    After almost two weeks of diligent sleuthing by Adobe techs and our own security personnel, we determined that the problem of ExtendScript not launching was an in-house problem.
    We have a DLP application that interfaces with our desktops for security purposes.  We needed to identify the ExtendScript.exe that was running in order to allow it to function.  Our security guy performed some wizardry and voila!  I had my ExtendScript window.
    Mary

  • I keep coming across a password dialog box which i don't have the password

    when i try to download flash player or bbc iplayer i am asked to enter a password in a dialog box were the first line is macbook pro, i don't recall setting this password and when i go into privacy & settings i am asked for the old password ( which i don't recall setting up ) to enable a reset.

    OS X 10.7 Lion, 10.8 Mountain Lion & 10.9 Mavericks
    Reset Password starting from Recovery HD
    Start the computer,then press and hold down command and R keys to start into recovery partition.
    When you see the Apple logo, release the keys.
    Wait until  OS X Utilities window shows up.
    Move the mouse to the menubar at the top and click "Utilities", then select "Terminal"
    from the drop down.
    Terminal window will appear.
    Type in   resetpassword   and press enter on the keyboard.
    Leave the Terminal window open.
    Reset Password Utility window will open with Macintosh HD selected.
    Select the user account from the popup menu box.
    Enter a new password.
    Reenter the new password for the user.
    Enter a hint.
    Click the "Save" button.
    Click  in the menubar and select Restart.
    Log in.
    If Keychain dialog box appears, select “Create New Keychain”.

  • Download w/o location selector dialog box

    Hi
    I m using Flash CS3pro.
    In AS3, is there a way to download a file without poping up
    the dialog box for selecting a location to write to?
    In other words, my program will provide the location to write
    the file.
    thx in advance
    Angel

    Depending on your operating system, things may be slightly different, but on Win 2k, use the administrative tools->Data Sources Administrator to create some sample DSNs that you can look at. You want to create a 'file DSN,' as 'User DSN's and 'System DSN's appear to be stored elsewhere. (Maybe in the registry)
    I'm attaching an example DSN that I have been using as well.
    Best of Luck to you,
    Alex
    Attachments:
    electrode.dsn ‏1 KB

Maybe you are looking for