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

Make some instance variables protected

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P5
    • Resolution: Duplicate
    • Affects Version/s: 1.1.1
    • Fix Version/s: None
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
    • CPU:
      x86
    • OS:
      windows_95

      Description



      Name: sgC58550 Date: 06/26/97


      It seems that making most of the instance variables default, when
      creating lightweight classes that are not in java.awt.*, a new
      variable must be introduced to perform the same action. All events
      dispatched must be re-implemented in the new class.

      For example, if you look at the demo\awt-1.1\lightweight\RoundButtons
      example, mouseListener is re-introduced so that it can fire events
      to the listeners. If the mouseListeners were protected this wouldn't
      happen. Obviously, this example is quite simple but if you imagine
      a more complex example that may deal in more events, it can get out of
      hand.

      company - IBM , email - ###@###.###
      ======================================================================

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mmartaksunw Michael Martak (Inactive)
              Reporter:
              sgoodsunw Sheri Good (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: