public void menuEntryActivated(JPanel param1JPanel)
            {
                param1JPanel.removeAll();
                param1JPanel.Layout = new BorderLayout();
                CostOSRibbonApplicationMenuPopupPanelSecondary costOSRibbonApplicationMenuPopupPanelSecondary = new CostOSRibbonApplicationMenuPopupPanelSecondaryAnonymousInnerClass(this, menuEntry);
                JScrollPane jScrollPane = new JScrollPane(costOSRibbonApplicationMenuPopupPanelSecondary, 20, 31);

                jScrollPane.Border = BorderFactory.createEmptyBorder();
                jScrollPane.Viewport.Background = SECONDARY_MENU_COLOR;
                jScrollPane.Background          = SECONDARY_MENU_COLOR;
                Dimension dimension = costOSRibbonApplicationMenuPopupPanelSecondary.PreferredSize;

                costOSRibbonApplicationMenuPopupPanelSecondary.PreferredSize = new Dimension((param1JPanel.PreferredSize).width - (jScrollPane.VerticalScrollBar.PreferredSize).width, dimension.height);
                param1JPanel.Background = SECONDARY_MENU_COLOR;
                param1JPanel.add(jScrollPane, "Center");
                param1JPanel.revalidate();
            }
 public void menuEntryActivated(JPanel param1JPanel)
 {
     param1JPanel.removeAll();
     param1JPanel.revalidate();
     param1JPanel.repaint();
 }