code: protected void scheduleResize() {
  
          if (m_updateSizeTimer != null) {
              m_updateSizeTimer.cancel();
          }
          m_updateSizeTimer = new Timer() {
  
              @Override
              public void run() {
  
                  updateContentSize();
              }
          };
          m_updateSizeTimer.schedule(300);
      }
docs: Schedules resizing the widget.<p>