Pop up dialog box on condition check - JAVA

i'm currently working on CORE java and i'm stuck with a scenario wherein i need to pop up a dialog box when a particular condition is met.
the dialog box needs to have a message and two buttons yes and no .
yes would go ahead with the process and no would prevent the action.
how do i go about creating this dialog box.
is it possible without applets.
if applets are used , can you give me a sample code. my file cannot extend from Applet.

JOptionPane.showConfirmDialog(...);

Similar Messages

  • Printer Pop-up Dialog box

    Hi
    I encounter the printer Pop-up Dialog Box appear upon a
    PrintJob is sent.
    Is there a way to ignore or escape this pop up box?
    Regards

    We have currently upgraded 3 instances and it is happening in all 3 on all PC's. Appears that Oracle has it's own pop-up printer window it uses when printing from the PC instead of using the standard one. I imagine it is slow because of it being java. I'd open an SR but they will just say to update to today's version of java. We can't test in other browsers since IE8 is our standard company wide. I haven't got any hits searching MOS or Google on this so was just wondering if others are seeing the same thing. BTW - Our 11i instances work fine and load quick even on the first print but then 11i is using the PC's standard print pop-up window and not a java based one from the applications.
    FYI - Fuound Bug 9202075 which seems to be the same issue except that we are on java 1.6.07. I have opened an SR.
    Edited by: user649511 on May 20, 2011 7:18 AM

  • Home view major bug: Home view navigation not available in Common File Dialog Box (i.e. Java, Adobe Photoshop etc)

    Homeview major bug: Homeview navigation not available in Common File Dialog Box (i.e. Java, Adobe Photoshop etc)
    Hi
    All though provisioning somewhat more flexsible and pointing forward ... things are starting to go wrong here ... i.e. pointing to a very potential lack of success introducing users to the new Home namespace/concept ...
    0) Situation if you do not fix 1 + 2:
    You can not release the Homeview feature like this - without fixing 1 + 2.
    If not 1 +2 is fixed you might just as well leave the release of the Homeview feature out of the roadmap for Windows 10. I.e. not ready for use ... or promotion in the UI
    1) How come Homeview has not been included - like other namespaces i.e. Libraries into the Common File Dialog Box?
    How can such a trivial thing to do be missed? I.e. like forgetting to include Homeview into Explorer (would be absurd).
    If not included into the Places Bar of the Common File Dialog Box ... Home View will be unusable - because some very visible applications like Java, Photoshop will not be able to navigate that space easily at all.
    2) Finally, please fix obscure situation in the UI namespace in Explorer
    Please fix obscures like having Home view, Favorites and Libraries (side-by-side complexity and confusion obscuring usability) - all similar concepts but on a different evolutionary step. I.e. have Favorites and Libraries
    hidden - and add i.e. view control like to small buttons whatever to unhide/show the legacy concepts.
    In any case - Home view already seem to migrate/move links from Favorites to the Homeview container.
    Additionally, Home view should migrate links from Libraries to Home view - and provide similar and better functionality.
    Thus going the evolutionary way from Libraries > Favorites > Home - with the later concept of Home providing links to the cloud. Even better, sync relation ships could then later (extended features for Home) be set up among the pins - i.e. concerning
    cloud/network syncing.
    The UI should always reflect the 1 essentional concept - and not under the hood technologies or different evolutionary stages of the same basic/essential concept (technology/implementation free - abstract: "Home with pining of user data space"
    - was previously favorites or libraries (thus obsoleted)). Now the name for that concept is Home. Have it include the technology that replaces Libraries too - i.e. categorization/nesting ... and some whitespace inbetween the nesting (alike some whitespace
    already there inbetween the namespaces in the Explorer UI ... provides easy "modular" reading)

    Hi,
    Please clarify the following:
    * "X: is a network drive, but it's actually a network drive on my machine." - Is "X" a mapped drive to one of your shared folder on network?
    * What is the project directory structure with respect to WEB-INF/web.xml? Are you able to see the three pages (from web & pages folder) in NitroX Editor?
    * Does the modified content appear in "Design view" of index.jsp upon restarting NitroX?
    Ex:
    - modify one of the pages in "web" folder > save the file (alert appears)
    - restart NitroX, does index.jsp display the modified content of included page?
    * If possible please send the test case project which exhibits the behavior to [email protected]
    Thanks,
    M7 Support

  • Photoshop CS5 pop-ups (Dialog boxes) will not stay / stick in place

    My pop-up / dialog boxes have always opened in the same place as I had placed them from the previous time I had used them. All of a sudden they will no longer stick / stay, they open in the center of the page.
    For example when I first open PS and I click Ctrl > C for Brightness / Contrast the box will open in the center of the page. If I move it to the side (so its not in the working area) it should open in that spot the next time I use it.
    But now it will always open in the center of the page regardless of where I have placed it before. Very annoying it have to move the dialog boxes all the time.

    What OS are you running?
    I know of no way Windows can cause that, but I don't know about OS X.
    If you can't find a direct solution, it might be a case where a complete Photoshop preferences reset to defaults could help...  Press and hold Control - Shift - Alt simultaneously (or Command - Shift - Option if on a Mac) immediately upon cold-starting Photoshop. If you get the keys down quickly enough - and you have to be really quick - it will prompt you to confirm deletion of your current preferences, which will lead to the establishment of a fresh default set. If it does not prompt you, you haven't been quick enough to get the keys down.
    -Noel

  • How can I Create custom pop up dialog box with question/answer

    I need to create a pop up dialog box that asks a question and accepts an answer input.  The form needs to be able to be emailed out (not server based)  Can someone help me do this?  I am a designer,  with very (Very!) limited coding skills.   Looks like the windjack program that I keep running into does not work with Acrobat X.
    Thanks for any help you may have

    I am not able to help you with the current method you are using - which seems an odd one in that you are using a menu script to do this????
    I would have done the page completely differently - instead of slicing it up into a vastly complex table, I'd have added the image to the page and then used an imagemap.  Then I'd have used this script to add the popups (as toolitps) that you can be as simple or as complex as you wish: http://boxover.swazz.org/.
    E. Michael Brandt
    www.divahtml.com
    www.divahtml.com/products/scripts_dreamweaver_extensions.php
    Standards-compliant scripts and Dreamweaver Extensions
    www.valleywebdesigns.com/vwd_Vdw.asp
    JustSo PictureWindow
    JustSo PhotoAlbum, et alia

  • Move an application "pop-up" (dialog box) with keyboard possible?

    Is there a way to move an application's pop up (dialog box) with a keyboard command/shortcut? I had a situation where I was not connected to my 2nd monitor and an application popup box was opening on that 2nd (*not connected*) monitor.
    I hate to say this; but on a PeeCee, a user can move a window via the keyboard. Is this possible on a Mac? Thanks!

    no, it's not possible on a mac. if the popup open on the other monitor connect the second monitor and move the popup with a mouse. it should open on the main monitor form now on.
    If you don't have a second monitor at all do the following.
    1) goto System Prefs - universal access - enable access for assistive devices.
    Paste the following into Script Editor and press run. This will move all offscreen windows currently open on the second monitor to the main screen.
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px; height: 335px;
    color: #000000;
    background-color: #ADD8E6;
    overflow: auto;"
    title="this text can be pasted into the Script Editor">
    –– Example list of processes to ignore: {"xGestures"} or {"xGestures", "OtherApp", ...}
    property processesToIgnore : {}
    –– Get the size of the Display(s), only useful if there is one display
    –– otherwise it will grab the total size of both displays
    tell application "Finder"
    set _b to bounds of window of desktop
    set screen_width to item 3 of _b
    set screen_height to item 4 of _b
    end tell
    tell application "System Events"
    set allProcesses to application processes
    set _results to ""
    repeat with i from 1 to count allProcesses
    set doIt to 1
    repeat with z from 1 to count processesToIgnore
    if process i = process (item z of processesToIgnore) then
    set doIt to 0
    end if
    end repeat
    if doIt = 1 then
    tell process i
    repeat with x from 1 to (count windows)
    set winPos to position of window x
    set _x to item 1 of winPos
    set _y to item 2 of winPos
    if (_x < 0 or _y < 0 or _x > screen_width or _y > screen_height) then
    set position of window x to {0, 22}
    end if
    end repeat
    end tell
    end if
    end repeat
    end tell
    </pre>

  • BDC for pop up dialog box.....

    Hi Experts,
                 I need urgent help in BDC.
    I want to handle BDC for the pop up dialog box.
    Please help.

    hi
    can u he a bit clear

  • The pop-up dialog box, such as on Facebook, is truncated. It chops off the command buttons.

    The pop-up dialog boxes, such as those on Facebook, are truncated. The boxes are 1/2 of normal size with the bottom 1/2 gone, including the command buttons, making it useless. Since yesterday evening, ALL dialog boxes on Facebook and Zynga are affected. I can't post anything from the pop-up boxes.
    == This happened ==
    Every time Firefox opened
    == yesterday evening

    Reset the page zoom on pages that cause problems: '''View > Zoom > Reset''' (Ctrl+0 (zero); Cmd+0 on Mac)
    See [[Text Zoom]] and [[Page Zoom]] and http://kb.mozillazine.org/Zoom_text_of_web_pages

  • Open pop up dialog box

    I read on article i.e to create new pop up dialog box. We have to use launchListener"#{backing_bean.handleLaunch}" to pass parameter to corresponding pop up dialog box.
    Anyway I tried to do the same job declaratively by using setActionListener instead of launchListener. The pop up dialog box gets the passed parameter using EL #{prossesScope.param} And it works.
    Is this fine technique or not recommended at all?
    Regards
    Eric H

    Hi,
    its fine as well. As soon as the dialog is opened the process scope becomes accessible. With multiple parameters you will however find it more convenient to use the launch listener as describe in
    http://download-uk.oracle.com/docs/html/B25947_01/web_complex003.htm#CEGDAHEA
    because a setActionListener can only set one parameter at a time
    Frank

  • Confirmation Pop up dialog box

    Hi All,
    I want a pop up dialog box to be open on click of my create button asking "whether you want to submit the page"
    Need help
    Regards

    Hi Trent
    I have a create button. On the button optional URL target section, changes the Target as URL and the URL Target as
    javascript:apex.confirm('Are you sure you want to submit?', 'CREATE');
    I tried with this even
    javascript:apex.confirm('Are you sure you want to submit?', 'SUBMIT');
    But in both the cases the funtion is not calling.
    Regards

  • Please help!! How to communicate between applet and pop up dialog box

    Hi friend,
    I have done a AWT pop up dialog box from Applet. In this pop up dialog box, I want get user name, and display on an Applet, anyone can tell me how to do? Thanks a lot!!!!
    Alva

    You need to create two methods in your applet, getName and setName as well as a name field.
    private name = "";
    public void setName(String n)
        name = n;
    public void getName()
        return name;
    }The various constructor methods for Dialog already take the owner of the Dialog (your applet) as a parameter, so in your applet's ActionEvent handler, all you have to do is call
        name = textName.getText().trim();
        owner.setName(name);Yes, it's that easy.

  • File format in pop up dialog box in table control

    Hi All,
    I am using a popup dialog box on user command click in table control. I have to fix the file format to '.CSV' format only from the selection, how to fix this. The FM is 'KD_GET_FILENAME_ON_F4'. Is there any other FM ?
    Regards
    Gajendra

    Hi,
    To implement general checks in SRM,you can use BADI "BBP_DOC_CHECK_BADI".But the messages will not come in form of POP UPS.To display messages in the form of Pop up ,you need to implement both the BADI's BBP_DOC_CHANGE_BADI and BBP_DOC_CHECK_BADI.
    For sample code,refer the foll link:
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/srm/bbp_doc_check_badi-CheckPurchasingDocument&
    BR,
    Disha.
    DO reward points for useful answers.

  • Best Way to Pop-Up Dialog Box Based on Form Data

    Hi,
    I'm using InfoPath 2010 to create a submission form in SharePoint 2010.  During the form submission process I'd like to pop up a dialog box if the difference between today's date and the service request date (which is provided by the user) is less than
    7 days.  The user only has to acknowledge the dialog box.  What is the best way to accomplish this?
    Thanks,
    Kevin

    Hi,
    What is the kind of your form : InfoPath (with InfoPath client on the machine) or InfoPath Form Services (web browser)?
    Is this is a an InfoPath form, you can add an action on a button of type "Show message". You can add too a condition on this.
    If you use InfoPath Form Services, there is two solution:
    - Use managed code to call an alert javascript where you respect your condition,
    - Create a new InfoPath View with the message and add an action "swith view" when you click on the button if you respect your condition.
    Hope this help.
    HI! Could you clarify please, how the 'Switch view' action could be called? I don't see such an option within Rules setup at Infopath 2010.

  • Can't get rid of power point dialog box even though checked "don't ask again".

    Using a Mac. Opening a link to Power Point slides -- get message--"You have chosen to open etc. I have checked the box that says "do this automatically for files like this from now on" -- but it never does. I still have to click OK.
    How can I get rid of this dialog box. I've checked in settings and preferences to open with Microsoft Power Point.
    thanks

    See [/tiki-view_forum_thread.php?forumId=1&comments_parentId=625704]
    [https://bugzilla.mozilla.org/show_bug.cgi?id=567552 Bug 567552] - Fonts on External drive are activated by Firefox, and preference to not ask again is ignored
    please do not comment in bug reports

  • How to Handle a Login pop up dialog box through VBScript?

    Login Dialog box is getting Popped up from the web page for logging into website. In order to automate this how could i login using VBScript??

    http://serverfault.com/questions/371907/can-you-pass-user-pass-for-http-basic-authentication-in-url-parameters
    ¯\_(ツ)_/¯

Maybe you are looking for

  • FM to get table names for a given Apllication Component.

    Hai Friends, I have to create a function module which functions exactly as the INFORMATION SYSTEM button in se16 table help. i have written something like this but this is not giving exact results as INFORMATION SYSTEM IN SE16. for ex.  for componet

  • How can I associate an A/P invoice to a service call?

    Hi, Customer wants this: 1. They (Co. A) gets a service call from their customer say for lump sum of 400 dollars. 2. They (Co. A)  give out a contract to technician say at 45 dollars an hours and travel expenses. This is SERVICE ITEM for a total expe

  • Html link to specific photo in flash web export

    I want to send someone links to specific images in my flash web export. I know I can direct them to the source image file, but I want them to see it in the flash export interface. Is there a way I can make a duplicate copy of the index.html and edit

  • Late 2013 Macbook Pro /Mavericks iSight issues

    When I select camera in System Report I get: "There was an error while scanning for video capture devices." However, both Skype and FaceTime can connect to the camera, but other apps, mainly Max cannot. I realise there are other threads relating to s

  • Accessing peripheral devices using NetWeaver Mobile 7.1 application

    Hi, I'm developing an occasionally connected application for handheld devices using NetWeaver Mobile 7.1. From my application how can I access other peripheral devices (for example: WebCam) to capture the pictures. Suggest me the ways to access the p