This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
[GUI] Patch: javax.swing.JTree - reformatted
- From: Michael Koch <konqueror at gmx dot de>
- To: java-patches at gcc dot gnu dot org
- Date: Wed, 16 Jun 2004 10:39:27 +0200
- Subject: [GUI] Patch: javax.swing.JTree - reformatted
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi list,
I just commited the attached patch to reformat javax.swing.JTree to
produce a nicer diff for the upcoming patch.
Michael
2004-06-16 Michael Koch <konqueror@gmx.de>
* javax/swing/JTree.java: Reformatted.
- --
Homepage: http://www.worldforge.org/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFA0AdCWSOgCCdjSDsRAjrvAJ9dWVQCamAtFFIBeiDsN0Ia7FVxhQCePSzs
nFbLRDipufUtWyDkuOoZwE0=
=3v6w
-----END PGP SIGNATURE-----
Index: javax/swing/JTree.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/javax/swing/JTree.java,v
retrieving revision 1.3.2.2
diff -u -b -B -r1.3.2.2 JTree.java
--- javax/swing/JTree.java 7 Jun 2004 14:00:35 -0000 1.3.2.2
+++ javax/swing/JTree.java 16 Jun 2004 08:36:14 -0000
@@ -45,7 +43,9 @@
import javax.accessibility.AccessibleContext;
import javax.swing.plaf.TreeUI;
-public class JTree extends JComponent implements Scrollable, Accessible
+
+public class JTree extends JComponent
+ implements Scrollable, Accessible
{
private static final long serialVersionUID = 7559816092864483649L;
@@ -66,10 +66,9 @@
public void updateUI()
{
- setUI((TreeUI)UIManager.getUI(this));
+ setUI((TreeUI) UIManager.getUI(this));
}
-
public String getUIClassID()
{
return "TreeUI";
@@ -87,15 +85,13 @@
}
public int getScrollableUnitIncrement(Rectangle visibleRect,
- int orientation,
- int direction)
+ int orientation, int direction)
{
return 1;
}
public int getScrollableBlockIncrement(Rectangle visibleRect,
- int orientation,
- int direction)
+ int orientation, int direction)
{
return 1;
}