Problem in Displaying JOptionpane Message Dialog (JRE 1.5.0_04 or later)

Hi! All,
I am getting a deadlock kind a situation while displaying JOptionpane message dialog. It's very rare to simulate also. I am also posting the Thread dump which i have taken programmatically, when this situation arises.
For your Information, I am using JRE 1.5.0_04 or later version on Windows XP.
We searched on Java.sun.com site, & we got that two bugs are related to our problem, but there are arises in JRE 1.4.2 or before version & have been fixed at JRE 1.5 .
Follwing are the bugs ID in Sun Bugs Database: 4978089, 4828019.
Can anyone suggest me which is the stable JRE 1.5 version to avoid this problem. Also can anyone suggest me the workaround of this problem. I want to fix this in our application ASAP.
following is My Thread Dump :
Thread[Finalizer,8,system]
     java.lang.Object.wait(Native Method)
     java.lang.ref.ReferenceQueue.remove(Unknown Source)
     java.lang.ref.ReferenceQueue.remove(Unknown Source)
     java.lang.ref.Finalizer$FinalizerThread.run(Unknown Source)
Thread[Java2D Disposer,10,javawsApplicationThreadGroup]
     java.lang.Object.wait(Native Method)
     java.lang.ref.ReferenceQueue.remove(Unknown Source)
     java.lang.ref.ReferenceQueue.remove(Unknown Source)
     sun.java2d.Disposer.run(Unknown Source)
     java.lang.Thread.run(Unknown Source)
Thread[JCIL_Sess(813251)_EvtThd(24880015),5,main]
     java.lang.Object.wait(Native Method)
     java.lang.Object.wait(Unknown Source)
     java.awt.EventQueue.invokeAndWait(Unknown Source)
     javax.swing.SwingUtilities.invokeAndWait(Unknown Source)
     in.co.netsol.telecom.desktop.CallAppearanceTable$EventAdapter.OnCallEstablished(CallAppearanceTable.java:982)
     in.co.netsol.telecom.ctios.events.EventSinkAdapter.OnEvent(EventSinkAdapter.java:142)
     com.cisco.cti.ctios.cil.EventPublisher.PostEvent(EventPublisher.java:175)
     com.cisco.cti.ctios.cil.EventPublisher.FireEvent(EventPublisher.java:142)
     com.cisco.cti.ctios.cil.CtiOsSession.FireEvent(CtiOsSession.java:1849)
     com.cisco.cti.ctios.cil.Call.FireEvent(Call.java:254)
     com.cisco.cti.ctios.cil.Call.OnCallEstablishedEvent(Call.java:1136)
     com.cisco.cti.ctios.cil.Call.OnEvent(Call.java:943)
     com.cisco.cti.ctios.cil.CtiOsSession.OnEvent(CtiOsSession.java:2107)
     com.cisco.cti.ctios.cil.CilServiceEvent.ReceiverThread(CilServiceEvent.java:256)
     com.cisco.cti.ctios.cil.CilServiceEvent$1.run(CilServiceEvent.java:173)
Thread[pool-1-thread-5,5,main]
     java.lang.Object.wait(Native Method)
     java.lang.Object.wait(Unknown Source)
     java.awt.EventQueue.invokeAndWait(Unknown Source)
     javax.swing.SwingUtilities.invokeAndWait(Unknown Source)
     in.co.netsol.telecom.desktop.command.MakeAgentReadyCommand$EventAdapter$1.run(MakeAgentReadyCommand.java:190)
     java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
     java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
     java.lang.Thread.run(Unknown Source)
Thread[DestroyJavaVM,5,main]
Thread[AWT-Shutdown,5,javawsApplicationThreadGroup]
     java.lang.Object.wait(Native Method)
     java.lang.Object.wait(Unknown Source)
     sun.awt.AWTAutoShutdown.run(Unknown Source)
     java.lang.Thread.run(Unknown Source)
Thread[JCIL_Conn(18096534)_Watchdog,5,main]
     java.lang.Object.wait(Native Method)
     com.cisco.cti.ctios.util.UnNamedEvent.WaitForSingleObject(UnNamedEvent.java:147)
     com.cisco.cti.ctios.cil.CilConnection.WatchdogThread(CilConnection.java:527)
     com.cisco.cti.ctios.cil.CilConnection$1.run(CilConnection.java:1071)
