Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4066220

Packing frames wit menu bars

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 1.1.3
    • client-libs
    • None
    • x86
    • windows_95



      Name: rlT66838 Date: 07/21/97


      I've got a frame window that has a single component that shows a fixed-sized bitmap (about 400x400).
      That component inherits directly from Component to take advantage of the Lightweight UI.
      It overrrides getMaximumSize, getMinimumSize and getPreferredSize to return in all cases the bitmap's size.
      After calling pack() everything works as expected, but if the frame has a menu bar the component won't be sized correctly and so the bitmap won't be completely displayed.
      I've tried with several layout managers and with a heavyweight canvas but the frame never packs correctly if it has a menu bar.


      ======================================================================

            cchongsunw Creighton Chong (Inactive)
            rlewis Roger Lewis (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: