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

getInsets() does not return correct values for a frame with menubar

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 1.1.1
    • client-libs
    • None
    • x86
    • windows_nt



      Name: rlT66838 Date: 07/15/97


      The getInsets() method reports the following values for a frame
      object with Menubar :

      top=82, left=4, bottom=-51, right = 4

      What does -51 signify for the bottom inset ?

      If the frame does not have a menubar, it returns correct values.
      top=27, left=4, bottom=4, right=4.

      As a consequence, the total size of the frame shown is more than
      what is set using setSize() or setBounds() methods.


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

            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: