To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=49403
                  Issue #:|49403
                  Summary:|OOoBean: Office looses count of frames
                Component:|api
                  Version:|680m100
                 Platform:|All
                      URL:|
               OS/Version:|All
                   Status:|NEW
        Status whiteboard:|
                 Keywords:|
               Resolution:|
               Issue type:|DEFECT
                 Priority:|P3
             Subcomponent:|code
              Assigned to:|jl
              Reported by:|jl





------- Additional comments from [EMAIL PROTECTED] Tue May 17 09:04:41 -0700 
2005 -------
Running a test where the bean is repetedly added and removed to a frame, showed
that the office looses track of the count of open frame. That is the small cross
in the menu bar is not there. When one open a new window (menu Window->New
Window) and close that window then the cross appears.

       try{
           
           final OOoBean bean = new OOoBean();
           java.awt.Frame frame = new java.awt.Frame("OpenOffice.org Demo");
           frame.add(bean, BorderLayout.CENTER);
           frame.pack();
           frame.setSize(600,300);
           frame.show();
           bean.loadFromURL("private:factory/swriter", null);
 
           for (int i = 0; i < 100; i++)
           {
               frame.remove(bean);
               frame.add(bean, BorderLayout.CENTER);
               frame.validate();
           }
           frame.addWindowListener( new WindowAdapter() {
               public void windowClosing( java.awt.event.WindowEvent e) {
                   try {
                   bean.stopOOoConnection();
                   } catch (Exception exc) {
                   }
                   
                   ((java.awt.Window)e.getSource()).dispose();
               }
               
           });
           
       } catch(Exception e) {
           int a = 3;
       }       
   }

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to