JWindow as message box

I am programming in Java1.1.8 using Visual Age 3.0. I am trying to show a JWindow to alert the user that a query is running. Here's my problem:"
If I run the method as is, it blows up on the pn.loadTable line. The JWindow shows up fine, is painted, and looks to be working ok. If I run the Wait dialog from a thread outside this method, the JWindow comes up not paointed, but the table loads with the query results. I am using a multiColumnListbox for my table. Any suggestions on how to solve this problem are greatly appreciated. Thanks, jlav
public void prodtree_TreeSelectionEvents() {
     Runnable t = new Runnable() {
          public void run() {
               try {
                    WaitWindow wd = new WaitWindow();
                    wd.show();
                    thread.sleep(100);
                    DefaultMutableTreeNode dm = (DefaultMutableTreeNode) ivjProdtree.getLastSelectedPathComponent();
                    ProductNode pn = (ProductNode) dm.getUserObject();
                    wd.repaint();
                    System.out.println("before table load");
                    pn.loadTable(ivjprodtable, conn);
                    System.out.println("after table load");
                    ivjJTextField2.setText("0");
                    ivjJSplitPane1.setDividerLocation(0);
                    getAfterQuery();
                    wd.dispose();
               } catch (Exception e) {
                    e.printStackTrace();
     Thread thread = new Thread(t);
     thread.start();
     return;
}

hard 2 know whats going on here. However, this
sequence of events is questionable.
I just cant tell what your GUI thread is doing, and if
you are freeing it so it candisplay properly your
window after you set it visible.
Is your window modal at all?Thanks dnoyeB for answering. I am fairly new to Java and this is bugging me. The GUI is a physical compositoinn of a JWindow in a class called WaitWindow. On the init of the main applet (MkdTrx) I am building a tree for selecting product by dept, sub dept, commodity, and class. When the user expands the tree and clicks on a commmodity for instance, the WaitWindow displays the message while the database search is taking place. When the multiColumnListobx is loaded, the JWindow disposes. My frustration is that this works about half the time, the other half the applet blows up after the JWindow is displayed. Thanks again for your help. I'm not sure if you need more code, please let me know.
jlav143

Similar Messages

  • I cannot open my firefox broswer. The message box appeared that said a problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is available. Under that there are debug and close program buttons.

    I cannot open my firefox broswer. The message box appeared that said a problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is available. Under that there are debug and close program buttons.

    JackieMars71 I would recommend reviewing your installation log files to determine if there are any errors during the installation process.  You can find information on how to locate and interpret your installation log files at Troubleshoot install issues with log files | CC - http://helpx.adobe.com/creative-cloud/kb/troubleshoot-install-logs-cc.html.  You are welcome to post any specific errors you discover to this discussion.

  • Missing Message Box after Skin Copy in IC Agent

    Hi,
    I copied the default skin in a customer z-skin (and added a logo).
    Everything works fine, even the company logo is visible.
    Now I have the problem that for the role "IC Agent" all the three message boxes have disappeared and that behind the SAP logo, the "Interaction Center" is smaller then before.
    Is this a problem in the process of the copy? Or is the mistake somewhere else?
    Thanks for your help
    Tim

    Hi Tim,
    We are facing exactly the same issue with our skin. we tried to copy 'NOVA' into a new custom skin and the three message boxes have disappeared.
    Also we get a warning on UI when we use this new custom skin saying "Communication management software system is not configured".
    Please can you extend help on this one. This is important for us.
    Many Thanks
    Priyanka

  • E mail. I can not send email to a contact from my list. When I hit their email address, the new message box comes up but the send icon is not highlighted and I can not send it. Why? How do I fix it. Happens on both I pad Air 2 and I Phone 5

    WWhen I press the email of a contact, the new message box appears with the address but the send icon is not highlighted. Even after typing a message, I can not send it. This is on both I Phone 5 and I Pad Air 2. this just started and not sure what I did. Help please?

    Read this thread, it's a bug that many are experiencing:
    Cannot send emails from contacts

  • How to cancelling email submission after user clicks "yes/no" button of message box?

    could some one tell me, how can i cancelling the submission event after one user clicks "yes/no" button of message box? The scenario is the following:
    After data input in a dynamic form clicks the user send mail button. Before the email submit, the user has to decide going back to the form and validate the input or continuing to submit email.
    In case of going back to validate input the submission event must not solve. So, how can i implemente it in java and/or form calc script?
    Thanks so much for your help in advance and i am very glad to hearing from you soon!
    Djinges

    Hello,
    The most easy way to solve your problem is to add two buttons, the first should be regular button and the second is submit by e-mail one. Set the
    'presence' property of the second to 'hidden' and add to it your email address. To the first button on 'click' event add the script like this
    form1.#subform[0].Button1::click - (JavaScript, client)
    var answer = xfa.host.messageBox("Send e-mail?","e-mail",2,1);
    if(answer==1){
    EmailSubmitButton1.execEvent('click');
    Hope this helps.

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

  • 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

  • How can i display a message box when error comes in jsp?

    Hi,
    i need to display a message box whenever an error comes in my jsp. Actually my appln is that i am creating a bar chart using one applet by taking data from the database. When a user does not select a number data for y axis, now in the centre of the web page one java error is coming. "not in number format". it is looking very odd.
    so i want to display the error in a message box whenever it comes as above. pls help me how can i do the same...
    Regds,
    Abhi...

    Hi,
    thanx for ur response. so u mean to say that i can
    display the errors in the web page itself instead of
    displaying as a message box?Either way. You can have the JSP send a message to the applet to display a message box. Or you can just have the JSP do it. or you can have the applet detremine if the JSP would produce an error and then display the message it would display.
    >
    actually i am using servlets. jsp pages are used only
    as the front end. all the background works are doing
    in servlet only.It should be the same in any case. Is the applet connecting to the JSP pages or are you having the browser do it?
    >
    pls get back...

  • My iphone 4 started displaying a message box with the following message: "This accessory is not optimized for this phone. You may experience noise and loss of battery."  My question is: how to fix this?

    My iphone 4 started displaying a message box with the following message: "This accessory is not optimized for this phone. You may experience noise and loss of battery."  My question is: Why is this happening and how do I fix it? (I'm losing battery power precipitously). Thanks in advance for any assistance with this question.

    Thanks Kilted Tim, you solved the problem. I'm mightily impressed at the simplicity of the solution!
    Jaded Kane

  • How to delete all messages in voice mail erased message box

    Is there a way to delete all the messages in my erased message box without going through them one at a time? Empty the trashcan.

    hullabaloo, we appreciate this device info! Should definitely be possible. If you go to your Voicemail Box, you can select Delete>on the bottom right hand corner, the option to choose Delete All should appear. This way you can delete them much quicker.
    NicandroN_VZW
    Follow us on Twitter @VZWSupport
    If my response answered your question please click the "Correct Answer" button under my response. This ensures others can benefit from our conversation. Thanks in advance for your help with this!!

  • What's the easiest way to have a message box?

    Hey, i'm making this game and i have one frame and i have and one panel inside, and when the user completes the game i want a message box to popup saying "Congratulations, You Won!"
    At the moment when the user wins the game, i've just put a "System.out.println("You've Won"); but i want a message box to appear on top of the game. What's the best and simplest way to achieve this?
    I tried replacing my "System.out.println("You've Won") with JOptionPane.showMessageDialog(null, "You Won!"); and that just caused the whole thing to freeze up.
    Thanks

    saru88 wrote:
    I did as you suggested and changed the "null" in
    JOptionPane.showMessageDialog(null, "You Won!"); to
    JOptionPane.showMessageDialog(this, "You Won!"); to refer to the JPanel which contains the game code.And? Any benefit (unlikely)?
    Sorry for my lack of explanation about freezing up, what happens is the message box appears, but the inside is completely transparent and so i can see the game display behind it. And if i click inside it, then it does nothing but change the focus to that window. When i said freeze before i meant, it becomes "non responding" and so I have to open "Task Manager" and close it that way. This sounds like a thread issue. Are you calling JOptionPane.showMessageDialog(...) off of the EDT, the Event Dispatch Thread?

  • How to display a message box in a UIX JSP page?

    I've a UIX JSP Application with BC4J developed with JDeveloper RC.
    The problem is that when the user mistakes in the insertion/updating, I'd like to help him displaying a message box or a modal dialog window.
    In particular, I've the following code:
    <%@ page errorPage="errorpage.jsp" contentType="text/html;charset=WINDOWS-1252"%>
    <%@ taglib uri="/webapp/DataTags.tld" prefix="jbo" %>
    <%@ taglib uri="http://xmlns.oracle.com/uix/ui" prefix="uix" %>
    <%@ taglib uri="http://xmlns.oracle.com/uix/ui/bc4j" prefix="bc4juix" %>
    <%@ page import="oracle.jbo.JboException" %>
    <%@ page import="CdssPackage.*" %>
    <%-- Define Application Module and DataSource--%>
    <%-- Define Application Module and DataSource--%>
    <jbo:ApplicationModule configname="CdssPackage.CdssPackageModule.CdssPackageModuleLocal" id="app1" username="scott" password="tiger" releasemode="Stateful" />
    <%
    //Check the mandatory fields are not null
    if ((cod_comm.compareTo("")==0) || (nome_ruolo.compareTo("")==0)){
    throw new JboException(Errors.ERR_REQUIRED_FIELD);
    //Now, the errorpage.jsp is displayed, while I'd like to display a message box or a modal dialog window
    %>
    How can I do it?
    Thanks in advance.

    Michele-
    You can use javascript to send a message window in the http protocol.
    Hope this helps,
    Lynn
    Java Tools Team

  • Getting the message from a Cancel event Message Box

    Hi there,
    I would like to know if a user select from menu in SAP 8.8 Data-> Cancel.  We get a message box for confirmation Yes/No user wants to cancel the document so that it is status is changed to cancel.  I would like to know how can you get the message and the caption from that message box in order to know the appropriate action to take with respect to the form type.  In purchare order, when you select cancel, the message box has a caption "Purchase Order" and the text of the message box is "Cancelling a document is irreversible. Document status will be changed to "Canceled" and the document will not appear in the Sales/Purchase analysis reports. Do you want to continue?" 
    I want to know how may I  get these two piece of information.  Actually I know there is a button caption property but I must know the message in order to distinguish in code which is 'YES' is clicked. 
    Any help or lead will be greatly appreciated, thanks!

    This seems to be an SDK question so it would be better to post it in the SDK forum as you will get way more answers; alot less of the experts come in to the B1i forum.
    Anyways, I will suggest an answer but I'd ask you close this thread and continue it in the SDK forum if you still have issues.
    The form in question has form type = 0 so my method of achieving this would be:
    1. Catch the Item Pressed event on form with typeEx == 0 and BeforeAction == true.
    2. Check if Form.Title == "Purchase Order".
    3. Now to check the text - first of all, before coding, go to View->System Information. Now go to a PO and select Cancel; hover the mouse over the text on the form, you will see that the three lines of text are actually labels with UIDs 7, 1000001 and 1000002. In your code you can check if the Label with ItemUID == 7 has the text "Cancelling a document is....etc etc"
    4. If it does have that text you now know the user has clicked a button on that form.
    6. If not, they have some other type of message box open
    7. Check which button they clicked: pVal.ItemUID == 1 means it was Yes, pVal.ItemUID == 2 means it was No
    Hope it helps

  • How can I desactivate an "-3 error" message box?

    Hi everyone,
    The last time I ran my program I got  the error message : -3 at an unknown place  (see .png).
    I had already run it several times  (for something like 40h each time) without any problem.
    I have only connected and configured the error messages/boxes in some places in my program but not everywhere.
    Could someone tell me if this kind of message can pop up when you haven't connected and configured all the messages/boxes? If so, I suppose I just need to configure all of them to avoid this kind of pop up?
    Or could I get this kind of message anyway? If so, is there a way to desactivate this kind of pop up window message so that my program doesn't stop (although I understand there has been an error somewhere on the line)
    Labview 10
    Thanks,
    User
    Solved!
    Go to Solution.
    Attachments:
    Forum error message.PNG ‏14 KB

    Hey!
     You can disable error handling dialog box. Tools > Options > Block Diagram
    See attached picture!
    Paul
    Attachments:
    disable error dialog.png ‏37 KB

  • TS3212 when installing iTunes on my new laptop a message box appears saying some sort of error has occured and i have to uninstall it then reinstall it again and it still won't work what should i do?

    when installing iTunes on my new laptop a message box appears saying some sort of error has occured and i have to uninstall it then reinstall it again and it still won't work what should i do?

    Let's try a standalone Apple Application Support install. It still might not install, but fingers crossed any error messages will give us a better idea of the underlying cause of the issue.
    Download and save a copy of the iTunesSetup.exe (or iTunes64setup.exe) installer file to your hard drive:
    http://www.apple.com/itunes/download/
    Download and install the free trial version of WinRAR:
    http://www.rarlab.com/
    Right-click the iTunesSetup.exe (or iTunes64Setup.exe), and select "Extract to iTunesSetup" (or "Extract to iTunes64Setup"). WinRAR will expand the contents of the file into a folder called "iTunesSetup" (or "iTunes64Setup").
    Go into the folder and doubleclick the AppleApplicationSupport.msi to do a standalone AAS install.
    Does it install properly for you? If so, does iTunes launch properly now?
    If instead you get an error message during the install, let us know what it says. (Precise text, please.)

Maybe you are looking for

  • Image Link Problems in Illustrator CS3

    Am running on Mac OS 10.4.11. Mac is a Dual 2GHz PowerPC G5. File server is an IBM x3650, running FullPress Software and Xinet and Flashnet. When saving files in Illustrator CS3 with preserved image links to hi-res images on the server, other users w

  • Problem with  date format "dd-MM-yyyy"

    hi all, i am using jdev 10.1.3.2 My application ADF Swing app. in my database i have a table employee which contains "birthday". my problem is that i must use date format"dd-MM-yyyy". i added this format into "formatinfo.xml" file. than i choose it i

  • Insert URL link into SMARTFORMS and retrive the picture linked to the URL

    Hi Guys, I have the following problem: I have a URL link and I want to set this link into the smartforms and I want to retrieve the picture linked to the URL and display the picture in the print. Is it possible? Thanks for your support. Best regards,

  • HT4796 Why won't my PC and Mac connect in the Migration Assistant?

    Both have it installed and have the exact same wireless connection.  I originally skipped the process during startup because I thought it would take way longer than using an enternal hard drive, but that was before I found out the two weren't compati

  • Page flicker on pages with SWF content

    Hi, In Dreamweaver CS4, inserting a SWF puts it inside an <object> tag and then there are some helping files. But I have read that for best performance one should also put an <embed> tag inside the object tag. The need for this seems increased when I