X

Geertjan's Blog

  • July 15, 2011

Decreasing the Height of the PinkMatter Flamingo Ribbon Bar (Part 2)

Geertjan Wielenga
Product Manager
Bruce Schubert provided a patch for the PinkMatter Ribbon toolbar, which decreases the height of the toolbar (real estate is important in many NetBeans Platform applications), by changing the application menu and removing the task bar. (Part 1 describes different approaces to the same end.)

By default, this is what the PinkMatter Ribbon toolbar looks like:

...and, with Bruce's changes, this is what it can look like instead:

You end up saving some space, while still having the nice Flamingo ribbon toolbar, as before.

To use this implementation of the PinkMatter ribbon toolbar, check out the ribbon bar as explained in the tutorial and change the class "com.pinkmatter.modules.flamingo.LAFConfiguration" as indicated below:

class LAFConfiguration {
public static Object[] getClassDefaults() {
return new Object[]{
"RibbonApplicationMenuButtonUI",
"com.pinkmatter.modules.flamingo.NbRibbonApplicationMenuButtonUI"
//Replace the above line with the below to use Bruce's patch:
//"RibbonUI", "com.pinkmatter.modules.flamingo.FileRibbonUI",
//"RibbonApplicationMenuButtonUI",
// "com.pinkmatter.modules.flamingo.FileRibbonApplicationMenuButtonUI"
};
}
}

Thanks Bruce!

Join the discussion

Comments ( 1 )
  • Miguel Angel Sunday, July 28, 2013

    Hi Geertjan!

    I would know how I can achieve this change in the insubstancial-flamingo library. In my case, I want to remove the upper taskbar and have only the ribbon section. However, the flamingo api do not expose methods to do that.

    I followed your tutorial but I was not able to achieve the final aparience. Notice that I do not using the netbeans platform, but I'm very interested in achieve the aparience that your did with the netbeans platform.

    Thanks in advance.

    Greetings!


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