Forum@carlsbadcubes.com wrote:
> I agree it's not used that much (though we do use it)
> but this can be seen rather as a framework consistency issue then a
> practical one.

Hello,

Indeed, the framework is more consistent by that.

I integrated your patch and wrote a small sample program for it to test
it. Unfortunatly, I have some problems regarding my CVS access to
cvs.dev.java.net. Will try again tomorrow...

Yours,

Frank

> 
> Regards,
> Vitali
> 
> 2005/8/22, Forum@carlsbadcubes.com <Forum@carlsbadcubes.com>:
> 
>>Hello Vitali,
>>
>>this sounds sensible and useful to me. Allthough the constraints of a menu 
>>bar seems to be not used *that* much (or this would have been discovered 
>>earlier) I would like to integrate it.
>>
>>Wolf, any objections?
>>
>>Frank
>>
>>List for Users of Carlsbad Cubes' Technologies and Products 
>><Forum@carlsbadcubes.com> schrieb am 22.08.05 17:06:49:
>>
>>>Hello,
>>>
>>>specifying constraints attribute for menubar tag doesn't have any affect.
>>>here is the possible fix for the problem. Parser.addChild method
>>>should be modified like this:
>>>
>>>      //  Set a JMenuBar for JFrames, JDialogs, etc.
>>>      //
>>>      if (component instanceof JMenuBar) {
>>>        try {
>>>          Method m = parent.getClass().getMethod("setJMenuBar", new
>>>Class[]{JMenuBar.class});
>>>          m.invoke(parent, new Object[]{component});
>>>        } catch (NoSuchMethodException e) {
>>>!                       if (constrains == null) {
>>>!                               parent.add(component);
>>>!                       }
>>>!                       else {
>>>!                               parent.add(component, constrains);
>>>!                       }
>>>        } catch (Exception e) {
>>>          // intentionally empty
>>>        }
>>>
>>>Regards,
>>>Vitali
>>>
>>>_______________________________________________
>>>Forum mailing list
>>>Forum@carlsbadcubes.com
>>>http://carlsbadcubes.com/mailman/listinfo/forum_carlsbadcubes.com
>>
>>
>>
>>_______________________________________________
>>Forum mailing list
>>Forum@carlsbadcubes.com
>>http://carlsbadcubes.com/mailman/listinfo/forum_carlsbadcubes.com
>>
> 
> 
> _______________________________________________
> Forum mailing list
> Forum@carlsbadcubes.com
> http://carlsbadcubes.com/mailman/listinfo/forum_carlsbadcubes.com
> 


_______________________________________________
Forum mailing list
Forum@carlsbadcubes.com
http://carlsbadcubes.com/mailman/listinfo/forum_carlsbadcubes.com

Reply via email to