flamingo
  1. flamingo
  2. FLAMINGO-42

JRibbonFrame should override setContentPane() to throw IllegalArguementException

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 4.1
    • Fix Version/s: milestone 1
    • Component/s: ribbon
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      42

      Description

      Calling setContentPane() on JRibbonFrame with a JPanel results in the ribbon
      failing at runtime with an error about the "ribbon not being visible."
      Regardless, for consistency with the rest of the API (such as setJMenuBar,
      setLayout, etc.), it would be better to just prevent this method from being called.

      I found this while adapting an existing application to use the JRibbonFrame
      parent class instead of JFrame; others may see the same bug when adapting an
      existing frame.

      This is a low priority issue, now that I've figured out what I was doing wrong.

        Activity

        Hide
        kirillcool added a comment -

        This has been added in the latest 4.1dev drop.

        Thanks
        Kirill

        Show
        kirillcool added a comment - This has been added in the latest 4.1dev drop. Thanks Kirill

          People

          • Assignee:
            kirillcool
            Reporter:
            flynnk
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: