Display JOptionPane dialob box is displayed in the corners of the screen

Hi,
Iam using JOptionPane to display warning messages and error messages in the application.When i started testing my application in Win 98 and Windows XP the JOptionPane Dialog box is displayed in the bottom corners of the screen.is it possible to display the JOptionPane window in a particular position by setting the cordinates?
Anyone has any idea?
Pls Reply,
Ravi

If you use the "show" methods to display one of the default dialogs, providing a component should center the dialog on that component if it is visible.
If you are constructing a JOptionPane, you can use setLocationRelativeTo to center the dialog on a component or your app.
Or if you really want to play with raw numbers, use setLocation

Similar Messages

  • Firefox will not display on the screen even though with Process Explorer I see Firefox.exe active but no CPU usage

    I use Firefox v10.0.2 as default browser on Dell XPS8300 e/w Intel Core i5 & Windows 7 Ultimate and Compaq Presario CQ57 e/w Intel Core i3 & Windows 7 Home. More frequently on the (about 90% of attempts) than the Dell (50% of attempts) Firefox will not display to the screen when I click on icon. When it happens I cannot display other programs. I specifically say display because I believe Firefox has started. To circumvent the problem I installed Process Explorer on both machines and start this program first then click on Firefox icon. When problem occurs I can see Firefox.exe process in Process list; some CPU consumed but, then, no CPU activity. If I click on Firefox icon again another process opens in Process list but with same response - some CPU consumed and then no CPU activity. If I have 2 processes running and kill the 1st process, the 2nd will display and everything from then on is normal. If I do not open a 2nd process but kill the 1st process then click on Firefox icon Firefox is displayed and everything from then on is normal. This problem has occurred since original installation on both new machines. I've updated video drivers in both machines.

    Ok, let's see if we can fix this and get it working for you!
    First, if you start Firefox in [[safe mode|safe mode]] (restart your computer first, then when you open Firefox, hold down the shift key) does it start up more reliably? This is usually caused by a faulty add-on. If it does help, then restart Firefox, go into the Firefox button, then add-ons, and disable your extensions one by one until you find the trouble maker.
    Also, try updating to Firefox 11, it has several bug fixes that might make life easier here.
    Just as a few basic troubleshooting steps to make sure we have all the bases covered,
    Run all Windows Updates, install all needed service packs, etc.
    Update all your plugins (Flash, Java, etc.): [http://www.mozilla.org/plugincheck/ http://www.mozilla.org/plugincheck/].
    Download and Install MalwareBytes Anti-Malware, run a full Scan. [http://www.malwarebytes.org/ http://www.malwarebytes.org/]. This helps check that there are no viruses on your computer causing issues. you can uninstall this program after you clean off any infections.

  • Problem in the code while fetching records and displaying in the screen

    Hi,
       I have developed a screen which is having various fields, all the records are stored in a ztable,when i enter the records into various i/o fields and press submit pushbutton they are stored in the table now, what i wont is when i enter one record the (primary one) and press enter the corresponding records of that record should be shown in the i/o fields means they should be fetched back from the d/b table and displayed on the screen. For this i Have written a code please see it once.
    TABLES : ZFISALDT.
    DATA ITAB LIKE ZFISALDT OCCURS 0 WITH HEADER LINE.
    ZFISALDT-BILLINGDOCU = ITAB-BILLINGDOCU.
    ZFISALDT-SALESDOCU = ITAB-SALESDOCU.
    ZFISALDT-FORM402 = ITAB-FORM402.
    ZFISALDT-SALESTAXFORM = ITAB-SALESTAXFORM.
    ZFISALDT-FREIGHTDOCNO = ITAB-FREIGHTDOCNO.
    ZFISALDT-FPARTYNAME = ITAB-FPARTYNAME.
    *&      Module  STATUS_5555  OUTPUT
          text
    MODULE STATUS_5555 OUTPUT.
      SET PF-STATUS 'SALALL'.
      SET TITLEBAR 'SAL'.
    ENDMODULE.                 " STATUS_5555  OUTPUT
    *&      Module  USER_COMMAND_5555  INPUT
          text
    MODULE USER_COMMAND_5555 INPUT.
    CASE SY-UCOMM.
    WHEN 'BACK'.
    LEAVE TO SCREEN 0.
    WHEN 'SUB'.
    IF ZFISALDT-BILLINGDOCU = ' '
    OR ZFISALDT-SALESDOCU = ' '.
    MESSAGE 'PLEASE FIRST SUBMIT THE BILLING DOCUMENT NO AND SALES DOCUMENT NO' TYPE 'E'.
    ENDIF.
    ZFISALDT-BILLINGDOCU = ZFISALDT-BILLINGDOCU.
    ZFISALDT-SALESDOCU = ZFISALDT-SALESDOCU.
    ZFISALDT-FORM402 = ZFISALDT-FORM402.
    ZFISALDT-SALESTAXFORM = ZFISALDT-SALESTAXFORM.
    *ZFISALDT-FREIGHTDOCNO = ZFISALDT-FREIGHTDOCNO.
    *ZFISALDT-FPARTYNAME = ZFISALDT-FPARTYNAME.
    *SUBMIT ITAB.
    WHEN ' '.   (THIS THE PART OF CODE WHICH IS NOT WORKING)
    SELECT * FROM ZFISALDT INTO corresponding fields of TABLE ITAB WHERE BILLINGDOCU = ZFISALDT-BILLINGDOCU.
    ITAB-BILLINGDOCU = ZFISALDT-BILLINGDOCU.
    ITAB-SALESDOCU = ZFISALDT-SALESDOCU.
    ITAB-FORM402 = ZFISALDT-FORM402.
    *ZFISALDT-BILLINGDOCU = ITAB-BILLINGDOCU.
    *ZFISALDT-BILLINGDOCU = ITAB-BILLINGDOCU.
    *ZFISALDT-SALESDOCU = ITAB-SALESDOCU.
    *ZFISALDT-FORM402 = ITAB-FORM402.
    *ZFISALDT-SALESTAXFORM = ITAB-SALESTAXFORM.
    append ITAB.                                                      (ALSO USED INSERT BUT NOT WORKING)
    WHEN 'ENTER'.
    IF ZFISALDT-BILLINGDOCU = ' '
    OR ZFISALDT-SALESDOCU = ' '.
    MESSAGE 'PLEASE FIRST SUBMIT THE BILLING DOCUMENT NO AND SALES DOCUMENT NO' TYPE 'E'.
    ENDIF.
    ZFISALDT-FREIGHTDOCNO = ZFISALDT-FREIGHTDOCNO.
    ZFISALDT-FPARTYNAME = ZFISALDT-FPARTYNAME.
    ZFISALDT-FREIGHTBILLNO = ZFISALDT-FREIGHTBILLNO.
    ZFISALDT-FREIGHTDATE = ZFISALDT-FREIGHTDATE.
    ZFISALDT-TRUCKNO = ZFISALDT-TRUCKNO.
    ZFISALDT-FREIGHTAMOUNT = ZFISALDT-FREIGHTAMOUNT.
    ZFISALDT-COMNAGBILL = ZFISALDT-COMNAGBILL.
    ZFISALDT-AGENTNAME = ZFISALDT-AGENTNAME.
    ZFISALDT-CAGDATE = ZFISALDT-CAGDATE.
    ZFISALDT-CMNAGAMOUNT = ZFISALDT-CMNAGAMOUNT.
    ZFISALDT-SHIPMENTNAME = ZFISALDT-SHIPMENTNAME.
    ZFISALDT-SHIPDOCUNO = ZFISALDT-SHIPDOCUNO.
    ZFISALDT-SHIPBILLNO = ZFISALDT-SHIPBILLNO.
    ZFISALDT-SHIPBILLDATE = ZFISALDT-SHIPBILLDATE.
    ZFISALDT-BLNOGOV = ZFISALDT-BLNOGOV.
    ZFISALDT-CHAAGENTNAME = ZFISALDT-CHAAGENTNAME.
    ZFISALDT-CHABILL = ZFISALDT-CHABILL.
    ZFISALDT-CHADATE = ZFISALDT-CHADATE.
    ZFISALDT-CHAAMOUNT = ZFISALDT-CHAAMOUNT.
    ZFISALDT-B_L_NO = ZFISALDT-B_L_NO.
    ZFISALDT-B_L_NODATE = ZFISALDT-B_L_NODATE.
    ZFISALDT-DEPBLICNO = ZFISALDT-DEPBLICNO.
    ZFISALDT-LICENCE_DATE = ZFISALDT-LICENCE_DATE.
    ZFISALDT-FOC_VALUE = ZFISALDT-FOC_VALUE.
    ZFISALDT-DEPB_VALUE = ZFISALDT-DEPB_VALUE.
    INSERT ZFISALDT.
    CLEAR ZFISALDT.
    ENDCASE.
    ENDMODULE.                 " USER_COMMAND_5555  INPUT
    This is the code please check it once.
    Thanks in advance.

    Hi Sumeet.
    WHEN ' '.  " (THIS THE PART OF CODE WHICH IS NOT WORKING)
    SELECT * FROM ZFISALDT INTO corresponding fields of TABLE ITAB WHERE BILLINGDOCU = ZFISALDT-BILLINGDOCU.     
    " here in where condition u r checking with ZFISALDT-BILLINGDOCU, i guess there is no value in that, Once check in debugging mode and proceed further.
    Regards,
    Aby

  • I would like to share my ipad on my Windows machine. I got the Ipad to HDMI adaptor but nothing is displayed on the screen... Do I need any additional softwares?

    I would like to share my ipad on my Windows machine. I got the Ipad to HDMI adaptor but nothing is displayed on the screen... Do I need any additional softwares?
    Actually I would like to have the Ipad connected to pc and then run an application on the ipad (which is shown on my windows machine) and record it on the windows machine... Is this feasible?

    If you have an HDMI connection on your computer, it is most likely an output, it won't recieve a signal unless it's on a video capture card. Recording to the PC could be a difficlut task. HDMI is encrypted to keep you from copying but there are ways to do it. It would also depend on what content you intended on recording. If it's movies you have purchased or rented, it would be illegal.

  • My Contacts program opens but doesn't display on the screen (it appears to be off above the top right hand corner).

    My Contacts program appears to open, but doesn't display on the screen (it appears to be sitting just above the top right hand corner). any suggestions on how to get it back?

    Launch Contacts, then on the "Window" menu select "Zoom". That should maximise the window and give you access to the bottom-right corner where you can resize it, and the bar at the top which you can drag around.

  • Stupid question: my top 'dock' is not displayed on the screen. How do I get it back and what is it called?

    Stupid question: my top 'dock' is not displayed on the screen. How do I get it back and what is it called? It's just annoying that I have to reach high for it!

    Menu bar. Are you in Full Screen Mode?
    OS X Mavericks: Take apps full screen
    In all apps?

  • Vertical blue line is displaying on the screen.

    In my iphone4 the vertical blue line is displaying on the screen.please provide the solution.
    the running ios is 6.1.3.

    If your iPod Touch, iPhone, or iPad is Broken
    Apple does not fix iDevices. Instead, they exchange yours for a refurbished or new replacement depending upon the age of your device and refurbished inventories. On rare occasions when there are no longer refurbished units for your older model, they may replace it with the next newer model.
    ATTN: Beginning July 2013 Apple Stores are now equipped to do screen repairs/replacements in-house on iPhone 5s. In some cases while you wait. According to Apple this is the beginning of equipping Apple Stores with the resources needed to do most repairs for iPhones, iPads, and iPod Touches that would not require major replacements. Later in the year the services may be extended as Apple Stores become equipped and staffed with the proper repair expertise. So, if you need a screen repaired or a broken screen replaced or have your stuck Home button fixed, call your local Apple Store to see if they are now doing these in-house.
    You may take your device to an Apple retailer for help or you may call Customer Service and arrange to send your device to Apple:
    Apple Store Customer Service at 1-800-676-2775 or visit online Help for more information.
    To contact product and tech support: Contacting Apple for support and service - this includes international calling numbers.
    iPod Service Support and Costs
    iPhone Service Support and Costs
    iPad Service Support and Costs
    There are third-party firms that do repairs on iDevices, and there are places where you can order parts to DIY if you feel up to the task:
    1. iResq or Google for others.
    2. Buy and replace screen yourself: iFixit

  • HT201401 cannot open the menu and cannot even turn it off, the white apple image is displayed on the screen. how can i get into the menu?

    cannot open the menu and cannot even turn it off, the white apple image is displayed on the screen. how can i get into the menu?

    Hold down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple logo appears - ignore the red slider.

  • Electrical noise when a white background is displayed on the screen

    My iMac 27 mid-2010 got the LCD and graphics card replaced recently, due to the infamous dark spots on the display and some other video problems (vertical dotted lines on the screen).
    Those issues are fixed, but now I have a new problem that didn't exist before the repair:
    There is an annoying high-pitched electrical noise, but only when a white background is displayed on the screen. For example: When I open a blank page in Safari, the noise comes up. If I switch to another tab with a black background web page, the noise disappears.
    The noise is perfectly noticeable, and very annoying, when using the computer in a silent room. It is not related to display brightness, since it's always there no matter what brightness level I set.
    The Genius in the local Apple Store was able to hear it, so it's not a problem of perception. But he could neither find the cause nor solve the issue, so he returned the computer to me, with a vague 'its a normal noise, maybe caused by the CPU or the graphics card when they have to display white backgrounds'.
    Well, the thing is, this noise wasn't there before the LCD/graphics card replacement. I'm pretty sure about it, since I have been using this computer in a daily basis for the past two years and I know each and every noise that comes out of it.
    I would like to ask if any of you know of this problem. I've done a lot of searching in the internet, but couldn't find anything about this noise in particular.
    Thanks,
    Miguel

    Hi, thanks for your suggestion.
    Unfortunately, they have made up their mind about this issue. I even talked to the Store Manager, asking for a solution, but he pretty much ignored me saying he had full confidence in his team: if the genius says the noise is 'normal', then there's nothing more to discuss. Full stop.
    They just replaced a fan, which didn't solve anything, because the noise is clearly electrical in nature, NOT mechanical. I suspect it's related to capacitor resonance in the graphics card. The display and LED backlight panel seem to be OK, since the noise is not heard when I use the mac in target display mode via the mini-displayport input.
    I gave them this information in order to help with the diagnosis, but they didn't even bother to write it down.
    So far, the Apple Technical service seems very un-professional to me. I'm stuck with a defective computer for which I've paid 2.000 euros + Apple Care.
    Well, in this case, Apple doesn't Care at all. I can't even find an email address where I can submit a written formal complain.
    (Sorry for the rant)

  • Apple iPAD 2.  Needs password to unlock iPAD; however there is a permanent keyboard displayed on the screen that does not respond to touch. iPAD switches on with button but does not turn off using it at moment.  Can you help please?

    Apple iPAD 2.  Needs password to unlock iPAD; however there is a permanent keyboard displayed on the screen that does not respond to touch. iPAD switches on with button but does not turn off using it at moment.  Can you help please?

    Try a reboot by holding both the power and home buttons until the apple logo appears, ignore the red slider if that appears.  See if that clears the glitch.

  • Is there a way to make iPhone speak what is displayed on the screen, with a simple click?

    is there a way to make iPhone speak what is displayed on the screen, with a simple click? Instead of going through the Accessibility and VoiceOver feature. This will be very useful if I am driving, or tired of reading from the screen, or watching other stuff ... thanks

    No.
    What is available via Accessibility settings is it.

  • Pavilion p6228p-b desktop keeps turning on and off but no display on the screen

    I've been having problems with my computer since i bought a new video card. Therefore, I decide to take it off the computer and work with the one that was originally installed. On the process of taking the video card off i decide to clean it also. No chemicals or even water, pressure air alone. Ever since, I haven't been able to turn the computer on properly. The computer turn on and like a minute later it turns off automatically, and it continues doing this until i disconnect it. The power button alone won't turn the computer off. In all this process there is no display on the screen at all. By the way, the screen works fine. Can anyone help me?

    on the hp site for your machine there are some updates for bios and utilities....this may help. all in all i think these machines are coming to their use by date and i myself am researching a new machine. my ol'banger may go at anytime...

  • I have the iPad with retina display and the screen is cracked, however it is not yet a year old, how much does it cost to replace it

    I have the iPad with retina display and the screen is cracked, however it is not yet a year old, how much does it cost to replace it?

    I don't know what country that you are in, but in the US the price for repair (i.e. replacement) is (from here) $299 for the iPad 3, and  here in the UK (from here) £256.44

  • When I watch slide show through my Apple TV version 6..2 the air play instruction box appears always on the screen and hides the photo. Is there any way to stop it.

    When I watch slide show through my Apple TV version 6..2 the air play instruction box appears always on the screen and hides the photo. Is there any way to stop it.

    Hi Sujatha vijay,
    It sounds as if your Apple TV is in Conference Room Display mode. You will need to turn this off. See this article -
    Apple TV (2nd and 3rd generation): Understanding AirPlay settings
    http://support.apple.com/kb/HT5517
    Thanks for using Apple Support Communities.
    Best,
    Brett L

  • My mac keeps highlighting different boxes all the time and a text box has appeared on the screen that says what box is highlighted if the sound is turned up when you press a key or click on a box you are informed of the action any ideas what i can do?

    Hi my Mac keeps highlighting different action boxes (on its own) all the time a strange text box has appeared on the screen that informs you if you press a key or click on a item. if the sound is turned up you are informed when a item is highlighted or a you click on a item HELP!

    Hi Thanks for your help fixed the problem
    Kind Regards
    Nannedee

  • A text like box has appeared on the screen of iphone and have to double click everything also it will not scroll down or across how can I fix this?

    A text like box has appeared on the screen of my iphoe and this has to be over the app I want to use.  I then have to double click on the icon for it to open.  I cannot scroll across or down.  I can access the apps but because it will not scroll I cannot access all of the screen. Can nayone help please???

    It sounds like VoiceOver is partially on.  First try triple pushing the Home button.  This may turn VoiceOver off.  If that doesn't work going to Settings/General/Accessibility and make sure VoiceOver is Off.  Note you may have to use 3 fingers on the screen to scroll.

Maybe you are looking for

  • Problem with Autostorage DB2 9.1 - NW2004s

    Hello guys, I had a problem with my DB. My database is with autostorage but a problem arose a few months ago. SAPDATA1 is not written anymore. I can't explain why it's occuring this but DB is growing without writing in SAPDATA1. I want to solve this

  • PcSync2.SML file grows too big with Outlook calend...

    My problem is that file PcSync2.SML grows way too big when I am synchronizing Outlook calendar information with my N95 phone. In first synchronization time PcSync2.SML file size is about 8MB, second synchronization gives additional 3MB, altogether ~1

  • Hi. Can use events to look out for input switches from any DAQ board?

    I tried using events to detect signals from input switches Advantech PCL-8181L, but it seems no response. I have read an article about the events that user controls can trigger and some external IO cannot. Is there any one know how I can get the prog

  • Reds too saturated

    Hi, Any ideas please? I'm thinking of buying the tablet z2, which is gorgeous (!) but have a problem. Can the saturation of the reds be turned down? I have tried adjusting the white balance and turning off the x-reality for mobile, but the reds are s

  • !!!!!!!!!   what's goin on with my rset.next() ???????

    - the ff. is a code sniffet from my program: -- it runs perfectly every time I run it using the command line, BUT when i tried to put it on the Tomcat.... my rset.next() returns false -- all my DB drivers are already installed in the Tomcat -- i'm us