/[classpath]/classpath/javax/swing/plaf/basic/BasicTreeUI.java
ViewVC logotype

Diff of /classpath/javax/swing/plaf/basic/BasicTreeUI.java

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

revision 1.27 by langel, Tue Jul 12 18:58:00 2005 UTC revision 1.28 by rabbit78, Tue Jul 12 19:15:58 2005 UTC
# Line 1  Line 1 
1  /*  /* BasicTreeUI.java --
2   * BasicTreeUI.java -- Copyright (C) 2002, 2004, 2005 Free Software Foundation,     Copyright (C) 2002, 2004, 2005 Free Software Foundation, Inc.
3   * Inc.  
4   *  This file is part of GNU Classpath.
5   * This file is part of GNU Classpath.  
6   *  GNU Classpath is free software; you can redistribute it and/or modify
7   * GNU Classpath is free software; you can redistribute it and/or modify it  it under the terms of the GNU General Public License as published by
8   * under the terms of the GNU General Public License as published by the Free  the Free Software Foundation; either version 2, or (at your option)
9   * Software Foundation; either version 2, or (at your option) any later version.  any later version.
10   *  
11   * GNU Classpath is distributed in the hope that it will be useful, but WITHOUT  GNU Classpath is distributed in the hope that it will be useful, but
12   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS  WITHOUT ANY WARRANTY; without even the implied warranty of
13   * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14   * details.  General Public License for more details.
15   *  
16   * You should have received a copy of the GNU General Public License along with  You should have received a copy of the GNU General Public License
17   * GNU Classpath; see the file COPYING. If not, write to the Free Software  along with GNU Classpath; see the file COPYING.  If not, write to the
18   * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.  Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
19   *  02110-1301 USA.
20   * Linking this library statically or dynamically with other modules is making a  
21   * combined work based on this library. Thus, the terms and conditions of the  Linking this library statically or dynamically with other modules is
22   * GNU General Public License cover the whole combination.  making a combined work based on this library.  Thus, the terms and
23   *  conditions of the GNU General Public License cover the whole
24   * As a special exception, the copyright holders of this library give you  combination.
25   * permission to link this library with independent modules to produce an  
26   * executable, regardless of the license terms of these independent modules, and  As a special exception, the copyright holders of this library give you
27   * to copy and distribute the resulting executable under terms of your choice,  permission to link this library with independent modules to produce an
28   * provided that you also meet, for each linked independent module, the terms  executable, regardless of the license terms of these independent
29   * and conditions of the license of that module. An independent module is a  modules, and to copy and distribute the resulting executable under
30   * module which is not derived from or based on this library. If you modify this  terms of your choice, provided that you also meet, for each linked
31   * library, you may extend this exception to your version of the library, but  independent module, the terms and conditions of the license of that
32   * you are not obligated to do so. If you do not wish to do so, delete this  module.  An independent module is a module which is not derived from
33   * exception statement from your version.  or based on this library.  If you modify this library, you may extend
34   */  this exception to your version of the library, but you are not
35    obligated to do so.  If you do not wish to do so, delete this
36    exception statement from your version. */
37    
38    
39  package javax.swing.plaf.basic;  package javax.swing.plaf.basic;
40    
# Line 1921  public class BasicTreeUI Line 1924  public class BasicTreeUI
1924           {           {
1925              // nothing should be selected if user clicks outside of tree              // nothing should be selected if user clicks outside of tree
1926              BasicTreeUI.this.tree.getSelectionModel().clearSelection();              BasicTreeUI.this.tree.getSelectionModel().clearSelection();
1927              BasicTreeUI.this.tree.repaint();              BasicTreeUI.this.tree.revalidate();
1928           }           }
1929           else if (BasicTreeUI.this.tree.isVisible(path))           else if (BasicTreeUI.this.tree.isVisible(path))
1930           {                     {          
# Line 2165  public class BasicTreeUI Line 2168  public class BasicTreeUI
2168         */         */
2169        public void treeExpanded(TreeExpansionEvent event)        public void treeExpanded(TreeExpansionEvent event)
2170        {        {
2171           BasicTreeUI.this.tree.repaint();           BasicTreeUI.this.tree.revalidate();
2172        }        }
2173    
2174        /**        /**
# Line 2175  public class BasicTreeUI Line 2178  public class BasicTreeUI
2178         */         */
2179        public void treeCollapsed(TreeExpansionEvent event)        public void treeCollapsed(TreeExpansionEvent event)
2180        {        {
2181           BasicTreeUI.this.tree.repaint();           BasicTreeUI.this.tree.revalidate();
2182        }        }
2183     }// TreeExpansionHandler     }// TreeExpansionHandler
2184    

Legend:
Removed from v.1.27  
changed lines
  Added in v.1.28

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