X

Geertjan's Blog

  • October 14, 2011

JDesktopPane on the NetBeans Platform (Part 2)

Geertjan Wielenga
Product Manager

In part 1, you saw Jesse Glick's solution for a JDesktopPane on the NetBeans Platform. I've been playing with the latest sources he's provided, which now work on 7.1:

https://bitbucket.org/jglick/dynamicmenudemo

So, now, when "Win1" is selected below, dedicated menu items and toolbar buttons appear in the main window:

...while, if Win2 is selected, other menu items and toolbar buttons are shown/hidden:

If interested in this functionality, download the sources from the link above.

Join the discussion

Comments ( 2 )
  • Grant Harris Sunday, October 16, 2011

    Geertjan -

    Hi. This is a great addition. (Thanks, Jesse.)

    Given the way you are showing it, I would infer that this approach could be used to implement the type of document interface/desktop that we have used in ImageJ - it is Macintosh-like, "somewhat similar to MDI with a fullscreen see-through parent window" (see Macintosh section in

    http://en.wikipedia.org/wiki/Multiple_document_interface).

    -- Grant

    (BTW, the link to the source should be: https://bitbucket.org/jglick/dynamicmenudemo Looks like an extra '.' in your link.)


  • Geertjan Sunday, October 16, 2011

    Hi Grant, glad you like it and thanks for noting the error in the link, fixed it. Gj


Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.