System wide modal message box pop-up from applet

Hi,
I am having an applet which is listening on a soket and has to pop-up a message box with the received data as and when it receives it.
I have used JOptionPane.showMessageDialog() for this.
Now, the requirement is the MsgBox should come up even if the user is working on another console/window. Btw, I am running the applet on windows-XP/2000 with JRE1.4.2. I have used null as the first parameter to the showMessageDialog function above, but its not popping up if I am workin in some other window.
Anybody having ideas on how to do it, please reply.
Thanks
Sujit

Pop up a Frame or JFrame showing the message. You can make it passably modal by having the applet nap while it's visible:
JFrame msg = new JFrame( "Got Data!" );
...// add message
msg.setVisible( true );
// may not pop up instantly:
while ( !msg.isVisible() ) pause( 10 );
while ( msg.isVisible() ) pause( 50 ); // wait for user to close
private static void pause( int millis ) {
   try { Thread.sleep( millis ); }
   catch ( InterruptedException e ) {}
}

Similar Messages

  • I'm trying to share to Media Browser a 20 minute still slide show with music and text. I have tried several times to save at 1080 HD, but just before it's finished, a message box pops up saying "File already open with write permission."  What's this mean?

    I'm trying to finalize/share to Media Browser a 20 minute still slide show with music and text. I'd like to finalize it 1080 hd and have tried several times, but just before it's finished, a message box pops up saying it can't be done because "File already open with with write permission."  What does this mean?  All files are closed; this iMovie project is the only thing open.  Does it mean one of the song files from iTunes? And should I just settle for saving it as a "large" file, which is what I'm trying right now?
    Thanks,
    Jamie

    Hi
    Error -49 opWrErr  File already open with write permission
    Trash the preference files while application is NOT Running.
    from Karsten Schlüter
    Some users notice on exporting larger projects from within iMovie that this operation is aborted with an 'error -49'
    This issue occours only on MacOs machines using 10.7x
    try switching-off the Local Mobile Backup
    in Terminal copy/paste
    sudo tmutil disablelocal
    Re-launch Mac
    See also this post
    https://discussions.apple.com/thread/4434104?tstart=0
    Yours Bengt W

  • Problems installing plug-ins (and even Adobe updates) to Photoshop CS5 Extended on a new Win7 64-bit laptop.Instead, a message box pops up on the CS5 screen saying "could not complete your request because it is not the right kind of document."

    Problems installing plug-ins to Photoshop CS5 Extended on a new Win7 64-bit laptop.  (Same CS5 and plug-ins installed OK several years ago on a Vista laptop.  Now I'm just trying to migrate everything over to the new laptop.) Even some Adobe updates won't install.  Instead, a message box pops up on the CS5 screen saying "could not complete your request because it is not the right kind of document."   Any solution?

    CS5's automatic update mechanism is broken, perhaps because it is no longer updated and can't cope with the newer ways of updating.
    So this means you will have make a list of the updates that failed, go here: Product updates
    and manually download/install from there.
    Gene

  • How to keep OI window in background with message box/pop up boxes on top.

    Hi
    I have a new requirement to add in OI .How to keep OI main window fixed in the background with message pop ups atop OI window.
    Even  with message box pop ups , i should not have the access to OI main window.To  make it more clear,when i change to some other application in my PC task bar (for eg:-MSWord) and then click back to OI main window ,i should see the message box on the top of OI main window . I should not  have the access to click OI main window and OI message box as two separate operation in the task bar.
    Please let me know where i need to make changes in my OI  codeset.
    Regards,
    Nand

    Hi Nand,
    In the Message Popup step settings, check Make Modal under Layout >> Dialog Options.  
    I hope this helps.
    Cheers,
    David Goldberg
    National Instruments
    Software R&D

  • How to make a message box pop up?

    On my website I want when someone clicks a hyper link a message box appears instead of going to the page.
    so I could have a SECRET page and then when they click it a message box pops up saying "Sorry this page is secret" or something like that.

    You can use fancyzoom or image popup methods (using an image file with the text in it). This demo page has an example: Fancy Zoom & Image Popup.
    Or you could use rollover methods like in this demo page: Mouse Rollover & Animated Gifs
    Still another possibility is the show/hide text method: Show and Hide.
    OT

  • Facing a very wierd situation - VBScript message box pop up

    Hello Guys,
    This is very weird scenario am facing. I have a program to run Launch.vbs which will prompt for Messagebox at end of the script. 
    I deployed the package to 3 machines (Windows 7) - To Device Collection
    Always in one machine only i get the Message Box and
    remaining 2 machines am not getting the Message box (the wscript.exe running in task manager hidden and no message)
    Tried so many times, but same issue with these 2 machines. (Am sure i have selected proper options in Program --> Properties because in one machine i always get the message box)
    Is that any machine policy preventing the message box to display ?? or anyother work around.
    or any client settings i need to change (though all machine have same client setting - Default Settings)
    Please assist, i need to deploy the package to production.
    Thanks,

    Sorry not getting you, //NOLOGO - prevents -banner/logo displaying at the execution time.
    But my requirement is to get the Messagebox during execution
    In my program i run only Launch.vbs earlier i tried with
    cscript.exe Launch.vbs
    But how same package i deployed to other machines, it not popping up a messagebox, it is running in taskbar no GUI.
    I with the command you suggested.
    My VBScript Content:
    strRoot = oFso.GetParentFolderName(Wscript.ScriptFullName)
    EXEcmd = Chr(34) & strRoot & "\setup.exe" & chr(34) & " " & "/configure" & " " & chr(34) & strRoot & "\install32ny.xml" & chr(34)
    WSHShell.Run EXEcmd, 0, True
    strSuccess_Msg = _
      "The installation of Office 365 Pro Plus was successful on your machine." & VbCrLf & VbCrLf & _
      "Please save your data, logoff and login to your machine and " & VbCrLf & VbCrLf & _
      "Launch Outlook 2013 to configure your profile" & VbCrLf & VbCrLf & _
      "Click OK to close"
    MsgBox strSuccess_Msg, 64, "Office 365 Pro Plus"

  • How can I detect whether a TestStand Message box is active from a LabVIEW VI or application?

    I'm trying to detect when TestStand Message boxes are active on a local PC from a LabVIEW VI. Does anyone know a way to do this (ActiveX or some kind of "in memory" query maybe)?

    Hello John,
    the critical thing to do would be to get an engine reference to the Engine by means of a LabVIEW Automation Open VI (look in your activeX functions palette and the help for this item), the input will be an ActiveX reference to the TestStand Engine (browse for the class NI TestStand API, any version will do, and choose Engine from the list). Once you have this reference to the currently running TestStand, the next challenge is to some how access information about the current execution. The only way to reach that object is via getting the UIMessage object and then retrieving a Thread object from the message, and a SequenceContext from the thread... until finally you can access the property "Step". Your best reference in this case is
    going to be the TestStand Programmer Help (specifically for the API) and explore the properties and methods of each of these classes in turn.
    Feel free to ask if you get stuck.
    --Regards,
    Elaine R.
    National Instruments
    http://www.ni.com/support

  • HT1926 my itunes is not working at all, so I uninstalled it and reinstalled.  I get to the point where is says it is starting up and a messages box pops up and says "Service Apple Mobile Device failed to start.  Verifty that you have sufficient privileges

    my itunes is not working at all.  A message pops up to say that I may not have suffient privileges to start system services on my apple mobile device.
    I have uninstalled and reinstalled itunes but the same message still appears and itunes will not start.
    Any help would be appreciated!
    Thanks, mormick

    Try the following user tip:
    Troubleshooting issues with iTunes for Windows updates

  • I frequently get a message that pops up from yahoo sync asking for my password, and I don't know that I have ever done anything with yahoo sync?? So how do I make it go away?

    I recently started getting a message popping up asking me for my Yahoo password and it references my email address  that is attached to Yahoo Sync somehow. It happens very frequently and I don't know that I have ever done anything with sync and I want it to go away. Anyone else had this problem?

    Thank you so much!!! I was having the same issue and I was going mental as welll!! 

  • Warning message box pops up when opening Flash CC in Flash CS6

    See attached image.
    Is there a way to get rip off the message? I had turn off all warning box under Preferences > Warnings, it still poping up!
    Thx.

    If any Flash CC file is opened Flash CS6, a warning message would appear. Unfortunately, there's no way to disable this alert unless you re-save your file in Flash CS6 once.

  • My ipod is saying it is disabled and to try again in 21,581,526 minutes i tried to plug it up to get on itunes to restore it but a message box pops up and said that i have to unlock passcode

    i tried to restore it but itunes wont even show my device it saids my ipod has a passcode that needs to be unlocked but i cant unlock it because it saids it is disabled for 21,581,522

    Place the iPod in recoverymode and then restore the iPod from its syncing computer. For recovery mode see:
    iPhone and iPod touch: Unable to update or restore

  • I get this message box when I click on a link (in a document or email)"firefox is already running, but not reponding. To open a new window, you must first close the existing firefox process, or restart your system"

    if Firefox is already running and click on any link in Word, Excel, Outlook, etc. A message box pops up and I have to hit OK to close it.
    "firefox is already running, but not reponding. To open a new window, you must first close the existing firefox process, or restart your system"

    if Firefox is already running and click on any link in Word, Excel, Outlook, etc. A message box pops up and I have to hit OK to close it.
    "firefox is already running, but not reponding. To open a new window, you must first close the existing firefox process, or restart your system"

  • Pass File Path into Message Box

    Hello,
    I’m building an application that is being used to create a report for whatever date range the user chooses. After the data is exported into Excel I have a message box pop up telling the user where the file has been saved to. However, as it is now, I have
    the file path hard coded. What I want to do is have the file path chosen by the user passed into the message box and display a message with the selected path. Any help with this will be greatly appreciated.
    Dave
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using System.Windows.Forms;
    using System.Data.SqlClient;
    using ClosedXML.Excel;
    using DocumentFormat.OpenXml;
    using System.IO;
    namespace LoanOrig_FDIC_Codes
    public partial class Form1 : Form
    SqlCommand sqlCmd;
    SqlDataAdapter sqlDA;
    DataSet sqlDS;
    DataTable sqlDT;
    SqlCommand sqlCmdCnt;
    public Form1()
    InitializeComponent();
    //BEGIN BUTTON LOAD CLICK EVENT
    private void btnLoad_Click(object sender, EventArgs e)
    string sqlCon = "Data Source=FS-03246; Initial Catalog=ExtractGenerator; User ID=myID; Password=myPW";
    //Set the 2 dateTimePickers to today's date
    DateTime @endDate = End_dateTimePicker.Value.Date;
    DateTime @startDate = Start_dateTimePicker.Value.Date;
    //Validate the values of the 2 dateTimePickers
    if (endDate < startDate)
    MessageBox.Show("End Date must be greater than or equal to the Start Date OR Start Date must be less than or equal to the End Date ", "Incorrect Date Selection",MessageBoxButtons.OK,MessageBoxIcon.Error);
    //Reset both dateTimePickers to todays date
    Start_dateTimePicker.Value = DateTime.Today;
    End_dateTimePicker.Value = DateTime.Today;
    return;
    //End of date validation
    string sqlData = @"SELECT AcctNbr,
    CurrAcctStatCD,
    Org,
    MJAcctTypCD,
    MIAcctTypCD,
    NoteOriginalBalance,
    ContractDate,
    FDICCATCD,
    FDICCATDESC,
    PropType,
    PropTypeDesc
    FROM I_Loans
    WHERE CAST(ContractDate AS datetime) BETWEEN @startdate AND @enddate ORDER BY ContractDate";
    SqlConnection connection = new SqlConnection(sqlCon);
    SqlCommand sqlCmd = new SqlCommand(sqlData, connection);
    sqlCmd.Parameters.AddWithValue("@startDate", startDate);
    sqlCmd.Parameters.AddWithValue("@endDate", endDate);
    sqlDS = new DataSet();
    sqlDA = new SqlDataAdapter(sqlCmd); //SqlAdapter acts as a bridge between the DataSet and SQL Server for retrieving the data
    connection.Open();
    sqlDA.SelectCommand = sqlCmd; //SqlAdapter uses the SelectCommand property to get the SQL statement used to retrieve the records from the table
    sqlDA.Fill(sqlDS, "I_Loans"); //SqlAdapter uses the "Fill" method so that the DataSet will match the data in the SQL table
    sqlDT = sqlDS.Tables["I_Loans"];
    //Code section to get record count
    sqlCmdCnt = connection.CreateCommand();
    sqlCmdCnt.CommandText = "SELECT COUNT(AcctNbr) AS myCnt FROM I_Loans WHERE ContractDate BETWEEN @startDate AND @endDate";
    sqlCmdCnt.Parameters.AddWithValue("@startDate", startDate);
    sqlCmdCnt.Parameters.AddWithValue("@endDate", endDate);
    int recCnt = (int)sqlCmdCnt.ExecuteScalar();
    txtRecCnt.Text = recCnt.ToString();
    btnExport.Enabled = true;
    //End of code section for record count
    connection.Close();
    dataGridView1.DataSource = sqlDS.Tables["I_Loans"];
    dataGridView1.ReadOnly = true;
    //Reset both dateTimePickers to todays date
    Start_dateTimePicker.Value = DateTime.Today;
    End_dateTimePicker.Value = DateTime.Today;
    //END BUTTON LOAD CLICK EVENT
    //BEGIN BUTTON EXPORT CLICK EVENT
    private void btnExport_Click(object sender, EventArgs e)
    { //ClosedXML code to export datagrid result set to Excel
    string dirInfo = Path.GetPathRoot(@"\\FS-03250\users\dyoung\LoanOrig_FDIC_Codes");
    if (Directory.Exists(dirInfo))
    var wb = new XLWorkbook();
    var ws = wb.Worksheets.Add(sqlDT);
    ws.Tables.First().ShowAutoFilter = false;
    SaveFileDialog saveFD = new SaveFileDialog();
    saveFD.Title = "Save As";
    saveFD.Filter = "Excel File (*.xlsx)| *.xlsx";
    saveFD.FileName = "LoanOrig_FDIC_Codes_" + DateTime.Now.ToString("yyyy-MM-dd");
    if (saveFD.ShowDialog() == System.Windows.Forms.DialogResult.OK)
    Stream stream = saveFD.OpenFile();
    wb.SaveAs(stream);
    stream.Close();
    //End of ClosedXML code
    MessageBox.Show("File has been exported to U:\\LoanOrig_FDIC_Codes", "File Exported", MessageBoxButtons.OK, MessageBoxIcon.Information);
    else
    MessageBox.Show("Drive " + "U:\\Visual Studio Projects\\LoanOrig_FDIC_Codes" + " " + "not found, not accessible, or you may have invalid permissions");
    return;
    //END BUTTON EXPORT CLICK EVENT
    private void Form1_Load(object sender, EventArgs e)
    //Set dates to be today's date when the form is openend
    Start_dateTimePicker.Value = DateTime.Today;
    End_dateTimePicker.Value = DateTime.Today;
    private void Form1_Load_1(object sender, EventArgs e)
    // TODO: This line of code loads data into the 'dataSet1.I_Loans' table. You can move, or remove it, as needed.
    this.i_LoansTableAdapter.Fill(this.dataSet1.I_Loans);
    private void iLoansBindingSource_CurrentChanged(object sender, EventArgs e)
    private void btnExit_Click(object sender, EventArgs e)
    this.Close();
    //END THE SAVE AS PROCESS
    David Young

    Assuming I have located the part of your code you are talking about, I think you just need to replace the hard code path in the message with the path from the SaveFileDialog. You should only display the message if the use clicked OK.
    if (saveFD.ShowDialog() == System.Windows.Forms.DialogResult.OK)
    Stream stream = saveFD.OpenFile();
    wb.SaveAs(stream);
    stream.Close();
    MessageBox.Show("File has been exported to " + saveFD.FileName, "File Exported", MessageBoxButtons.OK, MessageBoxIcon.Information);

  • Teststand message box larger font for 95 years old

    Hi
    I am working with people > 90 yrs.
    the message pop up window occupied on top of the screen.
    How can I help them by changing the font and/or color of the message pop up.
    the real estate of the screen is there.
    message pop up dominates the screen, nothing else matters
    Please allow me to change the font for seniors with strained eyes.

    Hi trout00
    You have a couple different options for changing the font size of the message box. The first option is to change the native Windows message box settings. From Windows XP, right-click on your desktop and go to "Properties". Click on the "Appearance" tab in the Display Properties dialog box, and click on the "Advanced" button. In the Advanced Appearance dialog box, select "Message Box" from the "Item" drop-down menu. This will allow you to change the font of the message box text.
    Your other option is to use a custom step type. This KnowledgeBase has more information on this option, including a link to an example program.
    Russell G.
    NI Applications Engineering

  • I deleted Yahoo acct- now Yahoo request box pops up constantly asking for password!?

    I had trouble with someone hacking my Yahoo acct- since I haven't used it in years, I deleted it- NOW, every few minutes a box pops up (from Yahoo!) asking for my password.  Is this Yahoo Sync?  I don't have any Yahoo listed in Address book... I can't find any reference to Yahoo in the system.  Where is this request coming from?  How can I stop this madness?  Thank you.

    What is posting the dialog?  Is it from your browser?  Did you (once upon a time) install some yahoo software?
    If it is your browser then look at your add-ons/extensions for anything "yahoo".
    If it's something you installed, then look in your Accounts system preferences login items for any yahoo related app being specified to launch.
    Similarly look in these other places:
    ~/Library/LaunchAgents (in your home directory, use Finder Go menu, Go To Folder)
    /Library/LaunchAgents
    /Library/LaunchDaemons
    /Library/StartupItems

Maybe you are looking for

  • TS1363 I need to sync my iPod Classic library with a re-downloaded iTunes account on my desktop.

    My Gateway desktop, from which i sync'ed my iPod crashed and burned.  It's bCan I sync the desktop iTunes up with what is on my iPod (15,000 songs+) without wiping out the iPod?

  • Previews not correct in open file dialog

    Hello all, I am on CS4 Photoshop. The previews of files in the File>Open dialog do not update or show the correct picture. Files with various layers often only show one layer instead of the whole picture, or layers are shifted wrongly over one anothe

  • This works for certain entries - why?

    im trying to find out the largest number/age but it only works for a certain set of data for some reason. I tested it with ordinary numbers (no objects created) in a seperate program and it works fine but not this one :-/ ConsoleIO.out.println("\n\n\

  • Firefox 36x is very slow on Yahoo Beta Mail. Sometimes unresponsive

    Hello All, Firefox 36x in unresponsive when logged onto the New beta of Yahoo mail. It hangs up when scrolling through the in box or when attempting to view new mail. The normal version of Yahoo mail works great when using Internet Explorer 8.x. I ha

  • How to Get Rid of White Stripe At Top of Firefox Browser

    I have the current version of Firefox installed. Recently, perhaps with the most recent install, I'm not exactly sure, a white stripe appeared at the top of the browser, right under the search and URL boxes at the top of where websites would normally