Author: glen                         Date: Sun Apr  4 12:15:02 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- new, based on fc package

---- Files affected:
packages/java-jgoodies-looks:
   build.patch (NONE -> 1.1)  (NEW), demo-manifest.patch (NONE -> 1.1)  (NEW), 
java-jgoodies-looks.spec (NONE -> 1.1)  (NEW), no-com-sun.patch (NONE -> 1.1)  
(NEW), remove-jdk-stuff.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/java-jgoodies-looks/build.patch
diff -u /dev/null packages/java-jgoodies-looks/build.patch:1.1
--- /dev/null   Sun Apr  4 14:15:02 2010
+++ packages/java-jgoodies-looks/build.patch    Sun Apr  4 14:14:57 2010
@@ -0,0 +1,43 @@
+--- looks-2.1.3/build.xml.orig 2007-02-21 17:55:14.000000000 +0100
++++ looks-2.1.3/build.xml      2007-04-12 11:45:15.000000000 +0200
+@@ -109,8 +109,7 @@
+                       optimize     ="${build.compile.optimize}"
+             source       ="${build.compile.source}"
+                       target       ="${build.compile.target}"
+-                      verbose      ="${build.compile.verbose}"
+-                      bootclasspath="${build.boot.classpath}" />
++                        verbose      ="${build.compile.verbose}"/>
+ 
+               <copy toDir="${build.core.dir}" >
+                       <fileset dir="${src.core.dir}" 
+@@ -137,7 +136,6 @@
+             source       ="${build.compile.source}"
+                       target       ="${build.compile.target}"
+                       verbose      ="${build.compile.verbose}"
+-                      bootclasspath="${build.boot.classpath}" 
+                   classpathref ="classpath.demo" />
+       </target>
+ 
+@@ -159,7 +157,6 @@
+             source       ="${build.compile.source}"
+             target       ="${build.compile.target}"
+             verbose      ="${build.compile.verbose}"
+-            bootclasspath="${build.boot.classpath}"
+             classpathref ="classpath.tests" />
+     </target>   
+     
+@@ -180,7 +177,6 @@
+             author="true" 
+             version="true" 
+             use="true" 
+-            link="${javadoc.link}"
+             overview="${javadoc.overview}"
+             windowtitle="${Name} ${spec.version} API" 
+             doctitle="${Name} ${spec.version} API"
+@@ -419,4 +415,4 @@
+     </target>
+     
+         
+-</project>
+\ No newline at end of file
++</project>

================================================================
Index: packages/java-jgoodies-looks/demo-manifest.patch
diff -u /dev/null packages/java-jgoodies-looks/demo-manifest.patch:1.1
--- /dev/null   Sun Apr  4 14:15:02 2010
+++ packages/java-jgoodies-looks/demo-manifest.patch    Sun Apr  4 14:14:57 2010
@@ -0,0 +1,17 @@
+--- looks-2.2.1/build.xml.orig 2009-01-28 17:04:48.000000000 +0100
++++ looks-2.2.1/build.xml      2009-01-28 17:04:51.000000000 +0100
+@@ -286,14 +286,6 @@
+                         excludes="Tiny.*, FontTest.*"          />
+                       <fileset    dir="${src.demo.dir}" 
+                                   
includes="com/jgoodies/looks/demo/resources/**/*" />
+-                      <manifest>
+-                <attribute name ="Built-By" 
+-                           value="${user.name}"/>
+-                <attribute name ="Main-Class" 
+-                           value="com.jgoodies.looks.demo.DemoFrame"/>
+-                <attribute name ="Class-Path" 
+-                           value="../lib/${lib.forms.name} 
../${dist.all.name}"/>
+-            </manifest>               
+         </jar>
+       </target>
+       

================================================================
Index: packages/java-jgoodies-looks/java-jgoodies-looks.spec
diff -u /dev/null packages/java-jgoodies-looks/java-jgoodies-looks.spec:1.1
--- /dev/null   Sun Apr  4 14:15:02 2010
+++ packages/java-jgoodies-looks/java-jgoodies-looks.spec       Sun Apr  4 
14:14:57 2010
@@ -0,0 +1,174 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without javadoc         # don't build javadoc
+%bcond_with    java_sun        # build with java-sun
+
+%define                shortname       looks
+%define                srcname         jgoodies-%{shortname}
+%define                ver     %(echo %{version} | tr . _)
+%include       /usr/lib/rpm/macros.java
+Summary:       Free high-fidelity Windows and multi-platform appearance
+Name:          java-%{srcname}
+Version:       2.2.1
+Release:       1
+License:       BSD
+Group:         Libraries/Java
+URL:           http://www.jgoodies.com/freeware/looks/
+Source0:       
http://www.jgoodies.com/download/libraries/%{shortname}/%{shortname}-2_2_1.zip
+# Source0-md5: 0d191029f45b81a90c835263e0c5af2e
+Patch0:                build.patch
+Patch1:                no-com-sun.patch
+Patch2:                remove-jdk-stuff.patch
+Patch3:                demo-manifest.patch
+BuildRequires: ant
+%{!?with_java_sun:BuildRequires:       java-gcj-compat-devel}
+%{?with_java_sun:BuildRequires:        java-sun}
+BuildRequires: jpackage-utils >= 1.6
+BuildRequires: rpm >= 4.4.9-56
+BuildRequires: rpm-javaprov
+BuildRequires: rpmbuild(macros) >= 1.533
+BuildRequires: sed >= 4.0
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+The JGoodies look&feels make your Swing applications and applets look
+better. They have been optimized for readability, precise micro-design
+and usability.
+
+Main Benefits:
+
+- Improved readability, legibility and in turn usability.
+- Improved aesthetics - looks good on the majority of desktops
+- Simplified multi-platform support
+- Precise micro-design
+
+%package javadoc
+Summary:       Javadoc documentation for JGoodies Looks
+Group:         Documentation
+Requires:      %{name} = %{version}-%{release}
+
+%description javadoc
+The JGoodies look&feels make your Swing applications and applets look
+better. They have been optimized for readability, precise micro-design
+and usability.
+
+This package contains the Javadoc documentation for JGoodies Looks.
+
+%package doc
+Summary:       Manual for %{srcname}
+Summary(fr.UTF-8):     Documentation pour %{srcname}
+Summary(it.UTF-8):     Documentazione di %{srcname}
+Summary(pl.UTF-8):     Podręcznik dla %{srcname}
+Group:         Documentation
+
+%description doc
+Documentation for %{srcname}.
+
+%description doc -l fr.UTF-8
+Documentation pour %{srcname}.
+
+%description doc -l it.UTF-8
+Documentazione di %{srcname}.
+
+%description doc -l pl.UTF-8
+Dokumentacja do %{srcname}.
+
+%package demo
+Summary:       Demo applications for the JGoodies look&feels
+Group:         Development/Libraries
+Requires:      %{name} = %{version}-%{release}
+
+%description demo
+This package contains demo applications for the JGoodies look&feels,
+including the "uif_lite" classes.
+
+%prep
+%setup -q -n %{shortname}-%{version}
+%patch0 -p1
+
+# unzip the look&feel settings from bundled jar before we delete it
+# (taken from Gentoo ebuild)
+unzip -j %{shortname}-%{version}.jar META-INF/services/javax.swing.LookAndFeel 
\
+|| die "unzip of javax.swing.LookAndFeel failed"
+# and rename it to what build.xml expects
+mv javax.swing.LookAndFeel all.txt
+
+# Delete pre-generated stuff we don't want
+rm %{shortname}-%{version}.jar
+rm -r docs/api
+
+# Delete the whole Windows L&F because it depends on com.sun.java packages
+# (Unless we're compiling with a Sun JVM)
+%if %{with java_sun}
+%else
+%patch1 -p1
+rm -r src/core/com/jgoodies/looks/windows
+%endif
+
+# Delete a file that's a copy of something distributed by Sun, and patch the 
files that
+# use it so they don't.
+rm src/core/com/jgoodies/looks/common/ExtBasicArrowButtonHandler.java
+%patch2 -p1
+
+%patch3 -p1
+
+# Fix the line endings!
+for file in *.txt *.html docs/*.* docs/guide/*.*; do
+       sed -i 's/\r//' $file
+done
+
+%build
+%ant -Ddescriptors.dir=. compile jar %{?with_javadoc:javadoc}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -dp $RPM_BUILD_ROOT%{_javadir}
+cp -p build/%{shortname}.jar 
$RPM_BUILD_ROOT%{_javadir}/%{srcname}-%{version}.jar
+ln -s %{srcname}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{srcname}.jar
+cp -p build/demo.jar $RPM_BUILD_ROOT%{_javadir}/%{srcname}-demo-%{version}.jar
+ln -s %{srcname}-demo-%{version}.jar 
$RPM_BUILD_ROOT%{_javadir}/%{srcname}-demo.jar
+
+%if %{with javadoc}
+install -dp $RPM_BUILD_ROOT%{_javadocdir}/%{srcname}-%{version}
+cp -pr build/docs/api/* $RPM_BUILD_ROOT%{_javadocdir}/%{srcname}-%{version}
+ln -s %{srcname}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{srcname} # ghost 
symlink
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post javadoc
+ln -nfs %{srcname}-%{version} %{_javadocdir}/%{srcname}
+
+%files
+%defattr(644,root,root,755)
+%doc RELEASE-NOTES.txt LICENSE.txt README.html
+%{_javadir}/%{srcname}.jar
+%{_javadir}/%{srcname}-%{version}.jar
+
+%files doc
+%defattr(644,root,root,755)
+%doc docs/*
+
+%files demo
+%defattr(644,root,root,755)
+%{_javadir}/%{srcname}-demo.jar
+%{_javadir}/%{srcname}-demo-%{version}.jar
+
+%if %{with javadoc}
+%files javadoc
+%defattr(644,root,root,755)
+%{_javadocdir}/%{srcname}-%{version}
+%ghost %{_javadocdir}/%{srcname}
+%endif
+
+%define date   %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <[email protected]>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2010/04/04 12:14:57  glen
+- new, based on fc package

================================================================
Index: packages/java-jgoodies-looks/no-com-sun.patch
diff -u /dev/null packages/java-jgoodies-looks/no-com-sun.patch:1.1
--- /dev/null   Sun Apr  4 14:15:02 2010
+++ packages/java-jgoodies-looks/no-com-sun.patch       Sun Apr  4 14:14:57 2010
@@ -0,0 +1,112 @@
+diff -ur looks-2.2.1.orig/src/core/com/jgoodies/looks/Options.java 
looks-2.2.1/src/core/com/jgoodies/looks/Options.java
+--- looks-2.2.1.orig/src/core/com/jgoodies/looks/Options.java  2009-01-28 
16:40:46.000000000 +0100
++++ looks-2.2.1/src/core/com/jgoodies/looks/Options.java       2009-01-28 
16:41:43.000000000 +0100
+@@ -40,8 +40,6 @@
+ 
+ import com.jgoodies.looks.common.ShadowPopup;
+ import com.jgoodies.looks.plastic.PlasticLookAndFeel;
+-import com.jgoodies.looks.windows.WindowsLookAndFeel;
+-import com.sun.java.swing.plaf.windows.WindowsComboBoxUI;
+ 
+ /**
+  * Provides access to optional features of the JGoodies L&amp;Fs
+@@ -895,12 +893,6 @@
+         putLookAndFeelReplacement(
+             "javax.swing.plaf.metal.MetalLookAndFeel",
+             PLASTIC3D_NAME);
+-        putLookAndFeelReplacement(
+-            "com.sun.java.swing.plaf.windows.WindowsLookAndFeel",
+-            JGOODIES_WINDOWS_NAME);
+-        putLookAndFeelReplacement(
+-                "com.sun.java.swing.plaf.windows.WindowsClassicLookAndFeel",
+-                NO_REPLACEMENT);
+     }
+ 
+     /**
+Only in looks-2.2.1.orig/src/core/com/jgoodies/looks: windows
+diff -ur looks-2.2.1.orig/src/demo/com/jgoodies/looks/demo/DemoFrame.java 
looks-2.2.1/src/demo/com/jgoodies/looks/demo/DemoFrame.java
+--- looks-2.2.1.orig/src/demo/com/jgoodies/looks/demo/DemoFrame.java   
2009-01-28 16:40:46.000000000 +0100
++++ looks-2.2.1/src/demo/com/jgoodies/looks/demo/DemoFrame.java        
2009-01-28 16:42:31.000000000 +0100
+@@ -46,7 +46,6 @@
+ import com.jgoodies.looks.LookUtils;
+ import com.jgoodies.looks.Options;
+ import com.jgoodies.looks.plastic.PlasticLookAndFeel;
+-import com.jgoodies.looks.windows.WindowsLookAndFeel;
+ 
+ /**
+  * Builds the main frame in the Simple Looks Demo.
+@@ -218,9 +217,6 @@
+             PlasticLookAndFeel.BORDER_STYLE_KEY,
+             settings.getToolBarPlasticBorderStyle());
+         toolBar.putClientProperty(
+-            WindowsLookAndFeel.BORDER_STYLE_KEY,
+-            settings.getToolBarWindowsBorderStyle());
+-        toolBar.putClientProperty(
+             PlasticLookAndFeel.IS_3D_KEY,
+             settings.getToolBar3DHint());
+ 
+@@ -384,4 +380,4 @@
+     }
+ 
+ 
+-}
+\ No newline at end of file
++}
+diff -ur looks-2.2.1.orig/src/demo/com/jgoodies/looks/demo/MenuBarView.java 
looks-2.2.1/src/demo/com/jgoodies/looks/demo/MenuBarView.java
+--- looks-2.2.1.orig/src/demo/com/jgoodies/looks/demo/MenuBarView.java 
2009-01-28 16:40:46.000000000 +0100
++++ looks-2.2.1/src/demo/com/jgoodies/looks/demo/MenuBarView.java      
2009-01-28 16:42:54.000000000 +0100
+@@ -39,7 +39,6 @@
+ 
+ import com.jgoodies.looks.Options;
+ import com.jgoodies.looks.plastic.PlasticLookAndFeel;
+-import com.jgoodies.looks.windows.WindowsLookAndFeel;
+ 
+ /**
+  * Builds the menu bar and pull-down menus in the Simple Looks Demo.
+@@ -74,8 +73,6 @@
+                                                         
settings.getMenuBarHeaderStyle());
+               bar.putClientProperty(PlasticLookAndFeel.BORDER_STYLE_KEY,
+                                                         
settings.getMenuBarPlasticBorderStyle());
+-              bar.putClientProperty(WindowsLookAndFeel.BORDER_STYLE_KEY,
+-                                                        
settings.getMenuBarWindowsBorderStyle());
+               bar.putClientProperty(PlasticLookAndFeel.IS_3D_KEY,
+                                                         
settings.getMenuBar3DHint());
+ 
+@@ -455,4 +452,4 @@
+     }
+ 
+ 
+-}
+\ No newline at end of file
++}
+diff -ur looks-2.2.1.orig/src/demo/FontTest.java 
looks-2.2.1/src/demo/FontTest.java
+--- looks-2.2.1.orig/src/demo/FontTest.java    2009-01-28 16:40:46.000000000 
+0100
++++ looks-2.2.1/src/demo/FontTest.java 2009-01-28 16:43:31.000000000 +0100
+@@ -11,7 +11,6 @@
+ import com.jgoodies.looks.LookUtils;
+ import com.jgoodies.looks.plastic.PlasticLookAndFeel;
+ import com.jgoodies.looks.plastic.PlasticXPLookAndFeel;
+-import com.jgoodies.looks.windows.WindowsLookAndFeel;
+ 
+ 
+ /**
+@@ -275,12 +274,7 @@
+ 
+ 
+     private FontSet getWindowsFontSet() {
+-        try {
+-            UIManager.setLookAndFeel(new WindowsLookAndFeel());
+-            return WindowsLookAndFeel.getFontPolicy().getFontSet("Windows", 
UIManager.getDefaults());
+-        } catch (UnsupportedLookAndFeelException e) {
+             return null;
+-        }
+     }
+ 
+ 
+@@ -313,4 +307,4 @@
+     }
+ 
+ 
+-}
+\ No newline at end of file
++}

================================================================
Index: packages/java-jgoodies-looks/remove-jdk-stuff.patch
diff -u /dev/null packages/java-jgoodies-looks/remove-jdk-stuff.patch:1.1
--- /dev/null   Sun Apr  4 14:15:02 2010
+++ packages/java-jgoodies-looks/remove-jdk-stuff.patch Sun Apr  4 14:14:57 2010
@@ -0,0 +1,321 @@
+diff -ur 
looks-2.2.1.orig/src/core/com/jgoodies/looks/plastic/PlasticSpinnerUI.java 
looks-2.2.1/src/core/com/jgoodies/looks/plastic/PlasticSpinnerUI.java
+--- looks-2.2.1.orig/src/core/com/jgoodies/looks/plastic/PlasticSpinnerUI.java 
2009-01-28 16:40:46.000000000 +0100
++++ looks-2.2.1/src/core/com/jgoodies/looks/plastic/PlasticSpinnerUI.java      
2009-01-28 16:53:49.000000000 +0100
+@@ -39,7 +39,6 @@
+ import javax.swing.plaf.ComponentUI;
+ import javax.swing.plaf.basic.BasicSpinnerUI;
+ 
+-import com.jgoodies.looks.common.ExtBasicArrowButtonHandler;
+ import com.jgoodies.looks.common.ExtBasicSpinnerLayout;
+ 
+ 
+@@ -60,56 +59,6 @@
+ 
+ 
+     /**
+-     * The mouse/action listeners that are added to the spinner's
+-     * arrow buttons.  These listeners are shared by all
+-     * spinner arrow buttons.
+-     *
+-     * @see #createNextButton
+-     * @see #createPreviousButton
+-     */
+-    private static final ExtBasicArrowButtonHandler nextButtonHandler
+-                                                      = new 
ExtBasicArrowButtonHandler("increment", true);
+-    private static final ExtBasicArrowButtonHandler previousButtonHandler
+-                                                      = new 
ExtBasicArrowButtonHandler("decrement", false);
+-
+-
+-    /**
+-     * Create a component that will replace the spinner models value
+-     * with the object returned by <code>spinner.getPreviousValue</code>.
+-     * By default the <code>previousButton</code> is a JButton
+-     * who's <code>ActionListener</code> updates it's <code>JSpinner</code>
+-     * ancestors model.  If a previousButton isn't needed (in a subclass)
+-     * then override this method to return null.
+-     *
+-     * @return a component that will replace the spinners model with the
+-     *     next value in the sequence, or null
+-     * @see #installUI
+-     * @see #createNextButton
+-     */
+-    protected Component createPreviousButton() {
+-        return new SpinnerArrowButton(SwingConstants.SOUTH, 
previousButtonHandler);
+-    }
+-
+-
+-    /**
+-     * Create a component that will replace the spinner models value
+-     * with the object returned by <code>spinner.getNextValue</code>.
+-     * By default the <code>nextButton</code> is a JButton
+-     * who's <code>ActionListener</code> updates it's <code>JSpinner</code>
+-     * ancestors model.  If a nextButton isn't needed (in a subclass)
+-     * then override this method to return null.
+-     *
+-     * @return a component that will replace the spinners model with the
+-     *     next value in the sequence, or null
+-     * @see #installUI
+-     * @see #createPreviousButton
+-     */
+-    protected Component createNextButton() {
+-        return new SpinnerArrowButton(SwingConstants.NORTH, 
nextButtonHandler);
+-    }
+-
+-
+-    /**
+      * Create a <code>LayoutManager</code> that manages the 
<code>editor</code>,
+      * <code>nextButton</code>, and <code>previousButton</code> children
+      * of the JSpinner. These three children must be added with a constraint
+@@ -196,31 +145,4 @@
+         }
+     }
+ 
+-    /**
+-     * It differs from its superclass in that it uses the same formula as JDK
+-     * to calculate the arrow height.
+-     */
+-    private static final class SpinnerArrowButton extends PlasticArrowButton {
+-        private SpinnerArrowButton(int direction,
+-                ExtBasicArrowButtonHandler handler) {
+-            super(direction, UIManager.getInt("ScrollBar.width"), true);
+-            addActionListener(handler);
+-            addMouseListener(handler);
+-        }
+-
+-        protected int calculateArrowHeight(int height, int width) {
+-            int arrowHeight = Math.min((height - 4) / 3, (width - 4) / 3);
+-            return Math.max(arrowHeight, 3);
+-        }
+-
+-        protected int calculateArrowOffset() {
+-            return 1;
+-        }
+-
+-        protected boolean isPaintingNorthBottom() {
+-            return true;
+-        }
+-
+-   }
+-
+-}
+\ No newline at end of file
++}
+diff -ur 
looks-2.2.1.orig/src/core/com/jgoodies/looks/plastic/PlasticXPSpinnerUI.java 
looks-2.2.1/src/core/com/jgoodies/looks/plastic/PlasticXPSpinnerUI.java
+--- 
looks-2.2.1.orig/src/core/com/jgoodies/looks/plastic/PlasticXPSpinnerUI.java    
   2009-01-28 16:40:46.000000000 +0100
++++ looks-2.2.1/src/core/com/jgoodies/looks/plastic/PlasticXPSpinnerUI.java    
2009-01-28 16:54:46.000000000 +0100
+@@ -40,8 +40,6 @@
+ import javax.swing.plaf.ComponentUI;
+ import javax.swing.plaf.metal.MetalLookAndFeel;
+ 
+-import com.jgoodies.looks.common.ExtBasicArrowButtonHandler;
+-
+ 
+ /**
+  * The JGoodies PlasticXP Look&amp;Feel implementation of 
<code>SpinnerUI</code>.
+@@ -57,204 +55,4 @@
+               return new PlasticXPSpinnerUI();
+       }
+ 
+-
+-    /**
+-     * The mouse/action listeners that are added to the spinner's
+-     * arrow buttons.  These listeners are shared by all
+-     * spinner arrow buttons.
+-     *
+-     * @see #createNextButton
+-     * @see #createPreviousButton
+-     */
+-    private static final ExtBasicArrowButtonHandler NEXT_BUTTON_HANDLER
+-                                                      = new 
ExtBasicArrowButtonHandler("increment", true);
+-    private static final ExtBasicArrowButtonHandler PREVIOUS_BUTTON_HANDLER
+-                                                      = new 
ExtBasicArrowButtonHandler("decrement", false);
+-
+-
+-    /**
+-     * Create a component that will replace the spinner models value
+-     * with the object returned by <code>spinner.getPreviousValue</code>.
+-     * By default the <code>previousButton</code> is a JButton
+-     * who's <code>ActionListener</code> updates it's <code>JSpinner</code>
+-     * ancestors model.  If a previousButton isn't needed (in a subclass)
+-     * then override this method to return null.
+-     *
+-     * @return a component that will replace the spinners model with the
+-     *     next value in the sequence, or null
+-     * @see #installUI
+-     * @see #createNextButton
+-     */
+-    protected Component createPreviousButton() {
+-        return new SpinnerXPArrowButton(SwingConstants.SOUTH, 
PREVIOUS_BUTTON_HANDLER);
+-    }
+-
+-
+-    /**
+-     * Create a component that will replace the spinner models value
+-     * with the object returned by <code>spinner.getNextValue</code>.
+-     * By default the <code>nextButton</code> is a JButton
+-     * who's <code>ActionListener</code> updates it's <code>JSpinner</code>
+-     * ancestors model.  If a nextButton isn't needed (in a subclass)
+-     * then override this method to return null.
+-     *
+-     * @return a component that will replace the spinners model with the
+-     *     next value in the sequence, or null
+-     * @see #installUI
+-     * @see #createPreviousButton
+-     */
+-    protected Component createNextButton() {
+-        return new SpinnerXPArrowButton(SwingConstants.NORTH, 
NEXT_BUTTON_HANDLER);
+-    }
+-
+-
+-    /**
+-     * It differs from its superclass in that it uses the same formula as JDK
+-     * to calculate the arrow height.
+-     */
+-    private static final class SpinnerXPArrowButton extends 
PlasticArrowButton {
+-
+-        SpinnerXPArrowButton(int direction, ExtBasicArrowButtonHandler 
handler) {
+-            // If you change the value of the button width, don't forget
+-            // to change it in PlasticXPBorders#XPSpinnerBorder too.
+-            super(direction, UIManager.getInt("ScrollBar.width") - 1, false);
+-            addActionListener(handler);
+-            addMouseListener(handler);
+-        }
+-
+-        protected int calculateArrowHeight(int height, int width) {
+-            int arrowHeight = Math.min((height - 4) / 3, (width - 4) / 3);
+-            return Math.max(arrowHeight, 3);
+-        }
+-
+-        protected boolean isPaintingNorthBottom() {
+-            return true;
+-        }
+-
+-        protected int calculateArrowOffset() {
+-            return 1;
+-        }
+-
+-        protected void paintNorth(Graphics g, boolean leftToRight, boolean 
isEnabled,
+-                Color arrowColor, boolean isPressed,
+-                int width, int height, int w, int h, int arrowHeight, int 
arrowOffset,
+-                boolean paintBottom) {
+-            if (!isFreeStanding) {
+-                height += 1;
+-                g.translate(0, -1);
+-                if (!leftToRight) {
+-                    width += 1;
+-                    g.translate(-1, 0);
+-                } else {
+-                    width += 2;
+-                }
+-            }
+-
+-            // Draw the arrow
+-            g.setColor(arrowColor);
+-            int startY = 1 + ((h + 1) - arrowHeight) / 2; // KL was (h + 1)
+-            int startX = w / 2;
+-            // System.out.println( "startX :" + startX + " startY :"+startY);
+-            for (int line = 0; line < arrowHeight; line++) {
+-                g.fillRect(startX - line - arrowOffset, startY + line,
+-                        2 * (line + 1), 1);
+-            }
+-
<<Diff was trimmed, longer than 597 lines>>
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to