/[classpath]/classpath/java/awt/ScrollPane.java
ViewVC logotype

Diff of /classpath/java/awt/ScrollPane.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.19 by fitzsim, Tue Feb 3 17:17:30 2004 UTC revision 1.20 by mark, Thu Jul 22 19:45:38 2004 UTC
# Line 157  ScrollPane(int scrollbarDisplayPolicy) Line 157  ScrollPane(int scrollbarDisplayPolicy)
157      }      }
158    
159    wheelScrollingEnabled = true;    wheelScrollingEnabled = true;
160    
161      // Default size.
162      setSize(100,100);
163  }  }
164    
165  /*************************************************************************/  /*************************************************************************/
# Line 400  addNotify() Line 403  addNotify()
403    
404    setPeer((ComponentPeer)getToolkit().createScrollPane(this));    setPeer((ComponentPeer)getToolkit().createScrollPane(this));
405    super.addNotify();    super.addNotify();
406    
407      Component[] list = getComponents();
408      if (list != null && list.length > 0 && ! (list[0] instanceof Panel))
409      {
410        Panel panel = new Panel();
411        panel.setLayout(new BorderLayout());
412        panel.add(list[0], BorderLayout.CENTER);
413        add(panel);
414      }
415  }  }
416    
417  /*************************************************************************/  /*************************************************************************/
# Line 527  printComponents(Graphics graphics) Line 539  printComponents(Graphics graphics)
539  public String  public String
540  paramString()  paramString()
541  {  {
542    return(getClass().getName());    Insets insets = getInsets();
543      return getName() + ","
544             + getX() + ","
545             + getY() + ","
546             + getWidth() + "x" + getHeight() + ","
547             + "ScrollPosition=(" + scrollPosition.getX() + ","
548                                  + scrollPosition.getY() + "),"
549             + "Insets=(" + insets.top + ","
550                          + insets.left + ","
551                          + insets.bottom + ","
552                          + insets.right + "),"
553             + "ScrollbarDisplayPolicy=" + getScrollbarDisplayPolicy() + ","
554             + "wheelScrollingEnabled=" + isWheelScrollingEnabled();
555  }  }
556    
557    /**    /**

Legend:
Removed from v.1.19  
changed lines
  Added in v.1.20

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26