Login | Register
My pages Projects Community openCollabNet

Discussions > dev > A weird problem of JMenuBar in JGraphFrame

gef
Discussion topic

Back to topic list

A weird problem of JMenuBar in JGraphFrame

Reply

Author johnnycoding
Full name Johnny
Date 2007-08-12 06:29:41 PDT
Message Hi Bob,

This weekend I spent much time to investigate why our JMenuBar and
ToolBar are not appearing in swt.JGraphFrame.

I did some research on swingwt documents and usage of swingwt
JMenuBar. It seems there's no error in our code. I tried a lot of
methods over this weekend to test and test ...

Now I copied org.tigris.gef.test/​Everything.java from swingwt demo and
modified it to use our setupMenus and interfaces then all menus show
up! However, I copied the working code block in Everything.test() to
swt.JGraphFrame.init() and run BasicApplication to test. It doesn't
work. Then I doubt it's because of something wrong in crossing
project(gefdemo and gef). So I tried to create a swt.JGraphFrame class
in Everything.test() to test the code block copied in
JGraphFrame.init(). The exactly same code block in JGraphFrame doesn't
work for JMenuBar! (all other components work, including ToolBar,
StatusBar etc.) but it works in Everything.test(). I couldn't spot any
difference.

Can you please have a look at the scenario and let me know what make
the difference? I have no idea now.

If we can solve this, JMenuBar and ToolBar will come to our window
straightway. Then I can focus on fixing and implementing the remaining
uncompleted functionality.

Thanks!

Kind regards,

Johnny.

« Previous message in topic | 1 of 5 | Next message in topic »

Messages

Show all messages in topic

A weird problem of JMenuBar in JGraphFrame johnnycoding Johnny 2007-08-12 06:29:41 PDT
     Re: A weird problem of JMenuBar in JGraphFrame bobtarling Bob Tarling 2007-08-14 16:28:23 PDT
         Re: [gef-dev] Re: A weird problem of JMenuBar in JGraphFrame johnnycoding Johnny 2007-08-15 15:26:51 PDT
             Re: [gef-dev] Re: A weird problem of JMenuBar in JGraphFrame johnnycoding Johnny 2007-08-15 15:29:42 PDT
                 Re: [gef-dev] Re: A weird problem of JMenuBar in JGraphFrame bobtarling Bob Tarling 2007-08-15 15:39:20 PDT
Messages per page: