--- openjump-1.0.orig/debian/log4j.xml
+++ openjump-1.0/debian/log4j.xml
@@ -0,0 +1,253 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
--- openjump-1.0.orig/debian/README.Debian-source
+++ openjump-1.0/debian/README.Debian-source
@@ -0,0 +1,12 @@
+Openjump for Debian
+-------------------
+
+As upstream distributes as zip file I had to repackage jump, by
+unzipping it into a openjump- directory and built the
+openjump_.orig.tar.gz:
+
+ mkdir openjump-1.0
+ cd openjump-1.0
+ unzip -a ../OpenJump-1.0-src.zip
+ tar zcvf openjump_1.0.orig.tar.gz openjump-1.0
+ -- Petter Reinholdtsen , Sat, 11 Feb 2006 22:11:29 +0100
--- openjump-1.0.orig/debian/openjump.sh
+++ openjump-1.0/debian/openjump.sh
@@ -0,0 +1,119 @@
+#!/bin/sh
+# 2005-02-02, based on the start script from freemind package
+# 2006-03-11, modified to start openjump instead of jump
+
+pkglibdir=/usr/share/openjump
+
+PLUGINDIR=$pkglibdir/ext
+
+PROPFILE=$pkglibdir/workbench-properties.xml
+LOG4JFILE=$pkglibdir/log4j.xml
+
+DEB_JAR_PATH="/usr/share/java"
+
+_debug()
+{
+ if [ -n "${DEBUG}" ]
+ then
+ echo "DEBUG: $1" >&2
+ shift
+ for text in "$@"
+ do
+ echo " ${text}" >&2
+ done
+ fi
+}
+
+_error()
+{
+ echo "ERROR: $1" >&2
+ shift
+ for text in "$@"
+ do
+ echo " ${text}" >&2
+ done
+}
+
+findjava()
+{
+ # We try hard to find the proper 'java' command
+ if [ -n "${JAVACMD}" ] && [ -x "${JAVACMD}" ]
+ then
+ _debug "Using \$JAVACMD to find java virtual machine."
+ elif [ -n "${JAVA_BINDIR}" ] && [ -x "${JAVA_BINDIR}/java" ]
+ then
+ JAVACMD="${JAVA_BINDIR}/java"
+ _debug "Using \$JAVA_BINDIR to find java virtual machine."
+ elif [ -n "${JAVA_HOME}" ] && [ -x "${JAVA_HOME}/bin/java" ]
+ then
+ JAVACMD="${JAVA_HOME}/bin/java"
+ _debug "Using \$JAVA_HOME to find java virtual machine."
+ else
+ JAVACMD=$(which java)
+ if [ -n "${JAVACMD}" ] && [ -x "${JAVACMD}" ]
+ then
+ _debug "Using \$PATH to find java virtual machine."
+ elif [ -x /usr/bin/java ]
+ then
+ _debug "Using /usr/bin/java to find java virtual machine."
+ JAVACMD=/usr/bin/java
+ fi
+ fi
+
+ # if we were successful, we return 0 else we complain and return 1
+ if [ -n "${JAVACMD}" ] && [ -x "${JAVACMD}" ]
+ then
+ _debug "Using '$JAVACMD' as java virtual machine..."
+ return 0
+ else
+ _error "Couldn't find a java virtual machine," \
+ "define JAVACMD, JAVA_BINDIR, JAVA_HOME or PATH."
+ return 1
+ fi
+}
+
+_debug "Openjump parameters are '${@}'."
+
+findjava
+if [ $? -ne 0 ]
+then
+ exit 1
+fi
+
+# List of java jar libraries from $DEB_JAR_PATH to load
+JARS="\
+ jump-api jump-workbench \
+ bsh buoy jama jdom1 jts xercesImpl xml-apis log4j-1.2 batik-all \
+ "
+
+JUMP_CLASSPATH=
+for jar in $JARS; do
+ if [ -f $DEB_JAR_PATH/$jar.jar ] ; then
+ JUMP_CLASSPATH="$JUMP_CLASSPATH:$DEB_JAR_PATH/$jar.jar"
+ else
+ _error "missing $DEB_JAR_PATH/$jar.jar"
+ fi
+done
+
+_debug "Used classpath is '${JUMP_CLASSPATH}'"
+
+if [ -z "$JAVA_ARGS" ] ; then
+ # Copied from example script in openjump binary distribution
+ JAVA_ARGS="-Xms256M -Xmx256M"
+
+ # Needed to get GNU Classpath to switch from Graphics to
+ # Graphics2D. [pere 2006-05-01]
+ JAVA_ARGS="$JAVA_ARGS -Dgnu.java.awt.peer.gtk.Graphics=Graphics2D"
+fi
+
+if [ -z "$JAVA_EXTRA_ARGS" ] ; then
+ JAVA_ARGS="$JAVA_EXTRA_ARGS"
+fi
+
+exec ${JAVACMD} \
+ ${JAVA_ARGS} \
+ -Dlog4j.configuration=file:$LOG4JFILE \
+ -cp ${JUMP_CLASSPATH} \
+ com.vividsolutions.jump.workbench.JUMPWorkbench \
+ -properties $PROPFILE \
+ -plug-in-directory ${PLUGINDIR}
--- openjump-1.0.orig/debian/copyright
+++ openjump-1.0/debian/copyright
@@ -0,0 +1,32 @@
+This package was debianized by Petter Reinholdtsen on
+Sat Mar 11 13:02:10 CET 2006.
+
+It was downloaded from
+
+New upstream location is at: http://jump-pilot.sourceforge.net/
+
+Copyright:
+ Copyright (C) 2003 Vivid Solutions
+ Copyright (C) 1996 by Jef Poskanzer
+ Copyright (C) 2004 Integrated Systems Analysts, Inc.
+ Copyright (C) Stefan Steiniger
+
+License:
+
+ This program is free software; you can redistribute it and/or
+ modify it under the terms of the GNU General Public License
+ as published by the Free Software Foundation; either version 2
+ of the License, or (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301,
+ USA.
+
+ On Debian systems, the complete text of the GNU Lesser General
+ Public License can be found in `/usr/share/common-licenses/LGPL-2'.
--- openjump-1.0.orig/debian/watch
+++ openjump-1.0/debian/watch
@@ -0,0 +1,3 @@
+version=3
+
+http://sf.net/jump-pilot/openjump-src-([\d\.]+)\.zip
--- openjump-1.0.orig/debian/rules
+++ openjump-1.0/debian/rules
@@ -0,0 +1,35 @@
+#!/usr/bin/make -f
+# debian/rules file for openjump (uses cdbs)
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/class/ant.mk
+include /usr/share/cdbs/1/rules/simple-patchsys.mk
+
+JAVA_HOME := /usr/lib/jvm/default-java
+ANT_HOME := /usr/share/ant
+
+DEB_ANT_BUILDFILE := debian/openjump-build.xml
+DEB_ANT_BUILD_TARGET := jar
+DEB_JARS = $(ANT_HOME)/lib/ant-launcher.jar jts log4j-1.2 \
+ xercesImpl jdom1 jama junit bsh batik buoy
+
+# Make sure the jars are built using the upstream version number
+# instead of the source release date.
+DEB_ANT_ARGS += -Dversion=$(DEB_UPSTREAM_VERSION)
+
+#Not sure why this would be needed?
+#DEB_ANT_COMPILER := org.eclipse.jdt.core.JDTCompilerAdapter
+#DEB_JARS := $(DEB_JARS) ecj
+
+clean::
+ $(RM) -rf build lib
+
+install/openjump::
+ dh_install build/jump-api-$(DEB_UPSTREAM_VERSION).jar usr/share/java
+ dh_link /usr/share/java/jump-api-$(DEB_UPSTREAM_VERSION).jar /usr/share/java/jump-api.jar
+
+ dh_install build/jump-workbench-$(DEB_UPSTREAM_VERSION).jar usr/share/java
+ dh_link /usr/share/java/jump-workbench-$(DEB_UPSTREAM_VERSION).jar /usr/share/java/jump-workbench.jar
+
+ install -m755 debian/openjump.sh $(DEB_DESTDIR)/usr/bin/openjump
+ dh_install debian/log4j.xml usr/share/openjump
--- openjump-1.0.orig/debian/changelog
+++ openjump-1.0/debian/changelog
@@ -0,0 +1,77 @@
+openjump (1.0-4) unstable; urgency=low
+
+ [ Barry deFreese ]
+ * Replace libdom0-java dep/b-d with libjdom1-java. (Closes: #500535).
+ * Build-dep on default-jdk instead of java-gcj-compat-dev.
+ * Depend on default-jre instead of java-gcj-compat.
+ * Add ${misc:Depends} for debhelper package.
+ * Update debian/ant.properties to use JVM 1.5.
+ * Update debian/copyright.
+ * Add watch file.
+ * Bump Standards Version to 3.8.3.
+
+ [ Kumar Appaiah ]
+ * Remove myself from uploaders.
+
+ -- Kumar Appaiah Wed, 11 Nov 2009 14:42:09 -0600
+
+openjump (1.0-3) unstable; urgency=low
+
+ [ Petter Reinholdtsen ]
+ * Pass -Dgnu.java.awt.peer.gtk.Graphics=Graphics2D to the JVM by
+ default, to increase the chance of working with a GNU Classpath
+ based VM.
+ * Add new variable JAVA_EXTRA_ARGS to the openjump shell wrapper, to
+ make it easier to add arguments while keeping the default
+ arguments.
+
+ [ Kumar Appaiah ]
+ * Add a patch to build with the latest Buoy version:
+ + debian/patches/04_fix_buoy_apichange.patch
+ * debian/rules:
+ + Clean up to use more CDBS variables.
+ + Build using java-gcj-compat-dev instead of kaffe.
+ * debian/control:
+ + Add Varun Hiremath, Kumar Appaiah and Debian Java packagers to Uploaders.
+ + Remove Wolfgang Baer from Uploaders.
+ + Add the Homepage field to debian/control.
+ + Bump standards version to 3.7.2.
+ + Move debhelper and cdbs to Build-Depends.
+ + Build-Depend on java-gcj-compat-dev, Depend on java-gcj-compat
+ in place of kaffe.
+ * debian/compat: Bump to 5
+ * debian/menu: Move to Applications/Science/Geoscience.
+
+ [ Varun Hiremath ]
+ * debian/control:
+ + Fix Uploaders line.
+ + Depend on versioned libbuoy-java (>= 1.8).
+
+ -- Varun Hiremath Tue, 25 Sep 2007 13:12:41 +0530
+
+openjump (1.0-2) unstable; urgency=low
+
+ * Add 03_icon_scaling.patch rewriting
+ src/com/vividsolutions/jump/workbench/ui/GUIUtil.java to use
+ SCALE_FAST instead of SCALE_SMOOTH, as the latter isn't
+ implemented in classpath. This only affects the icons. The
+ missing feature is classpath bug #365328, and already reported
+ upstream.
+
+ -- Petter Reinholdtsen Sat, 29 Apr 2006 12:37:28 +0200
+
+openjump (1.0-1) unstable; urgency=low
+
+ * Initial Release. This package need to go to contrib for now, as
+ it builds ok but fail to run with classpath. Working with the
+ classpath developers to fix this. (Closes: #356494)
+ * Add 01_unused_sunapi.diff to avoid importing unused private SUN API.
+ * Add 02_imageio.patch to rewrite the JPEG reading code to use the
+ publicly documented API instead of the private SUN API.
+ * Add simple manual page openjump(1) based on jump(1) page written
+ by Wolfgang Baer.
+ * Copied ant rule and log4j config from upstream CVS, to get
+ the source building and the program running.
+
+ -- Petter Reinholdtsen Sat, 18 Mar 2006 12:32:08 +0100
+
--- openjump-1.0.orig/debian/compat
+++ openjump-1.0/debian/compat
@@ -0,0 +1 @@
+5
--- openjump-1.0.orig/debian/openjump-build.xml
+++ openjump-1.0/debian/openjump-build.xml
@@ -0,0 +1,203 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Manifest-Version: 1.0
+Sealed: false
+${Name}-Version: ${version}
+Build-Date: ${TODAY}
+Build-Time: ${TSTAMP}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
--- openjump-1.0.orig/debian/control
+++ openjump-1.0/debian/control
@@ -0,0 +1,23 @@
+Source: openjump
+Section: contrib/science
+Priority: optional
+Maintainer: Debian GIS Project
+Uploaders: Petter Reinholdtsen , Debian Java maintainers , Varun Hiremath
+Build-Depends: debhelper (>= 5), cdbs
+Build-Depends-Indep: default-jdk, ant, libjts-java, liblog4j1.2-java, libxerces2-java, libjdom1-java, libjama-java, junit, bsh, libbatik-java, libbuoy-java (>= 1.8)
+Standards-Version: 3.8.3
+Homepage: http://jump-pilot.sourceforge.net/
+
+Package: openjump
+Architecture: all
+Depends: ${misc:Depends}, default-jre | java2-runtime, libjts-java, libjama-java, libjdom1-java, libxerces2-java, bsh, liblog4j1.2-java, junit, libbatik-java, libbuoy-java (>= 1.8)
+Description: Open Java Unified Mapping Platform JUMP
+ The Open Java Unified Mapping Platform (JUMP) is a GUI-based application
+ for viewing and processing spatial data. It includes many common spatial
+ and GIS functions.
+ .
+ OpenJUMP has the following features:
+ * provides viewing, editing, and processing spatial datasets
+ * provides an API giving full programmatic access
+ * loading map data using WMS
+ * is highly modular and extensible
--- openjump-1.0.orig/debian/ant.properties
+++ openjump-1.0/debian/ant.properties
@@ -0,0 +1,4 @@
+ant.build.javac.source=1.5
+ant.build.javac.target=1.5
+javadoc-dir=api
+build.sysclasspath=only
--- openjump-1.0.orig/debian/openjump.1
+++ openjump-1.0/debian/openjump.1
@@ -0,0 +1,70 @@
+.\" Hey, EMACS: -*- nroff -*-
+.\" First parameter, NAME, should be all caps
+.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
+.\" other parameters are allowed: see man(7), man(1)
+.TH OpenJUMP 1 "March 11, 2006"
+.\" Please adjust this date whenever revising the manpage.
+.\"
+.\" Some roff macros, for reference:
+.\" .nh disable hyphenation
+.\" .hy enable hyphenation
+.\" .ad l left justify
+.\" .ad b justify to both left and right margins
+.\" .nf disable filling
+.\" .fi enable filling
+.\" .br insert line break
+.\" .sp insert n+1 empty lines
+.\" for manpage-specific macros, see man(7)
+.SH NAME
+openjump \- A Java GIS Program
+
+.SH SYNOPSIS
+.B openjump
+.I
+
+.SH DESCRIPTION
+This manual page documents briefly the
+.B openjump
+command.
+This manual page was written for the Debian distribution
+because the original program does not have a manual page.
+.PP
+.\" TeX users may be more comfortable with the \fB\fP and
+.\" \fI\fP escape sequences to invode bold face and italics,
+.\" respectively.
+\fBopenjump\fP is a GIS program that allows to work with spatial datasets. It
+supports reading/writing of shapefiles and GML and provides processing
+operations for spatial data analysis.
+
+.SH OPTIONS
+This program does not have any option. Just start it!
+
+.SH ENVIRONMENT
+.IP \fBDEBUG\fP
+If this environment variable is set, openjump gives more information on how it
+finds its different elements.
+.IP \fBJAVACMD\fP
+Default value for the java virtual machine (the \fBjava\fP command).
+.IP \fBJAVA_BINDIR\fP
+If $\fBJAVACMD\fP is not set, the java virtual machine is searched under
+$\fBJAVA_BINDIR\fP\fI/java\fP.
+.IP \fBJAVA_HOME\fP
+If $\fBJAVACMD\fP and $\fBJAVA_BINDIR\fP are not set, the java virtual machine
+is searched under $\fBJAVA_HOME\fP\fI/bin/java\fP.
+.IP \fBPATH\fP
+If all $\fBJAVA\fP... environment variables fail, the java virtual machine
+command (\fBjava\fP) is searched in the $\fBPATH\fP (with \fBwhich\fP).
+
+.SH FILES
+.IP \fI/usr/bin/java\fP
+If all searches through environment variables fail, the java virtual machine
+is expected to be \fI/usr/bin/java\fP;
+if not, \fBjump\fP exits with an error.
+
+.SH SEE ALSO
+.UE
+
+.SH AUTHOR
+This manual page was written for jump by Wolfgang Baer ,
+for the Debian project (but may be used by others). It was adjusted
+for openjump by Petter Reinholdtsen.
--- openjump-1.0.orig/debian/openjump.manpages
+++ openjump-1.0/debian/openjump.manpages
@@ -0,0 +1 @@
+debian/openjump.1
--- openjump-1.0.orig/debian/README.Debian
+++ openjump-1.0/debian/README.Debian
@@ -0,0 +1,14 @@
+Openjump for Debian
+-------------------
+
+OpenJUMP ATM needs a Java 1.4 runtime because of heavy swing usage.
+Although it compiles against kaffe and classpath, it fail to run.
+
+You can adjust the memory parameters passed to the jvm thought
+the JAVA_ARGS variable, e.g.:
+
+JAVA_ARGS=-mx256m jump
+
+on the command line.
+
+ -- Petter Reinholdtsen , Sat, 11 Feb 2006 22:11:29 +0100
--- openjump-1.0.orig/debian/openjump.dirs
+++ openjump-1.0/debian/openjump.dirs
@@ -0,0 +1,3 @@
+usr/share/java
+usr/share/openjump
+usr/bin
--- openjump-1.0.orig/debian/openjump.menu
+++ openjump-1.0/debian/openjump.menu
@@ -0,0 +1,2 @@
+?package(openjump):needs="X11" section="Applications/Science/Geoscience" \
+ title="OpenJUMP" command="/usr/bin/openjump"
--- openjump-1.0.orig/debian/patches/02_imageio.patch
+++ openjump-1.0/debian/patches/02_imageio.patch
@@ -0,0 +1,39 @@
+Avoid using SUNs private API. Rewritten to use the public API
+available since Java 1.4 instead. Rewrite was done by Wolfgang Baer.
+
+Patch was sent uptream by pere@hungry.com 2006-03-11.
+
+--- openjump-1.0.orig/src/org/openjump/io/SIDLayer.java
++++ openjump-1.0/src/org/openjump/io/SIDLayer.java
+@@ -52,11 +52,12 @@
+ import java.util.Iterator;
+ import java.util.List;
+
++import javax.imageio.ImageIO;
++import javax.imageio.ImageReader;
++import javax.imageio.stream.FileImageInputStream;
++
+ import org.openjump.core.ui.plugin.layer.AddSIDLayerPlugIn;
+
+-import com.sun.image.codec.jpeg.JPEGCodec;
+-import com.sun.image.codec.jpeg.JPEGDecodeParam;
+-import com.sun.image.codec.jpeg.JPEGImageDecoder;
+ import com.vividsolutions.jts.geom.Envelope;
+ import com.vividsolutions.jts.util.Assert;
+ import com.vividsolutions.jump.I18N;
+@@ -291,10 +292,11 @@
+
+ if (((jpgFile.exists()) && (jpgFile.isFile()) && (jpgFile.canRead())))
+ {
+- FileInputStream in = new FileInputStream(jpgFilename);
+- JPEGImageDecoder decoder = JPEGCodec.createJPEGDecoder(in);
+- JPEGDecodeParam dp = decoder.getJPEGDecodeParam();
+- BufferedImage image = decoder.decodeAsBufferedImage();
++ FileImageInputStream in = new FileImageInputStream(new File(jpgFilename));
++ ImageReader decoder = (ImageReader) ImageIO.getImageReadersByFormatName("JPEG").next();
++ decoder.setInput(in);
++ BufferedImage image = decoder.read(0);
++ decoder.dispose();
+ in.close();
+
+ if (!sid_colorspace.equals("GREYSCALE"))
--- openjump-1.0.orig/debian/patches/03_icon_scaling.patch
+++ openjump-1.0/debian/patches/03_icon_scaling.patch
@@ -0,0 +1,17 @@
+Image.SCALE_SMOOTH is not implemented in GNU Classpath. Use
+Image.SCALE_FAST instead when resizing the icon images.
+
+Patch was sent uptream 2006-04-28 to jump-pilot-devel at
+lists.sourceforge.net by Petter Reinholdtsen.
+
+--- openjump-1.0.orig/src/com/vividsolutions/jump/workbench/ui/GUIUtil.java
++++ openjump-1.0/src/com/vividsolutions/jump/workbench/ui/GUIUtil.java
+@@ -676,7 +676,7 @@
+
+ public static ImageIcon resize(ImageIcon icon, int extent) {
+ return new ImageIcon(icon.getImage().getScaledInstance(extent, extent,
+- Image.SCALE_SMOOTH));
++ Image.SCALE_FAST));
+ }
+
+ /**
--- openjump-1.0.orig/debian/patches/05_jdom1.patch
+++ openjump-1.0/debian/patches/05_jdom1.patch
@@ -0,0 +1,29 @@
+diff -Nur -x '*.orig' -x '*~' openjump-1.0/src/com/vividsolutions/jump/util/java2xml/Java2XML.java openjump-1.0.new/src/com/vividsolutions/jump/util/java2xml/Java2XML.java
+--- openjump-1.0/src/com/vividsolutions/jump/util/java2xml/Java2XML.java 2005-05-03 13:42:56.000000000 -0400
++++ openjump-1.0.new/src/com/vividsolutions/jump/util/java2xml/Java2XML.java 2009-11-11 14:18:08.000000000 -0500
+@@ -30,6 +30,7 @@
+ import org.jdom.Document;
+ import org.jdom.Element;
+ import org.jdom.output.XMLOutputter;
++import org.jdom.output.Format;
+
+ import java.io.*;
+ import java.io.File;
+@@ -77,8 +78,7 @@
+ write(object, document.getRootElement(),
+ specElements(object.getClass()));
+ XMLOutputter xmlOutputter = new XMLOutputter();
+- xmlOutputter.setNewlines(true);
+- xmlOutputter.setIndent(true);
++ xmlOutputter.setFormat(Format.getPrettyFormat());
+ xmlOutputter.output(document, writer);
+ }
+ private void write(final Object object, final Element tag, List specElements)
+@@ -202,4 +202,5 @@
+ throw new XMLBinderException("Could not find getter named like '"
+ + field + "' " + fieldClass);
+ }
+-}
+\ No newline at end of file
++}
++
--- openjump-1.0.orig/debian/patches/04_fix_buoy_apichange.patch
+++ openjump-1.0/debian/patches/04_fix_buoy_apichange.patch
@@ -0,0 +1,20 @@
+diff -Nur openjump-1.0/src/org/openjump/core/ui/plugin/queries/QueryDialog.java openjump-1.0.new/src/org/openjump/core/ui/plugin/queries/QueryDialog.java
+--- openjump-1.0/src/org/openjump/core/ui/plugin/queries/QueryDialog.java 2005-10-22 17:00:12.000000000 +0530
++++ openjump-1.0.new/src/org/openjump/core/ui/plugin/queries/QueryDialog.java 2007-09-24 14:09:43.000000000 +0530
+@@ -140,13 +140,13 @@
+ private void initInternal() {
+ component.addComponentListener(new ComponentAdapter() {
+ public void componentResized(ComponentEvent ev) {
+- if (lastSetSize == null || !lastSetSize.equals(component.getSize())) {
+- lastSetSize = null;
++ if (lastSize == null || !lastSize.equals(component.getSize())) {
++ lastSize = null;
+ layoutChildren();
+ QueryDialog.this.dispatchEvent(new WindowResizedEvent(QueryDialog.this));
+ }
+ else
+- lastSetSize = null;
++ lastSize = null;
+ }
+ });
+ ((JDialog) component).setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE);
--- openjump-1.0.orig/debian/patches/01_unused_sunapi.diff
+++ openjump-1.0/debian/patches/01_unused_sunapi.diff
@@ -0,0 +1,27 @@
+Avoid importing SUNs private API. These imports are unused, so there
+is no rewrites needed.
+
+Patch was sent uptream by pere@hungry.com 2006-03-11.
+
+--- openjump-1.0.orig/src/com/vividsolutions/jump/workbench/datasource/SaveDatasetAsPlugIn.java
++++ openjump-1.0/src/com/vividsolutions/jump/workbench/datasource/SaveDatasetAsPlugIn.java
+@@ -35,8 +35,6 @@
+ import java.awt.event.WindowEvent;
+ import java.util.Collection;
+
+-import sun.security.action.GetLongAction;
+-
+ import com.vividsolutions.jts.util.Assert;
+
+ import com.vividsolutions.jump.I18N;
+--- openjump-1.0.orig/src/com/vividsolutions/jump/workbench/JUMPWorkbenchContext.java
++++ openjump-1.0/src/com/vividsolutions/jump/workbench/JUMPWorkbenchContext.java
+@@ -35,8 +35,6 @@
+
+ import javax.swing.JInternalFrame;
+
+-import sun.security.action.GetBooleanAction;
+-
+ import com.vividsolutions.jump.util.Blackboard;
+ import com.vividsolutions.jump.workbench.driver.DriverManager;
+ import com.vividsolutions.jump.workbench.model.LayerManager;