Thread[AWT-EventQueue-0,6,main]
     java.awt.Container.getComponents_NoClientCode(Unknown Source)
     java.awt.Container.getComponents(Unknown Source)
     javax.swing.JToolBar.getComponentAtIndex(Unknown Source)
     javax.swing.plaf.basic.BasicToolBarUI.navigateFocusedComp(Unknown Source)
     javax.swing.plaf.basic.BasicToolBarUI$Actions.actionPerformed(Unknown Source)
     javax.swing.SwingUtilities.notifyAction(Unknown Source)
     javax.swing.JComponent.processKeyBinding(Unknown Source)
     javax.swing.JComponent.processKeyBindings(Unknown Source)
     javax.swing.SwingUtilities.processKeyBindings(Unknown Source)
     javax.swing.UIManager$2.postProcessKeyEvent(Unknown Source)
     java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown Source)
     java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown Source)
     java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown Source)
     java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source)
     java.awt.Component.dispatchEventImpl(Unknown Source)
     java.awt.Container.dispatchEventImpl(Unknown Source)
     java.awt.Window.dispatchEventImpl(Unknown Source)
     java.awt.Component.dispatchEvent(Unknown Source)
     java.awt.EventQueue.dispatchEvent(Unknown Source)
     java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
     java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
     java.awt.EventDispatchThread.pumpEvents(Unknown Source)
     java.awt.EventDispatchThread.pumpEvents(Unknown Source)
     java.awt.EventDispatchThread.run(Unknown Source)
Thread[AWT-Windows,6,main]
     sun.awt.windows.WToolkit.eventLoop(Native Method)
     sun.awt.windows.WToolkit.run(Unknown Source)
     java.lang.Thread.run(Unknown Source)
Thread[Timer-0,5,javawsApplicationThreadGroup]
     java.lang.Thread.dumpThreads(Native Method)
     java.lang.Thread.getAllStackTraces(Unknown Source)
     in.co.netsol.telecom.log.ThreadDumpLoggingTask.getStackTraces(ThreadDumpLoggingTask.java:47)
     in.co.netsol.telecom.log.ThreadDumpLoggingTask.run(ThreadDumpLoggingTask.java:36)
     java.util.TimerThread.mainLoop(Unknown Source)
     java.util.TimerThread.run(Unknown Source)
Thread[JCIL_Conn(18096534)_Rcvr,5,main]
     java.net.SocketInputStream.socketRead0(Native Method)
     java.net.SocketInputStream.read(Unknown Source)
     com.cisco.cti.ctios.cil.NetPort.ReceiveData(NetPort.java:405)
     com.cisco.cti.ctios.cil.NetPort.ReceiveData(NetPort.java:363)
     com.cisco.cti.ctios.cil.CilPacket.ReadFromPort(CilPacket.java:649)
     com.cisco.cti.ctios.cil.CilConnection.ReadPacket(CilConnection.java:670)
     com.cisco.cti.ctios.cil.Connection.ReceiverThread(Connection.java:398)
     com.cisco.cti.ctios.cil.Connection$1.run(Connection.java:472)
Thread[pool-1-thread-2,5,main]
     java.lang.Object.wait(Native Method)
     java.lang.Object.wait(Unknown Source)
     java.awt.EventQueue.invokeAndWait(Unknown Source)
     javax.swing.SwingUtilities.invokeAndWait(Unknown Source)
     in.co.netsol.telecom.desktop.command.SupervisorAssistCommand$EventAdapter$1.run(SupervisorAssistCommand.java:152)
     java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
     java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
     java.lang.Thread.run(Unknown Source)
Thread[pool-1-thread-1,5,main]
     java.lang.Object.wait(Native Method)
     java.lang.Object.wait(Unknown Source)
     java.awt.EventQueue.invokeAndWait(Unknown Source)
     javax.swing.SwingUtilities.invokeAndWait(Unknown Source)
     in.co.netsol.telecom.desktop.command.ConferenceCallCommand$EventAdapter$1.run(ConferenceCallCommand.java:144)
     java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
     java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
     java.lang.Thread.run(Unknown Source)
Thread[JCIL_Svc(5450181)_TxQThd(3083604),5,main]
     java.lang.Object.wait(Native Method)
     java.lang.Object.wait(Unknown Source)
     com.cisco.cti.ctios.util.QueueThread.GetQItem(QueueThread.java:152)
     com.cisco.cti.ctios.util.QueueThread.run(QueueThread.java:259)
Thread[pool-2-thread-1,5,main]
     java.lang.Object.wait(Native Method)
     java.lang.Object.wait(Unknown Source)
     java.awt.Dialog.show(Unknown Source)
     javax.swing.JOptionPane.showOptionDialog(Unknown Source)
     javax.swing.JOptionPane.showMessageDialog(Unknown Source)
     javax.swing.JOptionPane.showMessageDialog(Unknown Source)
     in.co.netsol.telecom.desktop.DesktopMainPanel$3.run(DesktopMainPanel.java:1871)
     java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
     java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
     java.lang.Thread.run(Unknown Source)
Thread[Signal Dispatcher,9,system]
Thread[Reference Handler,10,system]
     java.lang.Object.wait(Native Method)
     java.lang.Object.wait(Unknown Source)
     java.lang.ref.Reference$ReferenceHandler.run(Unknown Source)
Thread[TimerQueue,5,javawsApplicationThreadGroup]
     java.lang.Object.wait(Native Method)
     javax.swing.TimerQueue.run(Unknown Source)
     java.lang.Thread.run(Unknown Source)
Thread[pool-1-thread-4,5,main]
     java.lang.Object.wait(Native Method)
     java.lang.Object.wait(Unknown Source)
     java.awt.EventQueue.invokeAndWait(Unknown Source)
     javax.swing.SwingUtilities.invokeAndWait(Unknown Source)
     in.co.netsol.telecom.desktop.command.MakeAgentNotReadyCommand$EventAdapter$1.run(MakeAgentNotReadyCommand.java:146)
     java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
     java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
     java.lang.Thread.run(Unknown Source)
Thread[pool-1-thread-6,5,main]
     java.lang.Object.wait(Native Method)
     java.lang.Object.wait(Unknown Source)
     java.awt.EventQueue.invokeAndWait(Unknown Source)
     javax.swing.SwingUtilities.invokeAndWait(Unknown Source)
     in.co.netsol.telecom.desktop.command.TransferCallCommand$EventAdapter$1.run(TransferCallCommand.java:136)
     java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
     java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
     java.lang.Thread.run(Unknown Source)
Thread[traceMsgQueueThread,5,main]
     java.lang.Object.wait(Native Method)
     java.lang.Object.wait(Unknown Source)
     com.sun.deploy.util.Trace$TraceMsgQueueChecker.run(Unknown Source)
     java.lang.Thread.run(Unknown Source)
Thread[pool-1-thread-3,5,main]
     java.lang.Object.wait(Native Method)
     java.lang.Object.wait(Unknown Source)
     java.awt.EventQueue.invokeAndWait(Unknown Source)
     javax.swing.SwingUtilities.invokeAndWait(Unknown Source)
     in.co.netsol.telecom.desktop.command.EmergencyCommand$EventAdapter$1.run(EmergencyCommand.java:146)
     java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
     java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
     java.lang.Thread.run(Unknown Source)
Thanks & Regards,
Pradeep Gupta

Update to the latest version 1.5.0_06 available from:
http://java.sun.com/j2se/1.5.0/download.jsp
It is advisable to remove previous version(s) installations unless required otherwise for a specfic application.

