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

Make some instance variables protected

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P5 P5
    • None
    • 1.1.1
    • 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 - ###@###.###
      ======================================================================

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: