Make some instance variables protected

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Duplicate
    • Priority: P5
    • None
    • Affects Version/s: 1.1.1
    • Component/s: client-libs
    • x86
    • windows_95



      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 - ###@###.###
      ======================================================================

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: