Maximize button in a modal dialog

Dear All,
     I have requirement. I want to show a maximize button in a modal dialog which has the same maximizing functionality of a frame. I find the JDialog which is a secondary window and doesn't have API to add/remove buttons directly to the title bar as in JInternalFrame. I show a table in a popup modal dialog. But when the no of columns is more, the user might find difficult to traverse the table. Instead if the maximize button is there he can maximize the dialog to see all the columns in one shot. So, what all i need is a modal dialog with a maximize button in the title bar. This is quite urgent!. Thanks for any thoughts, ideas or code snippets.
wbr,
Srinivasan Samivelu

Hi Srinivasan,
Have you got any solution for this.
If so,please let me know.I am facing similar problem.
Thanks in advance

Similar Messages

  • Firefox - Modal dialog present - Website timesout after clicking ok Button

    I'm having a problem with Firefox.  Whenever there's a popup alert window, I keep getting the error "OpenQA.Selenium.UnhandledAlertException: Modal dialog present". 
    The workaround I found to prevent from getting this error is the following.  The popup message appears after clicking the "Save" Button on a page, instead of declaring that save button as a "HtmlInputButton", I declare it as a
    "WinControl" and that stops the Exception from happening.
    The problem I'm having now is that, after clicking the OK Button on the Modal Dialog popup, the website just hangs and the script timesout because it's waiting for the site that never stops loading.  If I stop my script, then the websites loads right away.
    Anyone else have this problem?  Know of a workaround?
    Thanks!

    Hi xXxGIOxXx,
    Thank you for posting in the MSDN forum.
    Based on your description, this issue is related to this extension tool:
    Selenium components for Coded UI Cross Browser Testing
    Actually we don’t support this tool, but I also found that you have posted this issue in above link, I think you would get dedicated support from this extension tool expert. Thanks for your understanding.
    Sincerely,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Module Pool - Error message on a Modal Dialog screen with input

    Hello All,
    I have a modal dialog screen which is called on F4 help of a input field. This dialog screen has radio buttons on it to select. On selection, we check if the user is authorized to that option. If not, raise and error message with command MESSAGE msgid.....
    When the error message pops-up and when clicked ok on it, the radio buttons on the modal dialog screen gets disabled. I want to have the modal dialog box to be able to accept the new radio button as input.
    Can anyone please suggest.
    Thanks,
    Smita

    Put all of your Radio buttons in the CHAIN ... ENDCHAIN with one module.
    CHAIN.
        FIELD rb1.
        FIELD rb2.
        FIELD rb3.
        MODULE check_chain ON CHAIN-REQUEST.   "<< implement logic in check_Chain
      ENDCHAIN.
    If you want, you can even disable the options before displaying the screen. Do all necessary checks in the PBO and based on that disable the options.
    Regards,
    Naimesh Patel

  • Open Modal Dialog in Photoshop (Mac)

    I can't seem to open a modal dialog in Photoshop on the Mac with the CS SDK. The code works fine in InDesign. In Photoshop, the modality is there (the application responds to mouse clicks with a bell) but the window is not visible. Here is my mx:WindowedApplication:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
         <mx:Script>
              <![CDATA[
                   import com.adobe.csxs.types.CSXSWindowType;
                   import mx.core.Window;
                   protected function onClick(event:MouseEvent):void
                        var w:Window = new TestDialog();
                        if (w) {
                             w.type = CSXSWindowType.MODAL_DIALOG;
                             w.resizable = false;
                             w.open();
              ]]>
         </mx:Script>
         <mx:Button x="10" y="10" label="Open Popup" click="onClick(event)"/>
    </mx:WindowedApplication>
    The Window itself is more or less copied from the "MakeSideHeads" sample project:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Window xmlns:mx="http://www.adobe.com/2006/mxml"
                 title="Test"
                 titleAlignment="center"
                 layout="absolute"
                 width="300"
                 height="100"
                 showStatusBar="false">
         <mx:Script>
              <![CDATA[
                   private function myCloseWindow():void{
                        this.close();
              ]]>
         </mx:Script>
         <mx:Canvas width="100%" height="100%" id="TestPanel" backgroundColor="#D2D2D2">
              <mx:VBox verticalAlign="middle" horizontalAlign="center" height="100%" width="100%">
                   <mx:HBox height ="90%" width="100%">
                        <mx:Text width="100%" height="100%" text="Some Text"/>
                   </mx:HBox>
                   <mx:HBox  height = "10%" horizontalAlign="center">
                        <mx:Button id="CloseButton" label="Close" click="myCloseWindow()" />
                   </mx:HBox>
              </mx:VBox>
         </mx:Canvas>
    </mx:Window>
    This seems like quite a significant bug. Or am I missing something?

    Hello,
    I've tested this one and it works.
    main.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <csxs:CSXSWindowedApplication xmlns:csxs="com.adobe.csxs.core.*"
         xmlns:mx="http://www.adobe.com/2006/mxml"
         historyManagementEnabled="false">
         <mx:Script>
              <![CDATA[
                   import com.adobe.csxs.types.CSXSWindowType;
                   import mx.core.Window;
                   import ModalDialog;
                   public function showModal():void
                        var window:Window = new ModalDialog;
                        window.type = CSXSWindowType.MODAL_DIALOG;
                        window.resizable = false;
                        window.open();
              ]]>
         </mx:Script>     
              <mx:Button label="Display Modal Dialog" click="showModal()"/>          
    </csxs:CSXSWindowedApplication>
    The following is the ModalDialog.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Window
         xmlns:mx="http://www.adobe.com/2006/mxml"
         layout="absolute"
         width="300"
         height="200"
         creationComplete="onCreationComplete()"
         title="Modal Dialog"
         >
         <mx:Script>
              <![CDATA[
                   private function onCreationComplete():void
                        //Center the window on the screen
                        var screenBounds:Rectangle = Screen.mainScreen.bounds;
                        nativeWindow.x = (screenBounds.width - nativeWindow.width) / 2;
                        nativeWindow.y = (screenBounds.height - nativeWindow.height) / 2;
              ]]>
         </mx:Script>
         <mx:VBox verticalAlign="middle" textAlign="center" horizontalAlign="center">
              <mx:HBox horizontalAlign="center">
                   <mx:Label text = "This is an example of a modal dialog box."/>
              </mx:HBox>
              <mx:HBox horizontalAlign="center">
                   <mx:Button label = "Close" click="close()"/>
              </mx:HBox>
         </mx:VBox>
    </mx:Window>

  • Modal Dialog different in FF and IE

    Hello,
    i have a report (page 5) with a link column and other columns. the link column starts with dynamic action a modal-dialog. the content of this modal dialog comes from page 200.
    On this page 200 there are some text-fields, check boxes, select-lists. All works fine in FF. The user click on the link, the modal-dialog opens, the user click in the text-fields and can enter the text. After the user click a save-button in the modal dialog, a save-process starts and next the modal dialog closed. Now, the user can click the next link in a other row...
    If i use Internet Explorer 8 the user can open the modal dialog and enter the text. After closing the modal dialog and open with a link on an other row the modal dialog open, but the user can't click in the text-fields. The behavior is like a read-only-field. Only the user click on the label from the text-field, then the user can fill in the text. If the page 5 with the report are submitted after every modal dialog shows then it works also in IE.
    Any idea?
    Best regards,
    Carsten

    I will mark your above post as the solution as you indicate that you were able to fix it.
    If you still have questions then you can click the Undo button next to your reply to remove the solution.

  • How to dispose the modal dialog box

    hi all
    can any one please tell me how to supress the modal dialog box.
    Means iam triggering the a new pop up (modal dialog box) after this
    when iam click ok or cancel buttons on this modal dialog box it is not returing to
    the screen from where it is tiggering. Can any one tell how to achieve this.
    what r the statements i have to write for this in the PAI.

    HI,
    in PAI u have to write like..
    CASE OK_CODE.
    WHEN 'OK'.
    UR CODE.........
    WHEN 'CANC'.
       SET SCREEN 0.
       LEAVE SCREEN.
    OR
       LEAVE TO SCREEN XXX. " UR CALLING SCREEN NUMBER
    ENDCASE.
    Pls close the thread if the problem is solved and reward to all helpful answers.
    Regards
    SAB

  • Modal Frame or Dialog with Minimize/Maximize buttons

    I want to create a window (dialog or frame) that is modal and has the minimize/maximize buttons. Is it possible? How?
    I normally would use a dialog if I wanted the window to be modal, but a dialog does not have the minimize/maximize buttons. I normally would use a frame if I wanted the window have the minimize/maximize buttons, but a frame cannot be modal.
    Any suggestions, please?

    You can make your "modal panel" listener the window events from all others frames:
    public class YourModalFrame extends JFrame implements WindowListener{
      public YourModalFrame(JFrame owner){
        super("Modal Frame");
        this.owner = owner;
        // we put a glass panel into the main frame
        JPanel glassPanel = new JPanel();
        glassPanel.setOpaque(false);
        glassPanel.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
        // blocking the events!!!
        glassPanel.addKeyListener        (new KeyAdapter()        {});
        glassPanel.addMouseListener      (new MouseAdapter()      {});
        glassPanel.addMouseMotionListener(new MouseMotionAdapter(){});
        owner.setGlassPane(glassPanel);
        // the frame will listener owner windows events
        owner.addWindowListener(this);
      // Window Listener  //
       * Invoked the first time a window is made visible.
      public void windowOpened(WindowEvent e){}
       * Invoked when the user attempts to close the window
       * from the window's system menu.  If the program does not
       * explicitly hide or dispose the window while processing
       * this event, the window close operation will be cancelled.
      public void windowClosing(WindowEvent e){}
       * Invoked when a window has been closed as the result
       * of calling dispose on the window.
      public void windowClosed(WindowEvent e){}
       * Invoked when a window is changed from a normal to a
       * minimized state. For many platforms, a minimized window
       * is displayed as the icon specified in the window's
       * iconImage property.
       * @see java.awt.Frame#setIconImage
      public void windowIconified(WindowEvent e){
        // Do you want this too?
        //super.setState(JFrame.ICONIFIED);
       * Invoked when a window is changed from a minimized
       * to a normal state.
      public void windowDeiconified(WindowEvent e){
        if(super.getState() == JFrame.ICONIFIED)
          super.setState(JFrame.NORMAL);
        this.requestFocus();
       * Invoked when the window is set to be the user's
       * active window, which means the window (or one of its
       * subcomponents) will receive keyboard events.
      public void windowActivated(WindowEvent e){
        this.requestFocus();
       * Invoked when a window is no longer the user's active
       * window, which means that keyboard events will no longer
       * be delivered to the window or its subcomponents.
      public void windowDeactivated(WindowEvent e){}
    }

  • Multiple Modal dialogs by clicking multiple times on a button

    I have an application where all dialogs are modal. Clicking on a button opens another dialog box. If I click very quickly three four times, two three dialog box of the same type are opened.
    How to avoid this situation.
    Thanks.

    >
    Java is a little slow with mouse events.Java isn't slow with mouse events, the fact that he's getting multiple dialogs shows this. The real problem is that you need to maintain state of your gui and not let the user do things that you know shouldn't happen. You can't depend on modal dialogs to block all user input. Nor can you depend on the event thread to process events quickly.
    Actually, I've found that the reason that I miss events in my application is because I put a large block of code in the event handler. You really have to put as little code in the event handlers as possiable. This usually means that you should delay all processing until you need to display something. Like not processing a mouse event, just copying the values out of it ( X and Y ) and waiting for a paint call to actually figure out what happened. This keeps your gui more responsive.

  • How to finish several modal dialogs by  "OK"-labeled Buttons ?

    Hello community !
    In my Applet I use some modal dialogs . Each of them should be finished by pressing the "OK"-labeled Button . In my ActionListener class there would be statements like that:
    if(labeltest.equals("OK"))
    dialog1.dispose();
    if(labeltest.equals("OK"))
    dialog2.dispose();
    if(labeltest.equals("OK"))
    dialog3.dispose();
    But how to distinguish them ? Is this possible or not ?

    Your description of JOptionPane.ShowXxxDialog-Methods is interesting . I haven't known before . My question was how to finish ...I think , I did show it to abstract , why I want to solve the problem this way , but it works . Here are the code sequences for those 3 "OK"-Buttons:
         Button okbutton = new Button();
         Button ok2button = new Button();
         Button ok3button = new Button();
    // --------------- create Info-Window (Dialog) -------------------------
    // *use okbutton*
         dialog.setSize(600,600);
         dialog.addWindowListener(
                new WindowAdapter()
                   public void windowClosing(WindowEvent e)
                    dialog.setVisible(false);
         dialog.setVisible(false);
         JPanel p = new JPanel();
         p.setLayout(new BoxLayout(p,BoxLayout.Y_AXIS));
         Label lprodukt = new Label("Product :  ...");
         Label lversion = new Label("Version : ...");
         Label lautor = new Label("Author     :  ...");
         Label llabor = new Label("Department: ...");
         Label lcopyright = new Label("Copyright (c) ...");
         lprodukt.setFont(new Font(Font.SANS_SERIF, Font.PLAIN, 18));
         lversion.setFont(new Font(Font.SANS_SERIF, Font.PLAIN, 18));
         lautor.setFont(new Font(Font.SANS_SERIF, Font.PLAIN, 18));
         llabor.setFont(new Font(Font.SANS_SERIF, Font.PLAIN, 18));
         lcopyright.setFont(new Font(Font.SANS_SERIF, Font.PLAIN, 18));
    //     Button okbutton = new Button();
         okbutton.setFont(new Font("Arial", Font.PLAIN, 20));
         okbutton.setLabel("OK");
         okbutton.addActionListener(new CMeinActionLauscher());
         p.add(lprodukt);
         p.add(lversion);
         p.add(lautor);
         p.add(llabor);
         p.add(lcopyright);
         Panel panel2 = new Panel();
         panel2.setLayout(new FlowLayout());
         panel2.add(okbutton);
         dialog.setLayout(new BorderLayout());
         dialog.add(p,BorderLayout.CENTER);
         dialog.add(panel2,BorderLayout.SOUTH);
         dialog.pack();
         // -------------------- Info-Window End ---------------------------------
    // --------------- create Error-Window1 (Dialog) -------------------------
    // *use ok2button*
         derror.setSize(400,600);
         derror.addWindowListener(
                new WindowAdapter()
                   public void windowClosing(WindowEvent e)
                    derror.setVisible(false);
         derror.setVisible(false);
         JPanel ep = new JPanel();
         ep.setLayout(new BoxLayout(ep,BoxLayout.Y_AXIS));
         Label text1 = new Label("       Filetyp has to be  \".ATT\"  !!!");
         text1.setFont(new Font(Font.SANS_SERIF, Font.PLAIN, 18));
    //     Button ok2button = new Button();
         ok2button.setFont(new Font("Arial", Font.PLAIN, 20));
         ok2button.setLabel("OK");
         ok2button.addActionListener(new CMeinActionLauscher());
         ep.add(text1);
         Panel epanel2 = new Panel();
         epanel2.setLayout(new FlowLayout());
         epanel2.add(ok2button);
         derror.setLayout(new BorderLayout());
         derror.add(ep,BorderLayout.CENTER);
         derror.add(epanel2,BorderLayout.SOUTH);
         derror.pack();
         // -------------------- Error-Window1 End --------------------------------
      // --------------- create Error-Window2 (Dialog) -------------------------
    // *use ok3button*
       doperr.setSize(400,600);
         doperr.addWindowListener(
                new WindowAdapter()
                   public void windowClosing(WindowEvent e)
                    doperr.setVisible(false);
         doperr.setVisible(false);
         JPanel op = new JPanel();
         op.setLayout(new BoxLayout(op,BoxLayout.Y_AXIS));
         JLabel optext1 = new JLabel("Operanderror occured !!!");
         optext1.setFont(new Font(Font.SANS_SERIF, Font.PLAIN, 18));
         System.out.println("operror: "+operror.getText());
         operror.setFont(new Font(Font.SANS_SERIF, Font.PLAIN, 18));
         JLabel optext2 = new JLabel("Korrektur vom Entwickler anfordern !!!");
         optext2.setFont(new Font(Font.SANS_SERIF, Font.PLAIN, 18));
    //     Button ok3button = new Button();
         ok3button.setFont(new Font("Arial", Font.PLAIN, 20));
         ok3button.setLabel("OK");
         ok3button.addActionListener(new CMeinActionLauscher());
         op.add(optext1);
         op.add(operror);
         op.add(optext2);
         Panel opanel2 = new Panel();
         opanel2.setLayout(new FlowLayout());
         opanel2.add(ok3button);
         doperr.setLayout(new BorderLayout());
         doperr.add(op,BorderLayout.CENTER);
         doperr.add(opanel2,BorderLayout.SOUTH);
         doperr.pack();
      // -------------------- Error-Window2 End --------------------------------
      class CMeinActionLauscher implements ActionListener
        public void actionPerformed(ActionEvent e)
          String label;
          boolean result = false;
          Object source = e.getSource();
          label = e.getActionCommand();
          System.out.println("label: "+label);
          if(label.equals("Programm beenden"))
             System.exit(0);
          if(label.equals("Öffnen"))
             DateiLaden();
          if(label.equals("Info"))
              dialog.setBounds(450,400,400,260);
              dialog.setVisible(true);
              dialog.pack();
          if(label.equals("Beschreibung Software-Id-Verwaltung"))
    //          doku.setBounds(550,350,950,600);
              doku.setBounds(400,350,950,600);
              try
                  System.out.println("url: "+url);
                  JEditorPane htmlPane = new JEditorPane( url );
                  htmlPane.setEditable( false );
                  htmlPane.setContentType("text/html");
                  htmlPane.putClientProperty(JEditorPane.W3C_LENGTH_UNITS, Boolean.TRUE);
                  htmlPane.setFont(new Font(Font.SANS_SERIF, Font.PLAIN, 18));
                  htmlPane.validate();
                  htmlPane.repaint();
                  doku.add( new JScrollPane(htmlPane) );
                  System.out.println("url: "+url);
              } catch( IOException eio )
                    System.err.println( "Error displaying " + url );
              doku.setVisible(true);
    //          doku.pack();
          if(label.equals("SYSCON-Kdo erzeugen"))
             KdoErzeugen();
            if (source == ok2button)
                derror.setVisible(false);
                derror.dispose();
            if (source == ok3button)
                doperr.setVisible(false);
                doperr.dispose();
            if (source == okbutton)
                dialog.setVisible(false);
                dialog.dispose();
      }For the ok2button I could use JOptionPane.showMessageDialog but how to do it for th otherones ?

  • 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

  • GUI hangs after it fail to pop up a modal dialog

    Hi everyone! I have a swing application that will pop up a log off confirm dialog (modal) when the user click on the "log off" button. It works fine for about 8 hours. Then when I click on the "log off" button, the dialog never pop up and the GUI is freezed, which means it does not react to user mouse click anymore, like a hidden modal dialog is in front. But actually there is no hidden dialog.
    At the same time, my windows XP freeze also. I cannot even open a folder. Then I kill the winrunner, and the XP is able to open a folder, but my GUI is still freeze. No exception behind and all threads are running. I can use some test script to control the GUI, but somehow it just never react to user click.
    Does anyone encounter the same problem and know the possible reason?
    Thanks!

    Hi motes_19:
    I have noteiced this as well in an application that I have created...however, my app doesn't freeze and the OS still runs (Win 2000). I suspect that your problem might be that you aren using the SwingUtilities.invokedLater() or SwingUtilities.invokeAndWait() methods to update your GUI. I am using them and still having some intermitten problems. Hope this helps you...if you have a solution for me, let me know.
    EH

  • How to remove the default icons from the toolbar of modal dialog box screen

    Hello Friends,
    Iam calling a screen from function module using CALL SCREEN statement.
    The screen is of type Modal Dialog Box. I created some input fields and buttons in the screen. When the screen is displayed, I can see the tool bar at the bottom along with the input fields and buttons in the screen.
    These icons are Continue(Enter), Check, Cancel. How can I supress this??
    I mean in my screeen I want only my input fields and buttons but not the default toolbar. How to do that?
    Regards,
    Raju

    Hi Raju,
    Try this...
    First try to capture the F-codes of ur button apppearing on the dialog box and then exclude it from the PF-status by passing it to itab.
    types: begin of tab_type,
            fcode like rsmpe-func,
           end of tab_type.
    data: tab type standard table of tab_type with
                   non-unique default key initial size 10,
          wa_tab type tab_type.
    clear tab.
    move 'DELE' to wa_tab-fcode.
    append wa_tab to tab.
    move 'PRIN' to wa_tab-fcode.
    append wa_tab to tab.
    set pf-status 'STA3' excluding tab.
    Cheers,
    Simha.
    Reward all the helpful answers..

  • Skillbuilders modal dialog - condition for parent page dialog

    Hi
    When using this awesome plugin, I have a dynamic action on my calling page that deals with the selection from the dialog.
    It uses
    Select type:DOM Object
    DOM Object: document
    Condition: javascript expression
    ($v('P110_PROD_SEARCH') == 'BLAH')
    where the js expression is making sure I run the correct dynamic action, particularly when I have a few buttons on the page invoking different variations of the modal dialog.
    My first action is some javascript that interrogates the value of
    this.data.modalPageCloseValue
    this helps me make decisions in later actions on whether to run some pl/sql, for instance
    In light of a recent question of mine regarding a potential APEX bug (Display item with HTML affected by dynamic action and since we can't put conditions on actions - I was wondering if I could incorporate something into my dynamic action condition to stop the entire dynamic action from executing if modalPageCloseValue is null - but it seems to be out of scope?
    Scott

    Scott,
    You're current condition is:
    $v('P110_PROD_SEARCH') == 'BLAH'Just change that to:
    $v('P110_PROD_SEARCH') == 'BLAH' && this.data.modalPageCloseValueRegards,
    Dan
    blog: http://DanielMcghan.us/
    work: http://SkillBuilders.com/APEX/
    twitter: https://twitter.com/dmcghan

  • How can I control modal dialogs in Applescript without a mouse?

    I am trying to use a Griffin PowerMate button to select between two options in an Applescript modal dialog and cannot seem to figure out how to do this. I can set a default button, but I want the user to select between two options (shifting the highlighted button) via the PowerMate. Does anyone have a suggestion?
    I can program the PowerMate to send/emulate a particular keystroke, but I do not know how to make the standard Applescript dialog respond to a keystroke, only a mouse action. I'm trying to create a mouseless interface.
    In short, I want the dialog respond to "Twist to the left and press the button to select A, Twist to the right and press the button to select B." Thoughts?
    Thank you.

    Your System Preferences > Keyboard Shortcuts > Full Keyboard Access preference will need to be set to "all controls", but it also depends on where the particular button is located in the dialog.  The tab key will highlight the buttons from left to right, shift-tab will highlight the buttons from right to left, and the spacebar will "press" the currently highlighted button.  In addition, the escape key will choose the Cancel button (if there is one), and the return key will choose the default button (if a default has been set the button itself will be lit).

  • 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

  • Unable to pair remote with iMac

    I have checked various times if Home Sharing is enabled both on my mobile device and computer, logged in and out of my account, my itunes account on both my iMac and mobile device (iPod Touch 5th gen) are synced. I checked the firewall too, everythin

  • Mail trigger to the customer

    HI we have the scenario like , we create the quotation in CRM and after creation we release the quotation , after release at the time of saving the document , system has to trigger a mail to the customer that is quotation printout . So for sending qu

  • Poll: which new features will be available in Adobe 10?

    I just learned that emloyees of Adoba are not allowed to communicate the details of the new product. But what I am interested in is what YOU think will be in it. and maybe some good idead will come from this for Adobe-development in the future. I am

  • IDVD menu edges are getting clipped

    I have been struggling hard to burn a 70 min DVD (movies + slideshow) to play it on my dvd player. It looks like i have to switch to some other DVD burning software (nero) because of not able to solve the problems: 1. Edges are getting clipped . I ha

  • Trouble 'putting' files

    Hello. I'm having a bit of frustration with Dreamweaver. When I try to use the 'put' option to upload a file to my remote site, the file will only save to the root directory. Example: I tried to save a new .html document to a directory called Spiderm