Vitali,
Thanks, good catch. I will put your suggestion into CVS today.
Expect it to be available in the upcoming distribution later this week.
 

--

Wolf Paulus

707.202.3937

[EMAIL PROTECTED]


C a r l s b a d  C u b e s

Dedicated to Excellence 


CONFIDENTIALITY NOTICE:

This message is intended only for the use of the individual or entity to which it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.



On Jun 1, 2005, at 8:28 AM, [EMAIL PROTECTED] wrote:

Hello,

when in swixml descriptor menubar has different parent then jframe, it
won't show up.
after looking into source code I found where the problem was. It's in
the Parser.addChild method.
This could be a fix:

***************
*** 784,794 ****
      if (component instanceof JMenuBar) {
        try {
          Method m = parent.getClass().getMethod( "setJMenuBar", new
Class[]{JMenuBar.class} );
!         if (m != null) {
!           m.invoke( parent, new Object[]{component} );
!         } else {
!           parent.add(component);
!         }
        } catch (Exception e) {
          // intentionally empty
        }
--- 784,792 ----
      if (component instanceof JMenuBar) {
        try {
          Method m = parent.getClass().getMethod( "setJMenuBar", new
Class[]{JMenuBar.class} );
!         m.invoke( parent, new Object[]{component} );
!       } catch (NoSuchMethodException e) {
!               parent.add(component);
        } catch (Exception e) {
          // intentionally empty
        }

Cheers,
Vitali

_______________________________________________
Forum mailing list


_______________________________________________
Forum mailing list
[EMAIL PROTECTED]
http://carlsbadcubes.com/mailman/listinfo/forum_carlsbadcubes.com

Reply via email to