Modal and non modal

'Lo
Is there a way to open in modal mode a non modal form ?
ie : Modal window option set to NO
or do I have to duplicate the form ........ ?
thank's

Hi,
There is Window property 'Modal' (yes/no values) for that, set value to yes to the main window in your form.
You can not set this at runtime................
Regards,
Hugo

Similar Messages

  • Converting message box from modal to non-modal

    I have created a Dialog box that works well transferring variables but have now come across the need to keep this dialog open while exploring the VIEW and REPORT panels.  I understand non-modal dialog boxes allow for this and would like to convert or rebuild my current dialog  box to non-modal. Is this possible?
    If I have to create a new non-modal dialog box, how is this done?  I have tried several examples that suggest using the SUDDlgCreate instead of SUDDlgShow but with no success.  It doesn't appear clear where the disticntion between modal and non-modal is made.
    Thanks,
    Ben

    Hi All,
    Another thing to look out for is that the modal SUDialog can pass a VBScript variable as a 3rd paramater between the calling VBScript and the called SUDialog.  The Non-modal SUDialog can NOT pass a VBScript variable in this way.
    Otherwise there are no changes necessary in the SUDialog ittself, just the function used to call it as modal or non-modal.
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments

  • Regarding TreeItemType and Non Modal window in WDA

    Hello Guys,
    I am showing data in tree format in WDA and handling onAction event of TreeItemType. whenever user is clicking the last node in hierarchy (UI element TreeItemType), I am navigating to detailed view.
    the problem I am facing is that user is expanding the tree and selecting the child node to navigate to detailed view and now when he comes back to initial view, entire tree gets collapsed. and this leads user to again expand the tree.
    Is anyone have idea on this problem. I wanted my first view to be same after user navigates to 2nd view and comes back to 1st one.
    apart from this I have below question,
    1) In WDA, we cannot have non-modal window. Correct?
    2) If we call external window within WDA then the same application will not work in portal environment (WDA iView). Please let me know if this is correct?
    Thanks,
    Chandra

    Hallo Chandra,
    What you do when the control returns from view-2 to view-1 ? . Tree is not collapsing itself i suppose. Some how ,Contexts are being manipulated or node is invalidated forcing supply function to call.
    You could save the lead selected item before you navigate to view-2. When you come back again position the correct item.
    > 1) In WDA, we cannot have non-modal window. Correct?
    In what context you mean ? you can have external_window or link_to_url.
    If you mean popup then it is not possible to have non-modal.
    > 2) If we call external window within WDA then the same application will not work in portal environment (WDA iView). Please let me know if this is correct?
    This is correct.

  • [PC / Mac] Modal vs. Non-modal ScriptUI windows issue

    Hi,
    in Photoshop ScriptUI 'dialog' Windows are supported (they're modal windows), while 'palette' Window's behavior is peculiar (they're non-modal, and as long as there's something going on in the script, they keep displaying - otherwise they automatically close). Apparently, this is different in InDesign (for instance), where palettes can stay idle - at least this is what I've been told.
    I've found a couple of workarounds to work with palette Windows (my goal is to show them in order to let the user interact with either PS and the script's GUI - just like you'd do with regular panels and extensions - that is: to work with them as non-modal, idle palettes that mimic extension behavior), namely:
    // usual Window stuff
    win.show()
    while (isDone === false) { // isDone is set true in win.onClose() etc.
      app.refresh();
    or
    var s2t = function(stringID) {
      return app.stringIDToTypeID(stringID);
    var waitForRedraw = function() {
      var d;
      d = new ActionDescriptor();
      d.putEnumerated(s2t('state'), s2t('state'), s2t('redrawComplete'));
      return executeAction(s2t('wait'), d, DialogModes.NO);
    // Window stuff
    while (isDone === false) { // isDone is set true in win.onClose() etc.
      waitForRedraw()
    The problem is as follows:
    1. They both work on Mac, either CS5 and CS6
    2. app.refresh() seems to work on PC + CS5, but not PC + CS6
    3. waitForRedraw() fails on both PC + CS5 and PC + CS6.
    Mind you: When I wrote that the workarounds fails in CS5 and/or CS6 on PC, I mean that the 'palette', idle windows are modal and not non-modal as it is on Mac (which is my main coding platform).
    [EDIT] Further testing has shown that PC palettes are... halfway between modal and non-modal. For instance, you can click on menus, but not select a Tool; you can collapse or drag a panel, but not access its content. You can't absolutely click on the image - for instance I'm desperately trying to enable panning on PC palettes: no way, you can't have the Hand tool to click&drag the image. For some reason, a "soft-scrolling" is enabled (on my MacBookPro, two fingers scrolling in all directions in the trackpad - but how to mimic this behavior in a desktop PC with no trackpad I don't know). Weirdly enough, the trackpad's "soft-scrolling" works in all directions on PC + CS5 64bits only, either CS5 @32bits, CS6 @32/64bits goes up and down only, no left/right allowed - frankly, to deal with platform-dependent issues is one thing, to take into account 32/64bits too is... ehm...
    So, to sum up there are big differences in the ScriptUI behavior depending on how platform and PS version are combined:
    PC, 'palette' Window:
    CS5 + waitForRedraw() = modal
    CS5 + app.refresh() =  non-modal
    CS6 + (app.refresh() OR waitForRedraw()) = modal
    Mac, 'palette' Window:
    (CS5 OR CS6) + (app.refresh() OR waitForRedraw()) = non-modal
    Is there any... "working workaround" to make on PC CS6 a 'palette' ScriptUI Window to keep a non-modal, idling behavior? (the unasked question is: why is that palettes are behaving as non-modal in CS5 and not in CS6?! )
    Thanks in advance!
    Davide
    Message was edited by: DBarranca - added blue text, further testing comparing 32/64bit versions

    In the meantime, I've published two posts either describing in detail my issues:
    ScriptUI Window in Photoshop - palette vs. dialog
    and testing a workaround:
    ScriptUI - BridgeTalk persistent window examples
    Hopefully they may be useful to others as well.
    Regards
    Davide

  • Non-modal JDialog is not painted and blocks the GUI

    I have developed a GUI that's basically a JFrame with a JDesktopPane.
    The user can, via a menu item, pop up a JDialog that contains some JLists and then select some value from it. Once he/she has done the selection and clicks on OK, the dialog disappears (data processing is then done in the main GUI) and comes back once a specific event has happened. The user then selects other data and so on, until he/she clicks on Cancel, which definitely disposes of the JDialog.
    The graphics of the JDialog are build in the class constructor, which does a pack() but does not make the dialog visible yet. The dialog appears only when doSelection() is called.
         /** Called the first time when user selects the menu item, and then
         when a specific event has happened. */
         public Data[] doSelection() {
              dialog.setVisible(true);
              // ... Code that reacts to user's input. Basically, the ActionListener
              // added to the buttons retrieves the user's selection and calls
              // dialog.setVisible(false) if OK is clicked, or calls dialog.dispose()
              // if Cancel is clicked.
         }Now, everything works fine if the JDialog is modal, but if I make it non-modal only the window decorations of the JDialog are painted, and the control doesn't return to the main GUI. Calling doLayout() or repaint() on the doSelection() has no effect. How can this be fixed?
    I hope I have been able to explain the problem satisfactorily, I could not create a suitable SSCCEE to show you. Thanks in advance for any hint.

    Ok, I've taken some time to think about this problem and I've modified the code a bit.
    Now the dialog shows itself and is responsive (i.e. its JLists can be operated), but the Ok button does not close the dialog as I'd want. I believe that I'm messing up things about threading, and the operations in actionPerformed() should be carried out in another thread, if possible.
    Thanks in advance for any hint / suggestion / comment / insult.
         private Data[] selection;
         /** Constructor */
         public MyDialog() {
              // ... Here is the code that builds the dialog...
              dialog.setModal(false);
              dialog.pack();
              // Note that the dialog is not visible yet
         public Data[] doSelection() {
              operatorAnswer = NONE_YET;
              dialog.setVisible(true);          
              while (operatorAnswer == NONE_YET) {
                   try {
                        wait();
                   } catch (InterruptedException e) { }
              return (operatorAnswer == OK ? selection : null);
         public void actionPerformed(ActionEvent evt) {
              if (okButton.equals(evt.getSource())) {
                   operatorAnswer = OK;
                   retrieveSelection();
                   dialog.setVisible(false);
              else if (cancelButton.equals(evt.getSource())) {               
                   operatorAnswer = CANCEL;
                   dialog.dispose();
         private void retrieveSelection() {
              // ... Here is the code that retrieves selected data from the dialog's JLists
              // and stores it in the "selection" private array...
              notifyAll();
         }

  • Feature request: make the "transform" dialogs non-modal

    Currently, the transformation dialogs accessible at Object>Transform are modal. I'm talking about "Move…", "Rotate…", "Reflect…", and so forth. These dialogs, when open, lock the user out of any interaction with the artboard other than the "preview" button, until the dialog is closed.
    Even more problematically, they lock the scroll and zoom factor of the current user view, so that there's no way to inspect how a precise numeric adjustment affects a part of the layout outside the current window (or within the current window but very small inside it) without committing the change, inspecting it, and then later undoing if necessary. This creates cycles of tedious user adjustments (especially on small monitors) that really should be possible in one user step, by toggling the preview button on and off, and zooming/scrolling.
    This is contrary to most modern UI design principles, which suggest avoiding modes unless they are truly and meaningfully necessary. I don't think this is one of those cases. Photoshop made dialogs for adjustment layers non-modal with CS4, and while there are issues with the newer interface (see John Nack's Configurator workaround), I think it's a win overall. Illustrator needs to catch up in this regard. I realize there is some pretty serious refactoring involved to do this, but it has to be do-able.
    In the words of Larry Tesler's immortal Subaru license plate: "NO MODES"!

    ...make the "transform" dialogs non-modal...
    What, and bring Illustrator out of the 1980s?! Are you mad, man?
    Just so you know you're not alone; I've been complaining about AI's archaic dependency upon modal dialogs for many years.
    ...I'm fully aware of the Transform panel...observing that there's another way to do it...doesn't really address any of my points here...
    But it's not "another way to do it," because the functionality is not the same. The modal dialogs include crucial functionality that cannot be done in the Transform palette. For example, moving something in terms of distance and direction (diagonally), instead of merely by lame X and Y factors. Or transforming about an off-object center of transformation, rather than merely by the 9-point proxy.
    ...the "preview" isn't updated on keyboard entry, and the "preview" checkbox need to be manually toggled on and off...
    But the preview does refresh (and does not have to be toggled) in response to keyboard entry if that keyboard entry is by the arrow keys. For example: Select something, doubleClick the Scale tool, click your cursor in the Uniform value field, and tap the up/down arrow keys (or press and hold them). The value will increment and the preview will update with each key tap. (Be sure to teach that to your students.)
    That does not, of course, negate the complaint, but it does ameleorate it somewhat. The increments are preset; there are no preference settings for them. (Don't even get me started on preferences that should be doc-specific settings, and vice-versa).
    Nor does the valid point that problematic dialogs abound beyond just those associated with the transform tools, but I do agree with it. For just one of many examples, it's nothing short of idiotic that the Scale fields of Transform Each do not have a uniform scaling lock, and that only percentage fields are provided and no explicit dimension fields. Illustrator is quite saturated with such inconsistencies and half-baked implementations.
    But...you're often arguing with the emotionally attached Illustrator devoted here. So I wouldn't recommend holding your breath. It would probably be more effective teaching Illustrator's shortcomings to your beginning students. Probably one of the easiest ways to explain the problem of modal dialogs is to point out that you can't change the current selection with the dialog open.
    JET

  • Non Modal Window Popup BSP View

    Hi,
    I have a requirement to launch a pop up window which will allow the user to access the original screen from which the pop up was launched (i.e. a non modal window). The pop up window contains a calculator with the intention being that the user would be able to view and copy data displayed on the original screen into the fields of the calculator.
    I have created the calculator as a form view within a BSP component. All of the fields on the form view have been configured using the configuration tab. I have successfully created a modal pop up using the following on the buttons click event:
    comp_controller->window_manager->create_popup( ).
    However, this does not meet my requirement because the form view is displayed in a modal window. I have also attempted to load the pop up using javascript however the view does not initialise correctly when it is loaded which causes a null reference error.
    Can anyone please provide any advice or assistance related to creating a non-modal window for a configured form view within a BSP component? Many of the examples I have found online are related to WebDynPro applications and html pages with flow logic rather than configured views with a controller class.
    Thank you.

    Hi,
    I have a requirement to launch a pop up window which will allow the user to access the original screen from which the pop up was launched (i.e. a non modal window). The pop up window contains a calculator with the intention being that the user would be able to view and copy data displayed on the original screen into the fields of the calculator.
    I have created the calculator as a form view within a BSP component. All of the fields on the form view have been configured using the configuration tab. I have successfully created a modal pop up using the following on the buttons click event:
    comp_controller->window_manager->create_popup( ).
    However, this does not meet my requirement because the form view is displayed in a modal window. I have also attempted to load the pop up using javascript however the view does not initialise correctly when it is loaded which causes a null reference error.
    Can anyone please provide any advice or assistance related to creating a non-modal window for a configured form view within a BSP component? Many of the examples I have found online are related to WebDynPro applications and html pages with flow logic rather than configured views with a controller class.
    Thank you.

  • How to display non modal dialog box in a Dll call from TestStand implemented in visual c

    Dear Jason F.
    Applications Engineer
    National Instruments
    Hello
    I did the same way you told me
    the non modal dialog appeared and
    system hangs and
    giving the error message
    ""SeqEdit.exe-Application Error
    The instruction at �0x047fc5b0� referenced memory at �0x047fc5b0�. The memory could not be �read� ""
    please solve my problem
    and thanks for yours early response
    you can email me at
    [email protected]

    Hi Mkehret,
    Does your dialog have ActiveX controls on it? If your DLL dialog uses ActiveX controls and is not programmed in a certain manner it can hang because of a conflict in the threading model used by the TestStand Engine that is calling into your DLL and the model that is required by the MFC ActiveX Container. If you are using ActiveX controls in your dialog, you need to make special considerations for the threading model MFC dialogs that use ActiveX controls need in order to work properly. The example under \Examples\MFCActiveXContainerDlg illustrates how to appropriately handle this situation as well as explaining why it is necessary.
    Note: The above example displays the dialog as modal, but this is irrelevant to the problem I am describing.
    Again for information on properly creating a dialog class object and displaying it as non-modal refer to the information on MSDN that I referred you to in this post:
    http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=506500000008000000E98A0000&USEARCHCONTEXT_CATEGORY_0=_8_&USEARCHCONTEXT_CATEGORY_S=0&UCATEGORY_0=_8_&UCATEGORY_S=0
    If your dialog does not use ActiveX controls or after trying the programming method illustrated in the "MFCActiveXContainerDlg" example TestStand still hangs when calling your DLL, try calling your DLL from another environment just to make sure whether the DLL works at all. If the DLL works properly when called by another environment (e.g. VB, VC++, LabVIEW, or CVI), please submit a MINIMAL and REPRODUCEABLE example source project for your DLL for us to look at (please exclude all unnecessary code not required to reproduce the specific problem of displaying the dialog, and include all files necessary to build your dll with any
    specific instructions needed to do so).
    Jason F.
    Applications Engineer
    National Instruments
    www.ni.com/ask

  • Problem with non modal ADM dialog

    I have problem with focus and mouse and keyboard event passing to non modal dialog if some modal window was opened and closed on Windows platform.
    I have this problem in my plugin, but also I did some tests with SDK WordFinder Plugin.There are 2 dialogs open there : CountDialog-non modal dialog and PromtDialog-modal one. I commented all lines in function DeleteCountDialog to leave this dialog on the screen. So, first, when "create page map" menu is selected, CountDialog is appearing and stays on the screen. At this stage, it can be moved and get focus when is clicked.After that, I click on "find word by word offset" and then PromtDialog is appearing. when I close Promtdialog by clicking on OK or Cancel, CountDialog is "freezing" - means, it can not be moved and does not get focus when I click on it.
    Is it known problem ? Is there is some workaround there ?
    thanks in advance,
    Lidia.

    Thanks a lot for your response.
    I did changes as you recommended, but still have the same result.
    So I have WordFinder from Acrobat SDK 8 with only one file changed:WordFinderDlg.cpp - see below.The result is the same:
    1. I open Acrobat->Open some file
    2. Click on "Advanced->Acrobat SDK->Word Finder->create Page Map" menu
    3. "count" non Modal Dialog is opened and working and then stays on the screen and can be moved without problem.
    4. Now I click on "Advanced->Acrobat SDK->Word Finder->find Word By Offset" - Modal Promt Dialog is opened. click some number and then click ok - choosen word is selected in Acrobat. From this moment, first "Count" dialog is frosen - can be selected, can not be moved.
    The only workaround I see here is to create non Modal dialog every time I close Modal one.
    Could you please advice ? May I please send to you project in zip ?
    I really need it ASAP ?
    thanks in advance,
    Lidia.
    ADOBE SYSTEMS INCORPORATED
    Copyright (C) 1994-2006 Adobe Systems Incorporated
    All rights reserved.
    NOTICE: Adobe permits you to use, modify, and distribute this file
    in accordance with the terms of the Adobe license agreement
    accompanying it. If you have received this file from a source other
    than Adobe, then your use, modification, or distribution of it
    requires the prior written permission of Adobe.
    \file WordFinderDlg.cpp
    - Implements a modeless progress dialog and a generic prompt dialog.
    // Acrobat headers
    #ifdef WIN_PLATFORM
    #include "PIHeaders.h"
    #endif
    #include "ADMAcroSDK.h"
    #include "resource.h"
    Constants/Declarations
    static ADMDialogRef countDialog;
    static AVWindow gAVWindow = NULL;
    // Global variables used for simplicity
    const ASInt32 MaxLen = 80;
    static char textStr[MaxLen];
    static char titleStr[MaxLen];
    static char msgStr[MaxLen];
    Modeless Progress Dialog
    /* UpdateCountDialog
    ** Updates the dialog with a new GUI function to show count number
    void UpdateCountDialog(ASInt32 cnt)
    ADMItemRef itemRef;
    itemRef = sADMDialog->GetItem(countDialog, IDC_COUNT);
    sADMItem->SetIntValue(itemRef, cnt);
    sADMDialog->Update(countDialog);
    /* CreateCountDialog
    /** GUI function to delete the count dialog
    void DeleteCountDialog(void)
    // destroy dialog
    /*if (countDialog) {
    sADMDialog->Destroy(countDialog);
    countDialog = NULL;
    // Release ADM
    ADMUtils::ReleaseADM();*/
    /* SettingsCountDialogOnInit
    ** Called to initialize the the dialog controls
    ASErr ASAPI CountDialogOnInit(ADMDialogRef dialogRef)
    ADMItemRef itemRef;
    itemRef = sADMDialog->GetItem(dialogRef, IDC_COUNT);
    sADMItem->SetUnits(itemRef, kADMNoUnits);
    sADMItem->SetIntValue(itemRef, 0);
    return kSPNoError;
    /* CreateCountDialog
    ** Creates the modeless dialog.
    void CreateCountDialog(void)
    // Initialize ADM.
    ADMUtils::InitializeADM();
    // Display modeless dialog.
    countDialog = sADMDialog->Create(sADMPluginRef, "ADBE:Wordfinder", IDD_COUNT_DIALOG,
    kADMNoCloseFloatingDialogStyle, CountDialogOnInit, NULL, NULL);
    Generic Prompt Dialog
    /* PromptOnOK
    ** Called when the user clicks OK. Stores the string entered by the
    ** user.
    static void ASAPI PromptOnOK(ADMItemRef item, ADMNotifierRef inNotifier )
    sADMItem->DefaultNotify(item, inNotifier);
    // get user input string
    ADMDialogRef dialog = sADMItem->GetDialog(item);
    ADMItemRef item1 = sADMDialog->GetItem(dialog, ID_PROMPT_FIELD);
    sADMItem->GetText(item1, textStr, MaxLen);
    sADMDialog->EndModal(dialog,IDOK,FALSE);
    AVAppEndModal();
    AVWindowDestroy(gAVWindow);
    /* PromptDialogOnInit
    ** Called to initialize the dialog controls.
    ASErr ASAPI PromptDialogOnInit(ADMDialogRef dialogRef)
    gAVWindow = AVWindowNewFromPlatformThing (AVWLmodal, AVWIN_WANTSKEY, NULL, gExtensionID, sADMDialog->GetWindowRef(dialogRef));
    AVAppBeginModal (gAVWindow);
    sADMDialog->SetText(dialogRef, titleStr);
    sADMDialog->SetDefaultItemID(dialogRef, IDOK);
    sADMDialog->SetCancelItemID(dialogRef, IDCANCEL);
    ADMItemRef itemRef;
    itemRef = sADMDialog->GetItem(dialogRef, IDOK);
    sADMItem->SetNotifyProc(itemRef, PromptOnOK);
    itemRef = sADMDialog->GetItem(dialogRef, ID_PROMPT_FIELD);
    sADMItem->SetUnits(itemRef, kADMNoUnits);
    sADMItem->SetMinIntValue(itemRef, 1);
    itemRef = sADMDialog->GetItem(dialogRef, ID_PROMPT_NAME);
    sADMItem->SetText(itemRef, msgStr);
    return kSPNoError;
    /* PromptForInfo
    /** Generic prompt dialog that gets a text string from the user.
    /** @return IDOK or IDCANCEL.
    ASInt32 PromptForInfo(const char *title, const char *msg, char *buf, ASInt32 bufLen)
    if (!buf || (bufLen == 0))
    ASRaise (GenError(genErrBadParm));
    // Initialize ADM.
    ADMUtils::InitializeADM();
    // init data
    buf[0] = 0;
    strncpy(titleStr, title, sizeof(titleStr) - 1);
    strncpy(msgStr, msg, sizeof(msgStr) - 1);
    // Dispaly modal dialog to get user input
    ASInt32 rc = sADMDialog->Modal(sADMPluginRef, "ADBE:Wordfinder", IDD_PROMPT_DIALOG,
    kADMModalDialogStyle, PromptDialogOnInit, NULL, NULL);
    // get user input data
    if (rc==IDOK)
    strcpy(buf, textStr);
    // Release ADM
    ADMUtils::ReleaseADM();
    return rc;

  • A non-modal, but "always on top" JDialog

    Hi everyone,
    In an applet I am creating, I need to create a non-modal JDialog which stays on top whenever its open. The reason this JDialog is required to be non-modal is that I need the main applet window to be able to react to events and reflect changes in the non-modal JDialog.
    I was wondering how this can be achieved.
    To summarize the problem:
    How can you have a JDialog whose modal property is "false", but stays on top of the applet window.
    This problem has been bugging me for quite a while now, so any pointers will be appreciated.
    Thanks,
    Alan

    Here is how you do it in an applet (as opposed to JApplet):
    * Browser sniffer *
          boolean isNN4=false,isNN6=false,isIE=false;
          Frame F;
          JSObject window=JSObject.getWindow(this);
          JSObject document=(JSObject)window.getMember("document");
          String tmp=document.getMember("all").toString();
          if (tmp.equals("undefined")) {
             tmp=document.getMember("getElementById").toString();
             if (tmp.equals("undefined")) isNN4=true;       // Netscape Navigator 4
             else isNN6=true;                               // Netscape Navigator 6
          } else isIE=true;                                 // MS Internet Explorer
          if (isIE) {
             F=new Frame();
          } else F=(Frame)getParent();
    now you have a frame for use with the Dialog (not JDialog) method
    ...Just add the code shown above in the init method of your applet.
    Good Luck!
    ;o)
    V.V.

  • Non-modal JFileChooser?!...

    hi! i have ds problem.. how do u create a JFileChooser dialog that would only
    be modal to its parent window and not to the entire application window...
    pls. help.. =)

    If the chooser has a JDialog object as a parent component, you can get that object by some method in SwingUtilties, I think... then call setModal on it. But this will make it fully non-modal to all windows. You can't be selective about modal windows without some lower level system tweaking, I think. But generally, a file chooser is modal because usually you can't continue what you are doing til you pick a file or cancel.

  • JDialog Non Modal....Default button remains

    I've created a non modal JDialog
    By doing the following
    1. Creating an object of JOptionPane(message, JOptionPane.ERROR_MESSAGE)
    2. Adding the JOptionPane object to the ContentPane
    3. Creating a button
    4. Adding button("End Application") to ContentPane
    5. Adding listeners to window and button
    The result is a dialog
    Message
    ICON "OK" Button...............................NOT REQUIRED
    "End Application" Button
    I don't require the "OK" Button. Is there a way of removing this button. I need the dialog box to be modal so can't use showMessageDialog, rename "Ok" button to "End Application" etc.
    Should I be taking a different approach ie Not adding JOptionPane to JDialog??
    If the above isn't possible. Do you know where I can find the default error gif on error dialog boxes?
    Kind regards,
    Jean

    Get the error icon with UIMananger.getIcon("OptionPane.errorIcon"). It might throw exceptions while painting because it's expecting to be painting in a JOptionPane. Just catch and ignore the exceptions and it will paint alright.

  • Change a modal JDialog to non-modal JDialog

    I created a modal JDialog initially, for some result i need change it to a non-modal JDialog, is there any set modal command can do it??

    Nope.
    The reason is because of program flow:
    System.out.println("first line");
    JDialog dialog = new JDialog(modal);
    dialog.setVisible(true); // blocks this flow if and only if modal is true
    System.out.println("second line");
    Try putting a button in the dialog which prints out "button pressed".
    If you press the button each time before closing the dialog you will get:
    when modal is true:
    first line
    button presed
    second line
    when modal is false:
    first line
    second line
    button prese

  • JButton on XP non-modal Jdialog doen't work.

    I recently upgraded from 1.3 to 1.4 while upgrading my OS from NT 4.0 to XP.
    In a stand-alone application I have non-modal JDialog's that are launched as threads so that I can have multiple instances of them running simultaneously. There are JButton's on the JDialog's which no longer respond to any mouse events even though I can execute them via the keyboard using the tab and enter keys. They work just fine under 1.3 or if I make them modal.
    Any thoughts?

    Hello,
    Issue is-
    There are JButton's on the JDialog's which no longer respond to any mouse events even though I can execute them via the keyboard using the tab and enter keys. They work just fine if I make them modal.
    Plz suggest

  • 1. Non-modal popup or 2.minimize button on titlebar of popup

    Hi All,
    Firstly, is it now possible to open non-modal pop-ups ( as many pop-ups after executing an action method :( ) , or has anyone come across this found a work-around for this ?
    currently, I am opening a modal dialog itself. But when I click the minimize ( since minimize, maximize and close buttons are activated in the title bar ), the popup minimizes and maximises immediately. This is now raised as a bug and I need to find a solution for this.
    Would much appreciate help,comments or views on this ?
    -- Urvi

    Gor_Mahia wrote:
    ok i got what you mean but its an option for ver1.0 not version 2.0 of the same plugin..thanks.Well, this is an option in the Apex framework for dynamic actions. In Apex 4.2, the options for "Event Scope" are Static, Dynamic and Once.
    In your case, you can set it to live.

Maybe you are looking for

  • Oracle Reports 10g, PDF fonts

    Hi All, I have an issue with PDF turkish characters. When I run the same report with destype HTMLCSS all the characters are ok. I want to mention that the report data is taken from a remote 9i DB using a database link. The chracter set of the remote

  • I pre-ordered the Dark Knight on iTunes, how do I cancel it!?

    I know, I know, your probably wondering why I wouldn't want to buy the Dark Knight on iTunes. It's because the DVD includes a digital copy! Anyway, is there anyway to cancel a pre-order?!?

  • Changing Position of Header Icons In a Theme

    Hi I am trying to change the position of the iView Menu throw the theme editor -> iView's Trays -> Tray Header Icons -> Position of Header Icons  from right to left. But my changes doesn't effect the preview or the portal display (after I save my cha

  • URGENT HELP- opening a file from servlet

    I posted this message in other forum by mistake. Please help me. Wish I could award you 1000 duke dollers if had. It would be great help if somebody can help me out.Thanks http://forum.java.sun.com/thread.jsp?forum=12&thread=383418&tstart=0&trange=15

  • Maintaining Billing due list as the background job

    Hi everybody, Can any one explain me how to run the billing due list (SDBILLDL) as a background job in step by step procedure. I need to restrict by billing with respect to the delivery created by (LIKP_ERNAM) hence I need to insert a field delivery