Setting the Dialog Modal

Hey guys,
I have a small problem here.
I have a frame with some buttons in it. On click of the buttons I get a dialog popped up.I have to make the dialog modal to the frame from which it has been popped up.
I have two Options here
1) I have to call the setModal function of the JDialog and make it modal.But this will fail when the user presses alt + tab. when this is done the frame and the dialog will not appear as a pair.
2) I have to pass the parent frame to the class which pops up the dialog and call the constructor ( JFrame frm, boolean true)
Is there any method other than the option 2 where the modal property can also be set and at the same time the dialog and the frame( owner ) appear in pair ????
thanx
Nagaraj

I don't know what happened to that one, whether I mistyped or whether the thread disappeared. There are plenty of others you can find by searching the forums. I might have done it myself and sent you another link, but not after this message:
what happened to everybody?? wake up ! Wake Up !
WAKE UP!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Any body to help me ???
[ ... ]-- Scott

Similar Messages

  • Set the dialog modal window width + height

    hi ,
    i tried to set the width+ height using
    window.dialogWidth , innerWidth , Width that come from a java code
    but without success.
    only the dialogWidth seemed to change somthing but it wasn't
    to the size that i passed , for value of 400 for example it changed
    the width to almost all the screen.
    Please advise .

    Are you still asking JavaScript questions here?
    Java != JavaScript
    Please take your JavaScript questions to a JavaScript forum.
    If this is not a JavaScript question then please post the relevent formatted code.

  • Set the workflow about PPR process as completed status with a report.

    Hi Gurus,
    I need to complete a workflow and all regarding task from UWL.
    To do this, I implemented 2 functions module: the first to execute the dialog step and the second to set the dialog step as completed status.
    When I run the report the both function module doesn't work. Sy-subrc  return me different result as 0.
    If I execute the SWIA T-code, I see all the task and there I execute the "dialog step" WORK ITEM to set it from ready status to started status and after I use "complete manualy" for the same task then the workflow created a new "dialog step" WORK ITEM I do the same with it and the workflow is completed.
    So I would like to do the same in a report with SAP_WAPI_SET_WORKITEM_STATUS and SAP_WAPI_DECISION_COMPLETE functon module ... please see my code below:
    loop at lit_wi_stat where wi_type = 'W' and wi_stat = 'READY'.
    *to set dialog step WORK ITEM as started status.
          call function 'SAP_WAPI_SET_WORKITEM_STATUS'
            exporting
              workitem_id          = lit_wi_stat-wi_id
              status               = 'STARTED'
              user                 = sy-uname
              language             = sy-langu
              do_commit            = 'X'
            importing
              new_status           = lit_wi_status
              return_code          = lv_subrc
          TABLES
            MESSAGE_LINES        =
            MESSAGE_STRUCT       =
    *to set dialog step WORK ITEM as completed status
          call function 'SAP_WAPI_DECISION_COMPLETE'
            exporting
              workitem_id          = lit_wi_stat-wi_id
              language             = sy-langu
              user                 = sy-uname
              decision_key         = '0001'
              do_commit            = 'X'
          IMPORTING
            RETURN_CODE          =
            NEW_STATUS           =
          TABLES
            MESSAGE_LINES        =
            MESSAGE_STRUCT       =
        endloop.
    But it doesn't work correctly.
    Maybe you have a better idea to reproduce the complete process in a report.
    Thanks in advance for your reply..
    Best regards.
    Julien.

    Hi Chandni
    I would presume that you are calling some activity step to perform some operation ...when this fails, you are passing some flag to the workflow to send the email and the "planned" error!
    It's pretty simple then:
    1) Analyze the flag using a condition step
    2) Use mail step to send the email
    3) Call a custom method to raise a workflow exception - workflow will go in error.
    More on Workflow Exceptions:
    BO Based Exception:
    http://help.sap.com/saphelp_nw73EhP1/helpdata/en/4f/372e0cf5d95541e10000000a421937/content.htm?frameset=/en/4f/3457d50a7b5542e10000000a421937/frameset.htm
    How you can define custom BO:
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d0f157e8-456b-2910-8ea5-c57d9267c913?overridelayout=true
    Or you can also trigger Class based Exceptions if you are using ABAP OO for workflow (custom functionality via Class using IF_WORKFLOW Interface). Just make sure you make your Custom Exception Class as a child of CX_BO_TEMPORARY or CX_BO_APPLICATION
    Regards,
    Modak

  • Setting the title for File download dialog when using content-disposition

    I am trying to send a file from server to client (browser). I am setting the content type of the resopnse and using the "content-disposition" header and giving the filename.
    But the issue is, when it is downloading and the dialog box is showing the progress bar, The title of the dialog box is showing something like "40% of localhost:9080.....". It doesn't show the file name in the title bar. Also, if the URL is very long (I am passing some get parameters and the servlet name is also long), I get junk characters like small boxes.
    How to set this title in the servlet?

    Is there a reason why you have to use FileReference.Save versus File.browseForSave?  In Adobe AIR, the File class, which extends the FileReference class,    provides more capabilities and has less security restrictions than the FileReference class.  Using File.browseForSave, it has a title:String parameter which is a string that is diplayed in the title bar of the dialog box.

  • How to set the size of an open dialog

    HI Everyone:
    I cannot set the size of the open dialog.
    I create a menu and menu item called "open"
    The menu item "open" will call OpenFile().
    However, I cannot set the size of the open dialog
    Everytime when the open dialog pops up
    the size isn't 500 x 500.
    Does anyone know what's wrong with this program ?
    Thanks a lot,
    Rodger
    ================================================================
    public void OpenFile(){
    JFileChooser fc = new JFileChooser();
    fc.setSize(new Dimension(500,500));
    fc.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES);
    fc.showOpenDialog(this);
    ================================================================

    Try this and then tell us if it worked:
    JFileChooser fc = new JFileChooser();
    fc.setPreferredSize(new Dimension(500,500));
    fc.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES);
    JDialog d = new JDialog(new JFrame());
    d.setSize(500, 500);
    d.getContentPane().setLayout(new FlowLayout());
    d.getContentPane().add(fc);
    d.setVisible(true);

  • Suggestion: Please make the Combine Files dialog modal to the Acrobat application instance.

    I often combine files into a PDF with Acrobat (XI). It is annoying that the main Acrobat window is shown while the Combine Files dialog window is open. I often review other PDF files during the process of selection for later combination. It happens far too often, that I accidentally close the Combine Files instance main Acrobat window during the process and subsequently lose the already specified file selection. I would suggest to make the Combine Files dialog modal for the Acrobat instance so that users would have to close the Combine Files dialog first, before closing the instance. I would appreciate this in a future update. Thanks a lot.
    Acrobat installé : C:\Program Files\Adobe\Acrobat 11.0\Acrobat\Acrobat.exe
        Version : 11.0.03.37
        Date de création : 2013/05/11
        Heure de création : 12:37:32
    Cartes graphiques : NVIDIA GeForce 9600 GT
        Version : 9.18.13.2018
        Vérification : OK
    Détails d’Acrobat :
       Sandboxing : Désactivé
       Captive Reader : Non
       Lecteur multiple sur un bureau : Désactivé
    Détails de l’affichage :
       Largeur d’écran : 1920
       Hauteur d’écran : 1080
       Nombre de moniteurs : 1
       Nombre de boutons de la souris : 3
       Possède une roulette : Oui
       Possède un stylet Windows : Non
       Jeu de caractères codés sur deux octets : Non
       Possède un éditeur de méthode d’entrée : Oui
       Dans l’environnement du lecteur d’écran : Non
    Détails de la session :
       Type de démarrage : Normal
       En cours d’arrêt : Non
       Réseau : Disponible
       Dans l’environnement Citrix : Non
       Dans l’environnement VMWare : Non
       Session à distance : Non
       Contrôle à distance :  Non
    Détails du compte :
       Droits utilisateur : Standard
       Contrôle de compte d’utilisateur : Par défaut
       Intégrité du processus : Non défini
       Type de profil : Aucun
    Détails sur Windows :
       Tablet PC : Oui
       Starter Edition : Non
       Media Center Edition : Oui
       Ordinateur lent : Non
    Dossier temporaire :C:\Users\Emploi\AppData\Local\Temp\
    Dossier Windows :C:\Windows
    Fabricant du système d'exploitation :Microsoft Corporation
    Fuseau horaire :Paris, Madrid
    Mémoire physique disponible :1783552 KB
    Mémoire physique totale :3669304 KB
    Mémoire virtuelle disponible :1922544 KB
    Mémoire virtuelle totale :2097024 KB
    Messagerie par défaut :Microsoft Outlook
        mapi32.dll
        Version : 1.0.2536.0 (win7_rtm.090713-1255)
        Date de création : 2010/11/20
        Heure de création : 23:29:12
    Moniteur :
        Nom :NVIDIA GeForce 9600 GT
        Résolution :1920 x 1080 x 59
        Bits par pixel :32
    Navigateur par défaut :C:\Program Files\Internet Explorer\iexplore.exe
        Version : 10.00.9200.16521 (win8_gdr_soc_ie.130216-2100)
        Date de création : 2013/07/10
        Heure de création : 10:54:20
    Nom du système :PRIVÉ-WT
    Nom du système d'exploitation :Microsoft Windows Vista
    Nom d'utilisateur :Emploi
    Paramètres régionaux :Français (France)
    Processeur :x86 Family 16 Model 5 Stepping 3  AuthenticAMD  ~3315  Mhz
    Taille de la page :4194303 KB
    Version BIOS :A_M_I  - 9001119
    Version du système d'exploitation :6.1.7601  Service Pack 1

    All feature requests must be made via the official web page:  http://www.adobe.com/go/wish

  • Open File Dialog, Select either FIle or Folder, but Set the Initial Location to ftp://

    Hello,
    I want to be able to open a file dialog, set the initial location to an ftp:// address, and allow the user to select individual files or a directory.
    I can use the File Dialog express VI, and wire in a start path, but the problem is that the filepath constant does not allow you to input ftp://[IPAddress]. If you type it in it will automatically adjust the path to read . If you right click, and hit browse and go to an ftp site, the dialog will not let you select a file or folder. And no you cannot type the address into a string and then convert that to a path. If you do it will look just like the image above.
    I can use .NET functions as seen below, but it is not trivial to allow the user to select files or a folder. The same is true if I write it in C++ (although I haven't tried this yet, just googled selecting files or folders in a file dialog).
    EDIT: I just realized that with .NET if I select a single file, the FileName it returns points to a temporary internet folder on my computer for example: C:\Users\xxxxx\AppData\Local\Microsoft\Windows\Temporary Internet Files\Content.IE5\P01ODP0F\ni-rt[1].ini
    The FileDIalog Express VI has these very options.
    So what is the easiest way to have an initial ftp address path for a file dialog, and allow the user to select files or a folder?

    Have never had to do that before - that's a bit of a drag.
    Some thoughts.
    1) Can you map a drive to that FTP address and go from there?
    2) You could try rolling your own dialog via FTP - that's something I've definitely done before!
    In the following snippet, I start an FTP session on the NI FTP site, log in as anonymous, list the base directory files/folders and then close my session. I then unbundle the directory listings array and plug the name and item type into the item names of a multicolumn listbox.
    CLD

  • Can I set the normalization level in the Bounce dialog?

    I want to normalize my tracks to, say, -1db instead of 0db.  Is there any way to set the normalize feature in the bounce dialog to do this?

    Hi
    The Art Of Sound wrote:
    Which in turn reduces the dynamic range......
    Louder parts get quieter... and quieter parts get louder....
    No
    Turning the gain up or down to ensure that the peak levels ( or RMS levels) merely turns the whole signal level up or down: no compression or expansion
    http://en.wikipedia.org/wiki/Audio_normalization
    CCT

  • Printing - how to set the page range in the page format dialog?

    Hi
    I need to print the text in a JTextArea; and this text can be more than 1 page. I use MyPrinterJob.setPrintable(new MyPrintable()), and I can print the whole document. But the range of the page in the page format dialog ( which I make appear before the print dialog) is from 1 to 9999. How can we get rid of this and can make the range of page equal the number of pages in a document?
    If I use a Book, how can we set up the range of page in the dialog equal the number of pages in a document or in a JTextArea( assume we do not know how many pages it has at the beginning?)
    I would be thankful if anyone can help me.
    Thank you very much

    All fields in InDesign can be entered in any measurement system. So, if you want to make an 8"x10" document and go to File>New Document and the window looks like this:
    …you can type either 8 in or 8" into the Width field like this:
    …and when you move to the next field, it will convert the eight inches into the equivalent number in the unit of measure that it is using at the moment, like this:
    … (203.2 milimeters is the same as 8 inches). You can also enter a different measurement unit into other fields once the file is created, such as the width or height of a frame, or the position of an object in the X and Y coordinates.
    If you would rather just work in inches instead of having to type the inches mark or abbreviation, go to InDesign>Preferences>General and select the Units & Increments tab. There you will see Ruler Units for Horizontal and Vertical at the top of the window. Set them to Inches and all of the fields will display in inches. If you do that to an open document, you will change the unit of measure for that document. If you do it while no documents are open, it will change the unit of measure for any new documents you create. To change the unit of measure for existing documents, you will have to open each and make the change.

  • How does the "Manually Set EV"dialog box in "Merge to HDR Pro" work?

    What is the  "Manually Set EV"dialog box in "Merge to HDR Pro" for?
    Do these values affect the HDR results?
    Since the source images are chosen in the first dialog of "Merge to HDR Pro"
    why do we need to set EV manually here? 
    Besides, after I tried different values to compare the results
    the "Manually Set EV"dialog box has disappeared how can I get it back?
    THANKS

    If the files you are merging don't have metadata giving their exposure values (time, aperture, ISO), then MergeToHDR prompts you for the relative exposure values.
    If your files have the metadata, then there is no need to enter the values manually.

  • Setting the parameter DIR_ORAHOME for a Dialog Instance

    I have been advised by the SAP GoLiveCheck to set the parameter DIR_ORAHOME for my dialog instances. The Oracle home is currently on the central instance at G:\oracle\SID\102. What must the path for the parameter DIR_ORAHOME be set to on the dialog instance? (central_host\.....???))
    Help.
    Scott

    Hello Scott,
    >> What must the path for the parameter DIR_ORAHOME be set to on the dialog instance?
    The paraemeter must be the same as on the database server itself. Set the DIR_ORAHOME in the default profile.. that is the way we do it.
    For example: /oracle/<SID>/102_64
    Regards
    Stefan

  • How to create a modal dialog, which I can still interact with document when the dialog is show.

    HI,
        Now, I am developing an automation plugin, and want to create a modal dialog, which I still can interact with document when the dialog is show.
        I find photoshop has some modal dialog have this function, such as the dialog of Customize Proof Condition and the dialog of Color Settings. Are these dialogs not modal dialog?
         Thanks!

    The whole point of a modal dialog is that you cannot interact with other things while it is active.
    And Photoshop does not support plugins accessing the rest of Photoshop while any plugin UI is active.

  • _layouts/Upload.aspx bypass the dialog to set properties

    I am displaying the _layouts/Upload.aspx page from a custom form, which enables the user to upload a document to a document library.  The problem is that once the user uploads the document a second dialog comes asking the user to set the title of the
    document and the following message "The document was uploaded successfully and is checked out to you. Check that the fields below are correct and that all required fields are filled out. The file will not be accessible to other users until
    you check in."
    I want to bypass this dialog, is this possible?

    Try below:
    http://ratikantas.blogspot.in/2012/07/skip-edititem.html
    http://hristopavlov.wordpress.com/2008/04/30/editformaspx-not-shown-when-uploading-a-document/

  • How is the getReturnParam Map set in the dialog framework?

    Hi All,
    I'm trying to pass around some values from my main window, to a dialog window, and then use those values in a call to a business method when the user presses "Approve" on the dialog. I want to call the business method in the returnListener method, but I can't find any information on how to manipulate the Map that is returned by:
    event.getReturnParameters();
    Does somebody have an example of setting and using this Map?
    Thanks,
    Matt

    I found a solution for this problem. Here is the new code for the launchListener:
      public void approveMessageForSend(ActionEvent e) {
        final AdfFacesContext adfi = AdfFacesContext.getCurrentInstance();
        adfi.returnFromDialog(new String("approvedToSend"), adfi.getProcessScope());
        adfi.getProcessScope().clear();
        logger.info("RETURN FROM approveMessageForSend");
      }note the second argument in returnFromDialog. I am accessing the process scope, which returns a Map of all the values I placed in processScope using the launchListener.
    Thus I am able to access that map in the returnListener with the following code:
      public void sendApprovedMessage(ReturnEvent event)
        Map m = event.getReturnParameters();
        ... rest of method ...Thanks for your help. I wouldn't have thought of using the returnFromDialog method for this.
    -Matt
    Message was edited by:
    mattedelman

  • In an Excel template file, can I set the Folder Path in the SaveAs Dialog box?

    I have an Excel template file (xltm) and, with help from the forum, I now have a Workbook_BeforeSave subroutine to save the template as a macro enabled file (xlsm).  I’m so thankful for that help from Edward in the forum.
    I also want to set the default folder location to save the file. I really only need it when the template is saved as a new xlsm file, because if they open the xlsm file, it’s usually opened from the default folder path so any save would normally go back
    to where the file was opened.  However, with a template (even if the template is in the default folder) the Saved template reverts back to the user’s documents folder.
    Is there a good way to do this?
    I tried to modify the Workbook_BeforeSave code like this:
    Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
    Dim FolderDir As String
    Dim FileNameVal As String
    FolderDir = "Z:\save\data\place\"
    If SaveAsUI Then
    If Dir(WorkBookFolder, vbDirectory) <> "" Then
    Application.DefaultFilePath = WorkBookFolder
    End If
    FileNameVal = Application.GetSaveAsFilename(, "Excel Macro-Enabled Workbook (*.xlsm), *.xlsm")
    Cancel = True
    If FileNameVal = "False" Then 'User pressed cancel
    Exit Sub
    End If
    ThisWorkbook.SaveAs Filename:=FileNameVal & ".xlsm", FileFormat:=xlOpenXMLWorkbookMacroEnabled
    Application.EnableEvents = True
    End If
    End Sub
    But there are a lot of checks that would need to be done.
    I'm not sure how to only default the folder saved only when they open the template, but not change it when they just open an already saved Excel file created by the template (with all the active content, macros, etc.).
    Alan Edwards

    Hi Alan,
    store the path\filename in the 1st argument:
    FileNameVal = Application.GetSaveAsFilename("C:\*.xlsm", "Excel Macro-Enabled Workbook (*.xlsm), *.xlsm")
    Andreas.

Maybe you are looking for

  • Photosmart 7510 e-all-in-o​ne series/ Printhead problem.

    Our photosmart 7510 e-all-in-one series has an message that reads  Printhead appears to be missing, not detected, or incorrectly installed. Not able to locate the problem. Happened right after I changed the ink. 

  • Laptop taking really long time to restart after battery drain

    Last night I had a weird experience with my mid-2011 MacBook Pro; I went out to dinner and came back to find the cat had kicked the power cord out, draining the battery. I've had this happen before and wasn't too worried; it's always just restarted a

  • To maintain UTF-16 characters from a file

    Hello, I have a text-file that includes some special characters (UTF-16), I must write a java class that modifies the text, maintaining these special characters. I try with: in = new BufferedReader(new InputStreamReader( new FileInputStream("PapersVe

  • Tween in two directions?

    I am trying to create a burst using tweens, but I can't seem to get it to work. I can get the clips on the stage but I can't control them to go in different directions. What I tried: Generate a random number to choose a direction var posneg:Number=Ma

  • Query shrinking in workbook

    Hello Experts, When I am assigning data providers to a query in a workbook and viewing it after some days the old data is coming and not the current data. On going to design mode i can see that the query's area has shrinked and its not over the same