Similar Messages

  • How to display a message dialog box

    I need to know how to display a message box from my application.
    Anyone can help me?
    Thanks in advance

    Dear Zennen,
    Use JOptionPane.
    Ex
    JOptionPane.showMessageDialog(this,"message","title",JOptionPane.INFORMATION_MESSAGE); Thanks
    Joey

  • Problem with displaying warning message in exit EXIT_SAPMM06E_012

    Hi,
    I need in EXIT_SAPMM06E_012 exit display warning message.
    I've created klass Y0108MM_Z1 and message 000 in it.
    When i display as error message -> message e000(Y0108MM_Z1).
    everything is fine.
    but when use message w000(Y0108MM_Z1) it doesn't apear.
    Please help it is very important for me.
    Regards,
    Greg.
    Message was edited by:
            Grzegorz Skibinski

    Hi,
    I think message will appear.
    For testing please do from the main screen press Alt+F12 > options> options tab --> check " dialog box at warning message " and test your scenrio.
    Here warning message appear in a dialog box.

  • Problem while displaying popup message while using inputfile component

    Hi
    I am using JDEV 11.1.1.2.0, using ADF i developed and application
    in my page i have a input file component, from which i am taking a csv file and reading it through valuechangeevent of inputfile component. I have used myfaces.trinidad-UploadedFile to get the selected file and read it using inputstream.
    I have put some validation check (validation check is done while reading the file using valuechangeevent of the inputfile component), while reading the file and incase i receive any error (validation mismatch), the reading of file stops ... and before doing that i used to display error message using below method:-
    public String ValidationCheck(String attrname, String attrvalue, int rownumber) {
    String msg="Validation error found in "+attrname+" with value "+attrvalue+" of row "+rownumber+" in the file. Please correct the file and retry/";
    FacesContext ctx = getFacesContext();
    FacesMessage fm = new FacesMessage(FacesMessage.SEVERITY_ERROR, msg, "");
    ctx.addMessage(null,fm);
    return null;
    i have used the same method to display message in other places where its showing correctly but fails in inputfile component.
    Please help me out how can display messages from inputfile component??
    Thanks
    Sudeep
    Edited by: SKD on Feb 21, 2012 12:02 PM
    Edited by: SKD on Feb 21, 2012 4:08 PM
    Edited by: SKD on Feb 21, 2012 4:11 PM

    It works fine for me (albeit on 11.1.2.1). Here is my complete test case:
    FileUploadTest.jspx:
    <?xml version='1.0' encoding='UTF-8'?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <f:view xmlns:f="http://java.sun.com/jsf/core" xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
      <af:document title="FileUploadTest.jsf" id="d1">
        <af:form id="f1" usesUpload="true">
          <af:inputFile label="Label 1" id="if1" valueChangeListener="#{TestBean.vcl}"/>
          <af:commandButton text="commandButton 1" id="cb1"/>
        </af:form>
        <af:messages id="m1"/>
      </af:document>
    </f:view>TestBean.java:
    package view;
    import javax.faces.application.FacesMessage;
    import javax.faces.context.FacesContext;
    import javax.faces.event.ValueChangeEvent;
    import oracle.adf.share.logging.ADFLogger;
    public class TestBean
      private static final ADFLogger _LOG = ADFLogger.createADFLogger("view.TestBean");
      public TestBean()
      public void vcl(ValueChangeEvent valueChangeEvent)
        _LOG.severe("in the value change event");
        FacesContext ctx = FacesContext.getCurrentInstance();
        FacesMessage fm = new FacesMessage(FacesMessage.SEVERITY_ERROR, "This is a message", "Message");
        ctx.addMessage(null, fm);
    }adfc-config.xml:
    <?xml version="1.0" encoding="windows-1252" ?>
    <adfc-config xmlns="http://xmlns.oracle.com/adf/controller" version="1.2">
      <managed-bean id="__1">
        <managed-bean-name>TestBean</managed-bean-name>
        <managed-bean-class>view.TestBean</managed-bean-class>
        <managed-bean-scope>request</managed-bean-scope>
      </managed-bean>
    </adfc-config>John

  • JOptionPane Message Dialog is blank

    Hi!
    I posted this on JavaRanch, but they were stumped. I'm hoping that the Swing forum is the correct place to ask this.
    Here's the deal...I'm learning Java and am just typing in the code samples from my book. When I run the program below, I get a blank dialog titled "Message". My co-worker ran the same code on his machine and it ran fine. Do you guys have any suggestions on what might be wrong with my PC setup? We're using Java 1.4.2 here and I've reinstalled it twice, to no avail.
    import javax.swing.JOptionPane;
    public class Welcome4
    public static void main(String[] args)
    JOptionPane.showMessageDialog(null, "Welcome\nto\nJava\nProgramming!");
    System.exit(0);
    Thanks!

    I posted this on JavaRanchI'ts great that you've identified this as more of a follow-up post, but including the
    link would be better, so we can see what has been suggested/tried and failed,
    and perhaps work on alternatives.
    http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=2&t=014415
    is it all message boxes, or just the one?
    I have seen some graphic display problem questions solved by reducing the
    hardware acceleration (Control Panel)

  • PSCS4 encountered problem with display driver message

    G'day,
    On first opening PS CS4 I got this message," Photoshop has encountered a problem with the display driver, and has temporarily disabled GPU enhancements. Check the video card manufacturer's website for the latest software. GPU enhancements can be enabled in the Performance panel of Preferences."
    Anyone encountered this and know what it all means?
    I'm running a Power Mac G5 Quad 2.5 GHz, 4.5 GB with a GeForce 7800GT. OS is 10.4.11
    Thanks in advance for reading this and replying.

    Ann Shelbourne, "Recommendations sought for a GL Video card for a G5 Dual 2 GHz" #74, 1 Oct 2008 8:22 pm
    The "nVidia Quadro FX 4500 512MB Video Card Quad G5 PowerMac" should work in your Quad but it IS expensive:
    http://h18000.www1.hp.com/products/quickspecs/12319_na/12319_na.HTML

  • I cannot run You Tube Videos on my Apple Macbook Air MD760HN/B with OS X 10.9.4. the video window displays a message " An error occurred, Please try again later." Learn more. The screen is black with this message. There appears to be some setting problem?

    Macbook Air MD 760HN/B with OS X 10.9.4
    4 GB RAM, 1.4 Ghz intel Core i5
    Problem 1
    I.     On Youtube whenever I try to play a video, I get a message on a black screen "An Error Occurred, Please Try Again later. Learn More."
    2.   I think it is some setting problem, being a new mac user, I am unable to sort it out.
    Problem 2.
    How to select more than one file in a folder to copy or delete. like it can be done in Windows with shift Click together.
    if one has to select say, file 25 to file 37 in a folder with 75 files. select all (command A) works but I cannot select few continuous files.

    Macbook Air MD 760HN/B with OS X 10.9.4
    4 GB RAM, 1.4 Ghz intel Core i5
    Problem 1
    I.     On Youtube whenever I try to play a video, I get a message on a black screen "An Error Occurred, Please Try Again later. Learn More."
    2.   I think it is some setting problem, being a new mac user, I am unable to sort it out.
    Problem 2.
    How to select more than one file in a folder to copy or delete. like it can be done in Windows with shift Click together.
    if one has to select say, file 25 to file 37 in a folder with 75 files. select all (command A) works but I cannot select few continuous files.

  • Problem in Displaying  Confirmation message when (retain am=false)

    i have a scenario wherein after committing the records,i need to redirect to a new page,with the confirmation messages.but ,to avoid stale data erorr,i have to make "retain am" parametere as "false".
    now the messages are not thrown on the next page if the reatinam is false.
    any workaround

    In PFR:
    pagecontext.putParameter("SuccessMsg", "ALV_QA_NCR_CREATE_CONFIRM");
    pagecontext.putParameter("NcrNumber",Param_NcrNumber );
    pageContext.forwardImmediately("OA.jsp?page=/alv/oracle/apps/qa/ncr/webui/XXALVACTIONS_PG&OAHP=XXALV_QA_HOME&OASF=XXALV_QA_UPDATE_ACTIONS",
    null,
    OAWebBeanConstants.KEEP_MENU_CONTEXT,
    null,
    null,
    false, // Retain AM
    OAWebBeanConstants.ADD_BREAD_CRUMB_NO
    in PR of the new Page:
    String vMsg= pageContext.getParameter("SuccessMsg");
    if(vMsg!=null)
    Number ncrNum = (Number) pageContext.getParameter("NcrNumber");
    MessageToken[] tokens = { new MessageToken("NCRNO", Param_NcrNumber)};
    OAException confirmMessage = new OAException("QA", vMsg, tokens,
    OAException.CONFIRMATION, null);
    throw confirmMessage;
    Regards
    Sumit

  • Need help in makinga message dialog box dissapear automaticly

    hi i have the following code that displays a message dialog box that tells me when a user is online.
    how do i make it disapear automaticly after say, 5 seconds.on msn messenger a similar technique is used where when a user comes online, a message box appears stating who and then dissapears after a couple of seconds..
    i need this to work so that say if a user is away from the pc for such a given time, the message box will just pile up if loads of users have appeared online during the duration that the user was away from his pc..
    here is what i have
    JOptionPane.showMessageDialog(null, "error " + e.getMessage(), "Error", JOptionPane.ERROR_MESSAGE);

    U cant do that using a JOptionPane, use a JDialog instead.
    use dialog.setVisible(true);
    after this start a timertask which executes after 5 seconds and disposes the dialog

  • JRE 1.6. 0_01 is giving issues in message dialog box size

    Hi There,
    I am displaying message dialog for one of my web application. To resize the dialog automatically, I have set getPrefferedSize() property.
    This is working fine with JRE 1.5.0_11 and all lower version, even ok with 1.4.x. But if I am viewing the applet in a browser having JRE 1.6.0, dialog box size is automatically streatched. Height of the dialog box is increased automatically more than the desktop height. I can not view top & bottom area of the dialog box on my desktop.
    Please guide me why is this issue only with JRE 1.6.0 and what should I do to eliminate & resolve it.
    Thanks.

    Really? I thought all official versions would be downloadable through webstart. I'm curious why would Sun not make them available. Now I need to explain to my higher-ups why I promised to get webstart to automatically update all our user's JRE but now failed to make good. :-(
    Regarding the printing problem: With b105 the printouts would have text that is upside, mirrored and cropped. It was a total mess. The problem is reproducible. We manually upgraded some users to b106 and the problem disappeared completely. I think Sun fixed it in 106 but now the problem is getting all our users onto JRE b106.
    Java Webstart is supposed to do this for me but now it appears to be failing me big time.

  • Problems with message dialog

    import javax.swing.*;
    JFrame frame = new JFrame();
    JOptionPane.showMessageDialog(frame, "message');
    the only problem is that my message is too long for the dialog box, is there any way I can shrink the size of it, or perhaps stack the lines on top of each other within the same dialog box

    the html code did not work, it instead was just shown as part of the string. the program did not seperate it and break the line. any other suggestions???

  • JOptionPane show Message Dialog always on top found a Solution

    just thought of a solution for the age old java problem with message boxes / dialogs / input .
    It's funny when you google it you'll find like a million people asking for a solution but none or very few that gives an answer that works.
    this is probly not a new solution but i came up with this yesterday and thought i would "share".
    dunno why the java developers hasnt made a always on top function for this since there seems to be a very high demand for it.
    this hax will hopefully work at all times.
    hope google will find this thread, i searched for a solution yesterday and found none? which is surprising and im a pro googler too.
    import javax.swing.*;
    public class main{
         public static void main(String args[]){
              JFrame j=new JFrame();
              j.setAlwaysOnTop(true);
              j.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              j.setVisible(true);
              j.setVisible(false);
              JOptionPane.showMessageDialog(j,"hi");
              System.exit(0);
    }

    I didn't realize it was an "age old problem." The JOptionPane's showXXX methods just show an ordinary modal dialog. If you want to set the alwaysOnTop property of said dialog then you just need to obtain a reference and call the method in question.
    JOptionPane op = new JOptionPane("hi",JOptionPane.INFORMATION_MESSAGE);
    JDialog dialog = op.createDialog("Message Dialog");
    dialog.setAlwaysOnTop(true); //<-- this line
    dialog.setModal(true);
    dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
    dialog.setVisible(true);No need for an intermediate frame.

  • My mac has started displaying a message stating "You need to restart your computer".  Web says it's kind of kernel panic! Is this a hardware problem? Do i need to contact my distributor? please help..it annoys me very much..

    My mac has started displaying a message stating "You need to restart your computer".  Web says it's kind of kernel panic! Is this a hardware problem? Do i need to contact my distributor? please help..it annoys me very much..

    Hello welcome to the ASC user to user forums
    please see these support documents
    http://support.apple.com/kb/TS2570
    http://support.apple.com/kb/TS1440
    http://support.apple.com/kb/HT1455
    http://support.apple.com/kb/ht3964
    http://support.apple.com/kb/HT1379
    http://support.apple.com/kb/ht1379
    http://support.apple.com/kb/HT1509

  • Facing problem in displaying messages

    I am facing problem in displaying messages. After saving, success message is not displaying in destination page.
    Here is my code in save method in managed bean,
    cycleStatusViewObject = setNewDayDelegator.setNewDay(cycleType, valuationInformationBO);
    SetNewDayStatusBean setNewDayStatusBean = new SetNewDayStatusBean();
    setNewDayStatusBean.setCycleStatusViewObject(cycleStatusViewObject);
    message = "Current Valuation Day for domestic has been saved";
    FacesContext currentInstance = FacesContext.getCurrentInstance();
    FacesMessage facesMessage = new FacesMessage(FacesMessage.SEVERITY_INFO, message, "");
    currentInstance.addMessage("",facesMessage);
    NavigationHandler nh = currentInstance.getApplication().getNavigationHandler();
    nh.handleNavigation(currentInstance, null, "setNewDayStatus");
    Entry in faces-config.xml,
    <navigation-case>
    <from-outcome>setNewDayStatus</from-outcome>
    <to-view-id>/setnewdaystatus.jsp</to-view-id>
    <redirect/>
    </navigation-case>
    Assigned message in not displaying in my destination page setnewdaystatus.jsp.
    Anyone help me to sole this issue.............

    Remove the redirect from the navigation case. Or implement a PhaseListener which saves any FacesMessages for the next request.

  • Problem with system error messages display, please help me

    Hi,
    My problem is, if I run my form builder module, if I did any mistake for example
    “ if leave the primary key field or if oracle unable to insert record” the related System Error messages like say “ORA411155” OR FRM411152 are displaying
    in the bottom of the screen in the “ default toolbar or taskbar” , Now my requirement is to display such messages in the “Center of the screen” in the form of Alerts. What is the way of doing this. Please tell me step-by-procedure.
    Thanking you in advance for helping,
    Prasanth a.s.

    You can trap such error messages in a form-level on-error trigger:
      ERR_VAL NUMBER(5)     := NVL(ERR_IN,ERROR_CODE);
      MSG     VARCHAR2(150) := NVL(MSG_IN,SUBSTR('   '||ERROR_TYPE||'-'
                             ||TO_CHAR(ERR_VAL)||': '||ERROR_TEXT,1,150));Then you can display MSG in an alert.

Maybe you are looking for

  • Validating a xml document via dtd or xml schema

    hi. i am trying to validate a xml document's structure via dtd or xml schema. unfortunately i dont have a clue how to do this. although i read some documents about it i didnt find a way to it yet. i am using dom4j to build a org.dom4j.Document from a

  • Ip4 ipod app problem

    I now narrowed down a problem with the level of sound output from the ipod app to having too many multitasking apps. The apps are just basic news things like reason magazine, foxnews, npr, safari, etc. Nothing that is really doing anything in multita

  • Starting Failed Data Migration Over Again With New Macbook Pro

    I just purchased a new Macbook Pro. Upon transferring files from an old Macbook via a backup and Time machine, the startup screen on the new Macbook Pro now  just shows white and a spinning disk. I can't even get a normal desktop.  1.New Macbook Pros

  • Having difficulty installing arch linux

    Okay, so currently I have Windows. Before I put in the CD and restart my computer, I went to the Windows disk manager, and created some partitions so I wouldn't have to do it from the installation (I fear I may mess up and erase all my data). I'm try

  • Labview 2011 crashes at error 404

    Test rig monitors and saves data from analog sensors, Recently it has started to crash at apparently random intervals ( has run for years before recent incidents). Only message on event veiwer is Labview error 404 at time of crash. S/W crashed up to