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.

Similar Messages

  • JOptionPane's message dialog over JDialog not recognizing mouse click

    I have a JOptionPane's message dialog like JOptionPane.showMessageDialog() which comes over a JDialog. When I try to click the OK button of this message dialog, nothing is happening. But, Enter key and Escape keys are working on it.
    Can any one give a solution?

    Hi,
    here are the steps how it goes.
    Step 1:
    private void generateMessageDialog(
            String message,
            int messageType,
            String messageTypeText,
            Component parentFrame)
            JOptionPane optionPane = new JOptionPane();
            optionPane.setMessage(message);
            optionPane.setMessageType(messageType);
            JDialog dialog = optionPane.createDialog(parentFrame, 
    messageTypeText);
            dialog.show();
    }If an exception occurs while connecting to my server, this method will be called to generate an error dialog.
    I have another thread which monitors the connection to server every 2500 ms. If the connection is lost, this thread will automatically generates a logon dialog. This dialog is a custom dialog that contains login fields.
    Step 2:
    public void run()
            int previousState = -1;
            while(previousState != CErrorCodes.SESSION_INVALID && previousState != CErrorCodes.NO_CONNECTION_TO_SERVER)
                int currentState = isConnected();
                // Check if a logoff action is pending
                if (currentState == CErrorCodes.REQUEST_SUCCEEDED)
                    if (getClientController().isLogOffPending())
                        break;
                previousState = currentState;
                try
                    sleep(2500);
                catch (InterruptedException e)
                    break;
    // generate the logon  dialog
            getClientController().getLogOnDialog();
    }If step 2 is executed before step 1, then the dialog generated by step 1 will come over the logon dialog generated by step 2. In this case, the ok button of the dialog generated in step 1 will not recognize mouse click. but enter or escape works. Both the dialogs are modal.
    Please let me know if you need furthur info. I look forward for your rep.
    Edited by: MallikMajety on Nov 8, 2007 6:02 AM

  • Making a Message Box always on top

    Hi all,
    I want a solution so that the message box I show on the screen should remain always on top of all the windows. Just like the common windows operating system modal dialog boxes so that the user cannot proceed unless and untill he closes the message box.
    I have tried with the JDialog by calling the method
    setModal(true);
    but unable to fix it.
    Thanx in advance,
    With regards
    Yuvraj
    Mumbai.

    If you instanciate your JDialog with the parent Frame, it will be always on top of it.
    JFrame fra = new JFrame();
    fra.setVisible(true);
    JDialog dia = new JDialog(fra);
    dia.setModal(true);
    dia.setVisible(true);
    Happy programming !

  • Blank message. stays always on top. no content.

    All the i-message conversation with one of my recently added contacts is not visible anymore. Also, everytime I open messages, that blank message is on top with latest time stamp. Also, my battery drains fast, very fast. Whats happening here? Help is appreciated.

    dont know..but it just stopped doing this.

  • "Adobe has found a solution or workaround for the recent crash in Adobe Flash CC" ...not really.

    Hi guys,
    My Flash CC crashes all the time, it's always been doing it since when I started using it on CS4, and I've somewhat given up on this bug being fixed, it crashes at least 20-30 times every document I create. I'm using a Wacom Bamboo Fun Pen&Touch tablet and drawing a lot, I think the problem is that it can't handle this much drawing.
    Anyways, it just crashed and for the first time after reopening I found this nice message from Flash:
    "Adobe has found a solution or workaround for the recent crash in Adobe Flash CC.
    Please click here for further details."
    Excited, I clicked on it! At last, a solution! Amazing!
    ...but it just points to http://www.adobe.com/
    ... I don't understand.
    What's happening? I'm genuinely puzzled.
    Also, anybody else experiencing frequent crashes?
    Thanks!
    Ciao!

    Yes, this is not good -- you're already mad when it crashes, then "We found a solution!" But, for me clicking on the link does nothing - no link even to adobe, just a tease - nothing opens.
    It's bad enough crashing a couple times a day and losing work (I do save every chance I get), but then to get taunted with this bogus message, it's discouraging and exactly the best 'user experience' for a really expensive product from company that is all about helping professionals create good design/user experience ..
    I like the way this is headed though! it just doesn't work right now.

  • 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.

  • "Show Desktop" bug forces any program windows to be stuck "Always-on-top"

    What I found under Windows 7, when you use the "Show Desktop" feature (I prefer the ⊞ Win + D shortcut) and then bring all windows back by using it again, some windows behave as if they're glued to the front of the z-order. What this means is, say, I have windows
    A B and C open, with focus on A, hit ⊞ Win +D twice, and now it may happen that if I then want to switch to B or C, either by Alt+Tab or by selecting them on the taskbar, the taskbar shows the highlight, but A stays visible (and usable, it's not just a rendering
    issue) in the foreground.
    Imagine the following situations, all three windows cascading and overlapping:
    A (focus)
    B
    C
    -> ⊞ Win + D
    Desktop (focus)
    -> ⊞ Win + D
    A (focus)
    B
    C
    -> click C on taskbar
    A
    C (focus)
    B
    -> click B on taskbar
    A
    B (focus)
    C
    And so on. Focus means actual input focus, i.e. in second situation, any keyboard typing is sent to window B while window A is in the foreground.
    It does not matter what kind of application; in my current case an instance of Outlook and an instance of Explorer is stuck, while a second instance of Explorer and an instance of Firefox behave normally. This should show that this problem can occur even between
    multiple instances of the same application, and that there are no fancy applications involved that like to pretend they are the most important program and internally force "always on top".
    Showing and unshowing the desktop again doesn't help; in the worst case another window might end up with the "glued to the top of the z-order" too. Between those, I can easily switch, but in order to get a window which still behaves normally on top, I have
    to manually minimize the offending windows.
    The only cure seems to close the offending windows so far, I've not found anything else that helps.
    Could it be that Windows 7 has a bug that can force an ALWAYS_ON_TOP flag
    onto some windows when restoring from "Show Desktop", or am I doing something wrong?
    More information from another user:
    I use win+d. Issue easy to replicate, Win7-64bit-Ultimate.
    The affected windows (any program) seem to be placed into a separate "Z" group. You can place multiple/many windows into this always-on-top state, those in the affected state will function normally in relation to each other with the exception that: - The group
    as a whole is always-on-top of any non-affected window - The whole group is on top of the taskbar. - The whole group does not respond to (context on taskbar) "cascade windows" or similar commands.
    The fact that the affected windows are on top of the taskbar and otherwise function as "special windows" shows that windows 7 has a hidden "feature" of always-on-top that gets applied with Win+D. The feature appears to place windows in a super window state
    that is on top of the taskbar. The normal group remaining behind the taskbar. (When you click the start menu or context menu of the taskbar, the start menu/taskbar comes to the foreground of the always-on-top group, however this does not revert the affected
    windows, only a temporary takeover until you switch to something other than the start menu/taskbar)
    This is key to finding an answer. How do we get windows to unassign the special status or not do the assignment in the first place?

    It appeared to have cleared by closing all windows and restarting. Initially I could not reproduce the error, then after opening all my working windows, I did indeed reproduce it on any window.
    I almost think it could be initialized with something to do with multiple windows of Chrome, and then the show desktop problem will crop up once one window has it. This was because: After messing around some more with a chrome session saver (session buddy)
    and restoring sessions and getting the super state, I restored and closed the window I was in and now I am again at a place where I can not reproduce the error, even in my "work environment" with some 35 chrome tabs in two windows, plus other programs, file
    locations, remote desktops and a second chrome profile with another dozen tabs.
    So, back to square one with finding the actual instigator of the super state phenomenon.
    Once you actually have the super sate issue, the following will reproduce:
    Ok, I am doing this as I type it:
    Open chrome (to view this website), then Notepad, then Calculator, (could be any windows, but for the purpose of demonstration, follow along with me)
    The windows should function normally, overlap your windows so that you can see the edge of all windows and the Z-order is (from front to back):the browser on top, then the calculator, then Notepad (you should be able to see part of the background windows).
    Now, with the browser on top, press win+d, then win+d again.
    Click on Calculator, then your browser, your browser is now stuck in the foreground. Clicking on notepad will bring the focus to notepad, and it will be in front of the calculator, yet it will stay behind the browser, as your browser is in "super state". (many
    arrangements of switching focus after returning from win+d will create the problem, with the exeption of clicking the desktop, I also noticed that I could not get calculator into super state unless it overlapped my chrome browser).
    Again, this does not seem to work until at least one of your windows is affected. We do not know how to get the initial window, only subsequent ones.
    I will post back if I find anything else.
    Let me know if there is anything that develops.

  • Messages status always shows "offline"

    I have only updated my mid 2009 macbook pro to Yosemite.
    I have synced to my iPhone ok.
    My Messages status always shows "offline" on the MBP even though I can chat on it.
    Many thanks for any help.

    At the bottom of the left New Message box, you can change it there.

  • Showing messages on the top as well as the bottom of the screen

    Hi all,
    In Webdynpro Java I have to show message at two positions on the screen. I am using Message Area UI Element for displaying the messages. I have used two Message Area UI Element one at the top and one at the bottom but the message is coming up on the top only. I need to display at the bottom also. Is there any way to provide this facility on the screen.
    This is really urgent.
    Thanxs in advance.
    Regards,
    Gurmat Bhatia

    Gurmat,
    I dont think, we have any direct approach for two message areas. But it can be done in other ways. Please have a look on these link.
    Choosing between multiple MessageArea-items
    How to make Messages appear on a specific View?
    How to send messages to differents MessageArea
    Regards,
    Sridhar

  • Want to show message on JOptionPane in Gujarati or any language other than

    Hello All,
    I am developing one swing application and in that I need to show some message on JOptionPane in Gujarati Labguage.
    Now I want to know whether it is possible to show messages on JOptionPane in other than english language? if so, please let me know how can I achieve that?
    Thanks in Advance,
    Tapan Maru

    Hello Tapan,
    Java works with unicode (16 bit character size), and since Gujarati is defined in unicode, you can display Gujarati characters wherever you want in your programme, provided you have a corresponding font installed on your system.
    Regards
    J�rg

  • I have unlocked my iphone and when tried to upgrade it, i got an error, so i restored it.But i was not able to activate my iphone 3gs now...it is showing a message like ' sim card not found'..please help me with this regard

    I have unlocked my iphone and when tried to upgrade it, i got an error, so i restored it.But i was not able to activate my iphone 3gs now...it is showing a message like ' sim card not found'..please help me with this regard

    Try popping out the SIM card and turn off the phone.
    Pop in the SIM card once again and turn on the phone, make sure that the SIM card is placed and seated perfectly in the tray!
    Tell me how did you unlock your phone!?

  • Make modal dialog box "Always on Top"

    i know there has been discussion about Frame always on top etc. but i have a slightly different problem.
    I have a Modal Dialog box which goes to the background when the parent window loses focus and gains it back.
    i am working on java version1.4. So the new methof in 1.5 version is of no use. Also i am working on Windows XP SP1.
    Do i have to make the dialogbox extend OptionPane instead of JDialo, which i am doing rt now?
    but OptionPane comes with a baggage and unnecessary code which i have to implement etc.
    Is there any easier way to solve this issue.
    Thanks
    PM

    This solution works for me under J2SDK v1.4.2_03. If you were to use it on a large scale, you'd probably want to develop a bit more of a formalized framework for it.
            final JFrame test_frame = new JFrame("Test");
            test_frame.getContentPane().setLayout(new BoxLayout(test_frame.getContentPane(), BoxLayout.Y_AXIS));
            JPanel panel = new JPanel(new FlowLayout());
            test_frame.getContentPane().add(panel);
            final JDialog[] modal_dialog = new JDialog[]{null};
            final JDialog d = new JDialog(test_frame, "Bah", true);
            JButton close = new JButton("Close");
            d.getContentPane().add(close);
            close.addActionListener(new ActionListener()
                public void actionPerformed(ActionEvent e)
                    d.setVisible(false);
                    modal_dialog[0] = null;
            FocusListener fl = new FocusAdapter()
                public void focusGained(FocusEvent e)
                    if (modal_dialog[0]!=null)
                        modal_dialog[0].requestFocus();
            test_frame.addFocusListener(fl);
            JButton open = new JButton("Open");
            panel.add(open);
            open.addActionListener(new ActionListener()
                public void actionPerformed(ActionEvent e)
                    modal_dialog[0] = d;
                    d.pack();
                    d.setLocationRelativeTo(test_frame);
                    d.setVisible(true);
            test_frame.pack();
            test_frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            AWTUtilities.centerWindow(test_frame, null);
            test_frame.setVisible(true);

  • TS1436 when i try to burn a playlist using itunes i get this message at the top of itunes "disc recording not found" any solutions

    when i try to burn a playlist using itunes i get this message at the top of itunes "disc recording not found" any solutions

      Microsoft Windows 7 Home Premium Edition Service Pack 1 (Build 7601)
    Gateway T5254
    iTunes 10.7.0.21
    QuickTime not available
    FairPlay 2.2.19
    Apple Application Support 2.2.2
    iPod Updater Library 10.0d2
    CD Driver 2.2.3.0
    CD Driver DLL 2.1.3.1
    Apple Mobile Device 6.0.0.59
    Apple Mobile Device Driver not found.
    Bonjour 1.0.6.2 (333.10)
    Gracenote SDK 1.9.6.502
    Gracenote MusicID 1.9.6.115
    Gracenote Submit 1.9.6.143
    Gracenote DSP 1.9.6.45
    iTunes Serial Number 002EA6FC09015990
    Current user is an administrator.
    The current local date and time is 2012-10-03 15:59:17.
    iTunes is not running in safe mode.
    WebKit accelerated compositing is enabled.
    HDCP is not supported.
    Core Media is supported.
    Video Display Information
    NVIDIA , NVIDIA GeForce 6100 nForce 405
    **** External Plug-ins Information ****
    No external plug-ins installed.
    Genius ID: 2a5aa2a020c605e8b6db3d153f68aa7e
    The driver AFS.SYS is installed on the system.
    iPodService 10.7.0.21 is currently running.
    iTunesHelper 10.7.0.21 is currently running.
    Apple Mobile Device service 3.3.0.0 is currently running.
    **** CD/DVD Drive Tests ****
    No drivers in LowerFilters.
    No drivers in UpperFilters.
    Failed loading CD / DVD drives, error -43. Try doing a repair install on iTunes from the "Add or Remove Programs" control panel.

  • Can I make the TestStand Properties dialog an 'always on top' window?

    I am having window Z order problems, such that calling PropertyObject.DisplayPropertiesDialog() sometimes sends the window behind the my application window. This causes people to think that the application has crashed (it's only waiting for them to dismiss the properties dialog), and often results in the fatal three finger salute.
    This problem cannot be solved by setting Engine.AppMainHwnd, or using the PropDlgOption_ModalToAppMainWind option - it's a long story. Is there a way to set the Z-order priority of TestStand dialogs? If I could set the dialog to 'always on top', all my problems would be solved.
    Thanks,
    Aaron Stibich
    Senior Engineer
    Innovative Technologies Inc.

    Hi Aaron,
    Unfortunately there is no way in TestStand to set the Z order property. You may be able to use Windows API calls though to accomplish the same goal. I will however put in a product suggestion for you so that this request may be looked at.
    Thanks,
    Caroline
    National Instruments
    Thanks,
    Caroline Tipton
    Data Management Product Manager
    National Instruments

  • Custom Runtime Error Dialog Always showing

    Hi,
    (TestStand 2.0.1f1)
    Using the Callback based on the example C:\TestStand\Examples\Callbacks\PostStepRuntimeErrorCallback\ErrorHandlerExample.seq.
    The error dialog always appears. I was expecting from the comment in the Set ErrorReport Flag that the Dialog would not appear again. (Comment: If this flag is set, TestStand does not send a UIMsg_BreakOnRunTimeError event to the GUI. This step sets the flag to prevent the GUI from displaying a runtime error dialog because this callback has already displayed a runtime error dialog to the user.)
    When you use the default Error Reporting, you can check a checkbox so that Dialogbox is not seen again for the same execution. I was expecting the same thing from the SequenceFil
    ePostStepRuntimeError callback.
    Any clues as to whats going on.
    See attached example.
    Regards
    Ray Farmer
    Regards
    Ray Farmer
    Attachments:
    RuntimeError1.seq ‏52 KB

    Hi,
    In the Programmer Help for DisplayRunTimeErrorDialogEx method it says
    "dontShowAgainForExecution Boolean Returns whether the user wants this dialog box to appear again if another run-time error occurs in the current execution. If this value is true, set Execution.RTEOptionForThisExecution to specify what to do on a run-time error for this execution."
    Now I have tried setting each of the RTE Options (except the Display Dialog) to try get the same effect as not using the Callback for runtime errors when it comes to ignoring all further errors. Nothing seems to work as expected. So whats the engine doing extra thats not detailed in the Programmer Help or the examples provided.
    Regards
    Ray Farmer
    Regards
    Ray Farmer

Maybe you are looking for