Modal Dialog won't close before tasks complete..

Hi all,
Basic, but quite infuriating problem. Because Illustrator doesn't allow palette type windows, nothing can happen whilst the dialog is open. So, I've been using scripts I wrote over six months ago now for producing sets of scale elevations of my designs with filled out title-blocks etc.. Which have literally saved me a good half-hour per drawing set I need to produce.
The time has come for a test function for one of the parameters in my dialog though, because at the moment it requires careful judgement to guestimate the number and a failure means a lot of undoing (deleting a dozen files that the script creates once it starts etc).
So I've coded in a test button into my dialog, setup the callback handler onClick and tested everything, and the sequence of events I would like to occur is as follows;
Dialog closes - dlg.close()
My Scaling operation occurs
The script pauses for three seconds
then undoes the action - app.undo()
and reopens the dialog - dlg.show()
Every one of these events is tried and tested.. But they occur out of order when I run the script because each action runs at a different rate. setTimeout also doesn't work in Adobe's javascript (at least not in Illustrator), so I can't individually delay items.
So I've been testing bits in isolation to troubleshoot.. And I'm most concerned that the dialog close before any actions run - as this seems to cause the hold-up. A friend who is far more adept than I tells me it's because the dialog takes ownership, and as such the script dies if the dialog closes. If this is the case, is there a way I can create a false parent or prevent the dialog from doing this?
Try this code to see what I mean - clicking test should close the dialog, pause for three seconds and display its message.
If you comment out the while and if statements and their respective closing braces, you'll see that the dialog holds before closing. That code is there to ensure it closes before doing anything.
You should run this from Extendscript so you can halt it - else it will loop indefinitely. Note that Extendscript does behave differently; Illustrator halts when you click test, Extendscript appears to close the dialog but does nothing thereafter, however it still loops.
var test;
// Pause Function
function pause(msec)
var done = null;
var date = new Date();
var curDate = null;
do curDate = new Date();
while(curDate-date < msec);
var done = 1;
return done;
dlg = new Window('dialog', 'Parameter Entry', [0,0,480,384]);
dlg.center();
dlg.testField = dlg.add('panel', [20,65,460,105], 'Scale Factor');
dlg.testField.titleEt = dlg.testField.add('button', [385,5,420,25], 'Test', {name: 'testButton'});
dlg.add('button', [315,337,385,360], 'OK', {name: 'ok'});
dlg.add('button', [395,337,465,360], 'Cancel', {name: 'cancel'});
function testButtonOnClick()
dlg.closeresult = dlg.close(1);
while (dlg.closeresult < 1) {
if (dlg.closeresult == 1) {
pause(3000);
alert('If you can make this display - email me!');
// TEST SEQUENCE (CLOSE DIALOG, SCALE IMAGE, 3SEC PAUSE, UNDO, REOPEN DIALOG)
dlg.testField.testButton.onClick = testButtonOnClick;
dlg.result = dlg.show();
if (dlg.result == 1) { // OK
// MAIN PROGRAM CODE

Erm, well, I'd say that your nested loop will have 100 iterations. I assume you are missing a break statement somewhere but as I don't know your application...
One other observation - surely the if statement (in the else if) is not required? Either something is equals or it is not?
Whoops - sorry - 81 iterations as pointed out below!
Edited by: Tom.Sanders on 12-Apr-2008 19:37

Similar Messages

  • Modal dialog missing the close button

    My AI extension (CS6) is set to be a ModalDialog (from the Bundle Manifest Editor UI Window Type).  It displays as a dialog correctly, but there is no close button in the title bar.  Is this something that needs to be done in code or am I missing something else?
    I don't mind adding my own close button in the dialog if I need to, but it seems the title bar close button should be there.

    Modal Dialogs have no close button.
    You need to add it yourself.
    Harbs

  • Modal dialog does not close until function finish

    Hello
    I am a modal dialog (yes/no buttons). When user selects YES, a function is executed. My problem is: Dialogo does not close until function finish.
    Many thanks for your help.
    This is the call to show modal dialog:
    boolean myRes;
    dlgYesNo.setTitle(" SINCRONIZE");
    dlgYesNo.setPreguntaUp("�Do you want to sincronize?");
    dlgYesNo.show();
    myRes = dlgYesNo.respDialogo();
    if (!myRes) return; // User selects NO
    sincronizeData(); //MODAL DIALOG DOES NOT CLOSE UNTIL THIS FUNCTION FINISH!!!
    This is the class to create modal dialog:
    public class DialogoYesNo extends java.awt.Dialog {
    /** Creates new form DialogoYesNo */
    public DialogoYesNo(java.awt.Frame parent, boolean modal) {
    super(parent, modal);
    initComponents();
    this.setSize(200,125);
    this.setResizable(false);
    Dimension d = this.getToolkit().getScreenSize();
    this.setLocation((d.width-getSize().width)/2, (d.height-getSize().height)/2);
    /** This method is called from within the constructor to
    * initialize the form.
    * WARNING: Do NOT modify this code. The content of this method is
    * always regenerated by the Form Editor.
    private void initComponents() {
    btYes = new java.awt.Button();
    lblDialogCentro = new java.awt.Label();
    lblDialogUp = new java.awt.Label();
    btNo = new java.awt.Button();
    lblDialogDown = new java.awt.Label();
    setLayout(null);
    addWindowListener(new java.awt.event.WindowAdapter() {
    public void windowClosing(java.awt.event.WindowEvent evt) {
    closeDialog(evt);
    btYes.setLabel("Si");
    btYes.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    btYesActionPerformed(evt);
    add(btYes);
    btYes.setBounds(30, 80, 60, 24);
    lblDialogCentro.setAlignment(java.awt.Label.CENTER);
    lblDialogCentro.setText("a");
    add(lblDialogCentro);
    lblDialogCentro.setBounds(10, 40, 180, 20);
    lblDialogUp.setAlignment(java.awt.Label.CENTER);
    add(lblDialogUp);
    lblDialogUp.setBounds(10, 30, 180, 20);
    btNo.setLabel("No");
    btNo.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    btNoActionPerformed(evt);
    add(btNo);
    btNo.setBounds(110, 80, 60, 24);
    lblDialogDown.setAlignment(java.awt.Label.CENTER);
    add(lblDialogDown);
    lblDialogDown.setBounds(10, 50, 180, 20);
    pack();
    private void btYesActionPerformed(java.awt.event.ActionEvent evt) {
    // Add your handling code here:
    respuesta = true;
    setVisible(false);
    dispose();
    private void btNoActionPerformed(java.awt.event.ActionEvent evt) {
    // Add your handling code here:
    respuesta = false;
    setVisible(false);
    dispose();
    /** Closes the dialog */
    private void closeDialog(java.awt.event.WindowEvent evt) {
    // Add your handling code here:
    * @param args the command line arguments
    public static void main(String args[]) {
    new DialogoYesNo(new java.awt.Frame(), true).show();
    public void setPreguntaUp(String p){       
    lblDialogUp.setVisible(true);
    lblDialogDown.setVisible(true);
    lblDialogCentro.setVisible(false);
    lblDialogUp.setText(p);
    public void setPreguntaDown(String p){
    lblDialogUp.setVisible(true);
    lblDialogDown.setVisible(true);
    lblDialogCentro.setVisible(false);
    lblDialogDown.setText(p);
    public void setPreguntaCentro(String p){
    lblDialogUp.setVisible(false);
    lblDialogDown.setVisible(false);
    lblDialogCentro.setVisible(true);
    lblDialogCentro.setText(p);
    public void centrarPantalla(){
    Dimension d = this.getToolkit().getScreenSize();
    this.setLocation((d.width-getSize().width)/2, (d.height-getSize().height)/2);
    public boolean respDialogo(){
    return respuesta;
    // Variables declaration - do not modify
    private java.awt.Button btNo;
    private java.awt.Label lblDialogCentro;
    private java.awt.Button btYes;
    private java.awt.Label lblDialogUp;
    private java.awt.Label lblDialogDown;
    // End of variables declaration
    private boolean respuesta = false;
    }

    Hello
    This case works fine using following line to execute code after modal dialog:
    new Thread(new Runnable(){ public void run() { netCodeFunction(); }}).start();
    Regards

  • Dialog won't close in AFX CC

    I have updated my After Effects from CS6 to CC (13.0.2.3). I'm still trying to figure out why some of my scripts won't run anymore or why they make CC crash sometimes.
    Now, when one UI dialog calls another UI dialog, after a few clicks both of them will not close any more, neither by code (myDialog.close() returns undefined)  nor by clicking on the Close button of the dialog title bar.
    How come it worked in CS6 but now in CC it works for a few clicks only and then stops? What am I missing?
    Here's the stupid piece of code I wrote to test this:
    //DIALOG 1
    var dlg1 = new Window('palette', 'Dialog1', undefined);
    var btn1 = dlg1.add('button', undefined,'Call Dialog2');
    //Calls Dialog 2
    btn1.onClick = function()
        dlg1.close();
        dlg2.show();
    //DIALOG 2
    var dlg2 = new Window ('palette', 'Dialog2', undefined);
    var btn2 = dlg2.add('button', undefined,'Dialog1 Call');
    //Calls Dialog 1
    btn2.onClick = function()
        dlg2.close();
        dlg1.show();
    dlg1.show();

    //DIALOG 1
    var dlg1 = new Window('palette', 'Dialog1', undefined);
    var btn1 = dlg1.add('button', undefined,'Call Dialog2');
    //Calls Dialog 2
    btn1.onClick = function()
        dlg1.close();
        dlg2.show();
    //DIALOG 2
    var dlg2 = new Window ('palette', 'Dialog2', undefined);
    var btn2 = dlg2.add('button', undefined,'Dialog1 Call');
    //Calls Dialog 1
    btn2.onClick = function()
        dlg2.close();
        dlg1.show();
    dlg1.show();
    Use hide() instead of close(). close() is meant to kill the window instance. Unfortunately AE keeps every single window instance that gets created during a single session, so the old instance is seen, but doesn't contain anything. This thread explains a bit about what users were experiencing. Killing windows (palettes)

  • Screwed up Dialog won't close... have to terminate LabVIEW

    I've been playing with making custom dialog boxes in an attempt to spice up my applications.  Every-so-often I screw some code up and I have a dialog box as the "top" of my application that I cannot abort.  Ctrl+. does not abort the dialog and I can't click on the abort button in the main VI.  Is there anyway to abort the run w/o killing the LabVIEW process and re-openning all my files?

    See here.

  • Project & Sales order Closure before delivery complete

    Hello All,
    My client want to close the projects and sales order to close before meeting complete delivery lets take example:
    customer orders 100 quantity of an item and we have delivered 90 quantity than suddenly customer change the requirement to close this order. so our concern is to close this Sales order and project. we don't want to use option:
    1. we don't want to change the quantity in sales order and project to 90. this will effect in auditing.
    2. remaining quantity will be shown as delivery.
    Please suggest us to close the sales order & Project without affect in Auditing or any other account.
    thanks
    Sunil

    Hello Kishore,
    we have MTO scenario and our issue is to close the sales order, Project & Production order before deliver the complete quantity means when suddenly a customer close the order and our material related to that sales order or project is in process than how we can settle the sales order and project
    Example:  i have got order of 100 quantity regarding the sales order & we have issued the RM quantity to Production order. More over we have consumed 80 quantity and post in finished stock and other remaining 20 quantity is in process means that can be two type of process:
    first is material which we issued is in process and the status of the production order PCNF.
    Second the material is not in process and status of the production order is PCNF. when suddenly customer close the order.
    my question is if we face these type of condition how we should settle or close the sales order, project & production order.
    Please suggest for this case.
    Thanks
    Sunil

  • Help window blocked when accessed from modal dialog

    Activating my CSH from a modal dialog leaves not only the main frame inactive but the help window as well preventing further navigation in the help.
    Do I have to start the help in a separate JVM earning a load of communication problems or is there an elegant way to circumvent this restriction?
    I'd be happy for comments...
    Holger

    I think the following code will fix the problem. src is the modal dialog and m_broker is your help broker.
    We need the following call otherwise modal dialog won't allow the help dialog to gain focus when clicked on...
    ((DefaultHelpBroker)m_broker).setActivationWindow( src);

  • Standard function close Alt-F4 in modal dialog box

    hi,
    does anybody know how to activate the standard functions eg "close window" (Alt-F4) or terminate transaction in a modal dialog box (a dynpro-type modales Dialogfenster(in german)) eg the flying window of the system-status.
    i looked in the status of the status-dynpro, but could not find anything special about it.
    hints welcome...
    thanx a lot in advance. matthias kasig

    thanx - this solved my problem - but you have to catch a sy-ucomm with value '/CANCEL' - if you only catch 'CANCEL' it won't help - at least this works in my case - ta - i rewarded 10 points
    matthias kasig

  • SQL 2008 R2: Microsoft SQL Server Management Studio cannot shut down because a modal dialog is active. Close the active dialog and try again

    When starting SQL Server 2008 R2 it hangs , and I cannot exit...so when  trying to logoff to reset I get the following "Microsoft SQL Server Management Studio cannot shut down because a modal dialog is active. Close the active dialog and try again"Any
    ideas?

    Big edit...
    I have 2008 R2 SP2 installed on my Windows 7 Machine which is also fully updated.  The marked answer above is clearly not the solution.
    The fix I had posted before did not work.  It appeared to work temporarily, but now I am back to the same invisible dialogue.  I have not been able to identify any pattern by which this is triggered.  I can have an entire day without this
    issue and then it appears the next.
    The invisible modal dialogue is definitely the connection dialogue.  The only way out is to hit the escape key to close it, but then I am no better off without an ability to connect to a server.  The dialogue is still invisible when I re-open it.
    However, even as I type this post, I have just gotten the dialogue to appear after restarting Management Studio, hitting escape, then clicking connect again.  That same pattern failed just minutes ago numerous times.  Again, I can't find any pattern.
    See you in the clock tower.

  • How to create modal dialog to suspend menu activity until process completes

    I have a Swing application with several tabs, buttons, and menu items.
    When the user pushes some of the buttons, a background process is kicked off that may take some time to complete.
    When the process is finished, I get notification from a socket that the process has completed.
    I then display a dialog that notifies the user that the process has completed.
    All this is in place.
    What I need to do is to block the user from pushing any other buttons, selecting tabs or menu items while the process is in progress.
    My thought was to display a modal dialog with a message and no buttons to remove it,
    and then have the application dispose the dialog when I get the completion response.
    Is there a way to do this with a JOptionPane or some variant or do I need to create a modal dialog from scratch?
    Any suggestions?

    I was playing around with this a bit and I think it can be done.
    In the main class of my application, I have a variable
    public JFrame mainFrame;
    mainFrame = this.getFrame():
    In the page where I want to disable the application, I have the following:
    parent.mainFrame.setEnabled(false);
    (parent is a reference to the main class)
    When I get a response back from the socket, I can set
    parent.mainFrame.setEnabled(true);
    This seems to do what I want, but the fly in the ointment is that it disables the entire application.
    If I don't get a response, then the application is hung.
    Can't use the "X" button to close the application.
    I think I can work on some refinements from the clues given to make it work.
    Thanks for the feedback.

  • Can no longer open two Firefox tabs, have close using Task Bar/Processes. Some links won't activate on websites. As per support suggestion,have backed up profile, deleted existing profile, removed firefox and replaced thingsetc

    Can no longer open two Firefox tabs at the same time. Will disappear from screen but won't close - have to go to Task Bar/ Processes to close it, some links won't activate on websites. As suggested in the support area I have gone through the process of backing up my profile, deleted existing profile, removed firefox from computer, reinstalled profile in fresh folder, reinstalled firefox 6. I have done this twice for no effect - may work as it used to for a while (30mins) then gets back to its old tricks.
    It is a bit irritating.

    Sometimes a problem with Firefox may be a result of malware installed on your computer, that you may not be aware of.
    You can try these free programs to scan for malware, which work with your existing antivirus software:
    * [http://www.microsoft.com/security/scanner/default.aspx Microsoft Safety Scanner]
    * [http://www.malwarebytes.org/products/malwarebytes_free/ MalwareBytes' Anti-Malware]
    * [http://support.kaspersky.com/faq/?qid=208283363 TDSSKiller - AntiRootkit Utility]
    * [http://www.surfright.nl/en/hitmanpro/ Hitman Pro]
    * [http://www.eset.com/us/online-scanner/ ESET Online Scanner]
    [http://windows.microsoft.com/MSE Microsoft Security Essentials] is a good permanent antivirus for Windows 7/Vista/XP if you don't already have one.
    Further information can be found in the [[Troubleshoot Firefox issues caused by malware]] article.
    Did this fix your problems? Please report back to us!

  • Unable to close Modal dialog box

    Hello Friends,
    I am displaying a list in a Modal Dialog box. When I try to close the Modal dialog box. It is not getting closed.I have defined a gui status for this modal dialog box. PBO and PAI Coding is given below .
    module STATUS_0300 output.
      SET PF-STATUS 'STATUS_300'.
    SUPPRESS DIALOG.
      LEAVE TO LIST-PROCESSING AND RETURN TO SCREEN 0 .
      IF p_week IS NOT INITIAL.
        WRITE : text-009 COLOR 1.
      ENDIF.
      IF p_month IS NOT INITIAL.
        WRITE : text-010 COLOR 1.
      ENDIF.
      LOOP AT g_t_wkmon_error INTO g_s_wkmon_error.
        WRITE :/ g_s_wkmon_error-matnr,
                 g_s_wkmon_error-period,
                 g_s_wkmon_error-quantity.
      ENDLOOP.
    LEAVE SCREEN.
    endmodule.  
    module USER_COMMAND_0300 input.
    CASE ok_code.
      WHEN 'OK'.
       LEAVE PROGRAM.
    ENDCASE.
    endmodule. 
    Thanks in Advance.
    Hari

    Hi,
    Check the below thread
    Re: Unable to close modal dialog box
    " Make sure you select the Radio Button DIalog BOX Typ while creating the Status in PBO
    You can use SET SCREEN 0 In the above Thread
    MODULE user_command_0100 INPUT.
      CASE ok.
        when 'CANCEL'. " You Standard GUI options shown in The GUI Screen
          SET SCREEN 0.
      ENDCASE.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    module STATUS_0100 output.
    SET PF-STATUS 'ABC'. " This is of type Dailog Box type
    *  SET TITLEBAR 'xxx'.
    endmodule.                 " STATUS_0100  OUTPUT
    Hope this would resolve your Issue.
    Cheerz
    Ram
    Edited by: Ramchander Krishnamraju on Apr 16, 2010 1:16 PM

  • How to call jquery function when i close modal dialog box ?

    Hello,
    I need to call one jquery function when I click on close button of modal dialog box.Can anyone please let me know how can I implement it ?
    Thanks,
    Dipti Chhatrapati

    Hi Dipti,
    If my understanding is correct, you are using SP Modal Dialog and want to track the close event of this dialog. Then you may use
    dialogReturnValueCallback parameter of Options variable. Follow is the code sample:
    function ShowModal() {
        ExecuteOrDelayUntilScriptLoaded(function () {
            var options = {
                url: 'page1.aspx',
                tite: 'Add Title',
                width: 800,
                height: 450,
                allowMaximize: true,
                showClose: true,
                dialogReturnValueCallback: scallback
            SP.UI.ModalDialog.showModalDialog(options);
        }, 'sp.js');
     function scallback(dialogResult, returnValue) {
          if (dialogResult == SP.UI.DialogResult.OK) {
               // call your Jquery method here...
    Thanks, Ram

  • Modal dialog - refresh the parent page on close

    Hi:
    Using Apex 4.02
    I have followied Havard Kristiansen's modal dialog example.
    I have everyting working, but I have a requreimet to refresh the entire page (parent page) on the close of the modal page.
    I have tried quite a few things in dynamic actions on the parent page etc, but nothing is working.
    How can I get the parent page to fully refresh when the modal dialog is submitted and closed.
    Your help would be most appreciated.
    Regards,
    Bruce

    Hi:
    Please - still waiting for help.
    Here is what I have tired:
    - dynamic action on iframe for page unload to call window.opener.doSubmit() and parent.doSubmit();
    - dynamic action on button on ifreame same as above
    - branch (plsql) process to call above
    None of these worked. The modal dialog closes but the parent page dos not refesh.
    I can refresh a report region, but the problem is that the region I want to actually refresh is conditional and is not displayed when you first open the modal dialog. Hence, it does not appear on the return even though the condition is now true.
    Any help would be appreciated please!
    Regards,
    Bruce

  • In Unix, main JFrame focus not regained after modal dialog exit.

    Hi all,
    I'm new to this forum so hopefully this is the right place to put this question.
    I have a relatively simple GUI application written in Java 6u20 that involves a main gui window (extends JFrame). Most of the file menu operations result in a modal dialog (either JFileChooser or JOptionPane) being presented to the user.
    The problem is that when running on Unix (HPUX), the process of changing focus to one of these modal dialogs occasionally results in a quick flash of the background terminal window (not necessarily that used to launch the Java), and the process of closing the modal dialogs (by any means, i.e. any dialog button or hitting esc) doesn't always return focus to the main extended JFrame object, sometimes it goes to the terminal window and sometimes just flashes the terminal window before returning to the main JFrame window.
    I think the problem is with the Unix window manager deciding that the main focus should be a terminal window, not my Java application, since the problem occurs in both directions (i.e. focus from main JFrame to modal dialog or vice versa).
    In most cases of JOptionPane, I DO specify that the main extended JFrame object is the parent.
    I've tried multiple things since the problem first occured, including multiple calls to a method which calls the following:
    .toFront();
    .requestFocus();
    .setAlwaysOnTop(true);
    .setVisible(true);
    ..on the main JFrame window (referred to as a public static object)...
    just before and after dialog display, and following selection of any button from the dialogs. This reduced the frequency of the problem, but it always tends to flash the terminal window if not return focus to it completely, and when it occurs (or starts to occur then gets worse) is apparently random! (which makes me think it's an OS issue)
    Any help appreciated thanks,
    Simon
    Self-contained compilable example below which has the same behaviour, but note that the problem DOESN'T occur running on Windows (XP) and that my actual program doesn't use auto-generated code generated by a guibuilder:
    * To change this template, choose Tools | Templates 
    * and open the template in the editor. 
    package example;  
    import javax.swing.JOptionPane;  
    * @author swg 
    public class Main {  
         * @param args the command line arguments 
        public static void main(String[] args) {  
            java.awt.EventQueue.invokeLater(new Runnable() {  
                public void run() {  
                    new NewJFrame().setVisible(true);  
    class NewJFrame extends javax.swing.JFrame {  
        /** Creates new form NewJFrame */ 
        public NewJFrame() {  
            initComponents();  
        /** This method is called from within the constructor to 
         * initialize the form. 
         * WARNING: Do NOT modify this code. The content of this method is 
         * always regenerated by the Form Editor. 
        @SuppressWarnings("unchecked")  
        // <editor-fold defaultstate="collapsed" desc="Generated Code">  
        private void initComponents() {  
            jMenuBar1 = new javax.swing.JMenuBar();  
            jMenu1 = new javax.swing.JMenu();  
            jMenuItem1 = new javax.swing.JMenuItem();  
            jMenu2 = new javax.swing.JMenu();  
            setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);  
            jMenu1.setText("File");  
            jMenuItem1.setText("jMenuItem1");  
            jMenuItem1.addActionListener(new java.awt.event.ActionListener() {  
                public void actionPerformed(java.awt.event.ActionEvent evt) {  
                    jMenuItem1ActionPerformed(evt);  
            jMenu1.add(jMenuItem1);  
            jMenuBar1.add(jMenu1);  
            jMenu2.setText("Edit");  
            jMenuBar1.add(jMenu2);  
            setJMenuBar(jMenuBar1);  
            javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());  
            getContentPane().setLayout(layout);  
            layout.setHorizontalGroup(  
                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)  
                .addGap(0, 400, Short.MAX_VALUE)  
            layout.setVerticalGroup(  
                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)  
                .addGap(0, 279, Short.MAX_VALUE)  
            pack();  
        }// </editor-fold>  
        private void jMenuItem1ActionPerformed(java.awt.event.ActionEvent evt) {  
            int result = JOptionPane.showConfirmDialog(this, "hello");  
        // Variables declaration - do not modify  
        private javax.swing.JMenu jMenu1;  
        private javax.swing.JMenu jMenu2;  
        private javax.swing.JMenuBar jMenuBar1;  
        private javax.swing.JMenuItem jMenuItem1;  
        // End of variables declaration  
    }

    It won't comfort you much, but I had similar problems on Solaris 10, and at the time we traked them down to a known bug [6262392|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6262392]. The status of this latter is "Closed, will not fix", although it is not explained why...
    It's probably because the entry is itself related to another, more general, bug [6888200|http://bugs.sun.com/bugdatabase/view_bug.do;jsessionid=b6eea0fca217effffffffe82413c8a9fce16?bug_id=6888200], which is still open.
    So it is unclear whether this problem will be worked upon (I suspect that yes) and when (I suspect that... not too soon, as it's been dormant for several years!).
    None of our attempts (+toFront(...)+ etc...) solved the issue either, and they only moderately lowered the frequency of occurrence.
    I left the project since then, but I was said that the workaround mentioned in the first bug entry (see comments) doesn't work, whereas switching to Java Desktop instead of CDE reduced the frequency of the issues (without fixing them completely either) - I don't know whether it's an option on HPUX.
    Edited by: jduprez on Jul 9, 2010 11:29 AM

Maybe you are looking for

  • Volume control buttons don't work for iTunes in speaker mode

    Using onboard speakers (no headset on my iPhone 4S, the speaker buttons are not working.  In fact the slider ICON in missing in playing music as well as the ringer ICON that comes up when I press the buttons. I can go into settings, Sounds and manual

  • Null Pointer Exception While calling function

    Excuse my ignorance, as I just started programming in Java, but while trying to give control to a function other than main(), I get a null pointer exception. I don't think that I'm calling the function properly, because I feel that I may need to star

  • Color picker component

    Hi! Is there any color picker component out there ? I'd like to make something similar to the color picker buttons in the paintshop pro or photoshop toolbars, where you can see the current background and foreground colors to be used. Any help would b

  • Pixma MX922 lower cassette front "A" paper adjustment guide is stuck at A4 and cannot be adjusted

    no adjustment possible to std LTR , envelope and smaller size paper sizes. Any solution fo fix?

  • EJB + ODMiner

    I had earlier sent the following message and had recived the following message : </ EJB + oracle.dmt.odm.Connection Jan 26, 2005 11:44 AM Hello, I am developing a webbased application on java which also includes datamining. Now the structure of my pr