Why is Addseperator in FreeMenuPiece protected?

Hi, I use the FreeMenuPiece to define my application menu, but unfortunately the method Addseparator() is protected and i cannot access the method from my application “package”. I am sure this behaviour is wanted (why?). In this case … how can I add a separator and what I am doing wrong? Thanks Thargor

There is no real reason not to make these add/insertSeparator methods public, it seems just to be a “auto completion”-bug… For a quick workaround I suggest you just make a subclass to expose the methods:

  public void addSeparator(){

  public void insertSeparator(int index){

Thank you for the fast answer!