[jsword-svn] common/java/swing/org/crosswire/common/swing s

jswordcvs at crosswire.org jswordcvs at crosswire.org
Mon May 16 17:47:03 MST 2005


Update of /cvs/jsword/common/java/swing/org/crosswire/common/swing
In directory www.crosswire.org:/tmp/cvs-serv25437/java/swing/org/crosswire/common/swing

Modified Files:
	Msg.java GuiUtil.java AntiAliasedTextPane.java 
	FixedSplitPane.java GuiConvert.java ActionFactory.java 
	NumericDocument.java EdgeBorder.java StackTraceListModel.java 
	CatchingThreadGroup.java FieldLayout.java ExceptionPane.java 
	FormPane.java FontChooser.java CWAction.java 
	LookAndFeelUtil.java NudgeButton.java MapTableModel.java 
	BeanPanel.java QuickHelpDialog.java AbstractLayout.java 
Log Message:
Added support for CheckStyle plugin.
Added a few more CheckStyle rules.
Fixed a spelling mistake.

Index: FixedSplitPane.java
===================================================================
RCS file: /cvs/jsword/common/java/swing/org/crosswire/common/swing/FixedSplitPane.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** FixedSplitPane.java	10 May 2005 02:38:36 -0000	1.7
--- FixedSplitPane.java	17 May 2005 00:47:01 -0000	1.8
***************
*** 55,59 ****
   * pixel counts, the solution here is to set the preferred size to zero.
   *
!  * @see gnu.gpl.Licence for license details.
   *      The copyright to this program is held by it's authors.
   * @author DM Smith [dmsmith555 at yahoo dot com]
--- 55,59 ----
   * pixel counts, the solution here is to set the preferred size to zero.
   *
!  * @see gnu.gpl.License for license details.
   *      The copyright to this program is held by it's authors.
   * @author DM Smith [dmsmith555 at yahoo dot com]

Index: CatchingThreadGroup.java
===================================================================
RCS file: /cvs/jsword/common/java/swing/org/crosswire/common/swing/CatchingThreadGroup.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** CatchingThreadGroup.java	10 May 2005 02:38:36 -0000	1.4
--- CatchingThreadGroup.java	17 May 2005 00:47:01 -0000	1.5
***************
*** 25,29 ****
   * Another way to get ahold of missing exceptions.
   * 
!  * @see gnu.gpl.Licence for license details.
   *      The copyright to this program is held by it's authors.
   * @author Joe Walker [joe at eireneh dot com]
--- 25,29 ----
   * Another way to get ahold of missing exceptions.
   * 
!  * @see gnu.gpl.License for license details.
   *      The copyright to this program is held by it's authors.
   * @author Joe Walker [joe at eireneh dot com]

Index: MapTableModel.java
===================================================================
RCS file: /cvs/jsword/common/java/swing/org/crosswire/common/swing/MapTableModel.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** MapTableModel.java	10 May 2005 02:38:36 -0000	1.7
--- MapTableModel.java	17 May 2005 00:47:01 -0000	1.8
***************
*** 39,43 ****
   * reflected in the JTable.
   * 
!  * @see gnu.gpl.Licence for license details.
   *      The copyright to this program is held by it's authors.
   * @author Joe Walker [joe at eireneh dot com]
--- 39,43 ----
   * reflected in the JTable.
   * 
!  * @see gnu.gpl.License for license details.
   *      The copyright to this program is held by it's authors.
   * @author Joe Walker [joe at eireneh dot com]
***************
*** 99,106 ****
      /**
       * @param key
!      * @param value
       */
!     public void add(String key, String value)
      {
          if (value == null)
          {
--- 99,107 ----
      /**
       * @param key
!      * @param aValue
       */
!     public void add(String key, String aValue)
      {
+         String value = aValue;
          if (value == null)
          {
***************
*** 254,258 ****
      private String[] colNames = new String[]
      {
!         Msg.KEYS.toString(), Msg.VALUES.toString()
      };
  
--- 255,259 ----
      private String[] colNames = new String[]
      {
!         Msg.KEYS.toString(), Msg.VALUES.toString(),
      };
  

Index: FieldLayout.java
===================================================================
RCS file: /cvs/jsword/common/java/swing/org/crosswire/common/swing/FieldLayout.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** FieldLayout.java	10 May 2005 02:38:36 -0000	1.10
--- FieldLayout.java	17 May 2005 00:47:01 -0000	1.11
***************
*** 32,36 ****
   * up earlier when considering updates to this.
   * 
!  * @see gnu.gpl.Licence for license details.
   *      The copyright to this program is held by it's authors.
   * @author Joe Walker [joe at eireneh dot com]
--- 32,36 ----
   * up earlier when considering updates to this.
   * 
!  * @see gnu.gpl.License for license details.
   *      The copyright to this program is held by it's authors.
   * @author Joe Walker [joe at eireneh dot com]

Index: LookAndFeelUtil.java
===================================================================
RCS file: /cvs/jsword/common/java/swing/org/crosswire/common/swing/LookAndFeelUtil.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** LookAndFeelUtil.java	10 May 2005 02:38:36 -0000	1.11
--- LookAndFeelUtil.java	17 May 2005 00:47:01 -0000	1.12
***************
*** 33,37 ****
   * PLAFs without needing to restart.
   *
!  * @see gnu.gpl.Licence for license details.
   *      The copyright to this program is held by it's authors.
   * @author Joe Walker [joe at eireneh dot com]
--- 33,37 ----
   * PLAFs without needing to restart.
   *
!  * @see gnu.gpl.License for license details.
   *      The copyright to this program is held by it's authors.
   * @author Joe Walker [joe at eireneh dot com]
***************
*** 39,43 ****
   * @author DM Smith [dmsmith555 at yahoo dot com]
   */
! public class LookAndFeelUtil
  {
      /**
--- 39,43 ----
   * @author DM Smith [dmsmith555 at yahoo dot com]
   */
! public final class LookAndFeelUtil
  {
      /**

Index: AntiAliasedTextPane.java
===================================================================
RCS file: /cvs/jsword/common/java/swing/org/crosswire/common/swing/AntiAliasedTextPane.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** AntiAliasedTextPane.java	10 May 2005 02:38:36 -0000	1.5
--- AntiAliasedTextPane.java	17 May 2005 00:47:01 -0000	1.6
***************
*** 32,36 ****
   * J2SE5(joe): we will need to take a bit of care not clashing with J2SE5 AA
   * 
!  * @see gnu.gpl.Licence for license details.
   *      The copyright to this program is held by it's authors.
   * @author Joe Walker [joe at eireneh dot com]
--- 32,36 ----
   * J2SE5(joe): we will need to take a bit of care not clashing with J2SE5 AA
   * 
!  * @see gnu.gpl.License for license details.
   *      The copyright to this program is held by it's authors.
   * @author Joe Walker [joe at eireneh dot com]

Index: Msg.java
===================================================================
RCS file: /cvs/jsword/common/java/swing/org/crosswire/common/swing/Msg.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** Msg.java	10 May 2005 02:38:36 -0000	1.6
--- Msg.java	17 May 2005 00:47:01 -0000	1.7
***************
*** 27,35 ****
   * Compile safe Msg resource settings.
   * 
!  * @see gnu.gpl.Licence for license details.
   *      The copyright to this program is held by it's authors.
   * @author Joe Walker [joe at eireneh dot com]
   */
! class Msg extends MsgBase
  {
      static final Msg ERROR_READING = new Msg("BeanPanel.ErrorReading"); //$NON-NLS-1$
--- 27,35 ----
   * Compile safe Msg resource settings.
   * 
!  * @see gnu.gpl.License for license details.
   *      The copyright to this program is held by it's authors.
   * @author Joe Walker [joe at eireneh dot com]
   */
! final class Msg extends MsgBase
  {
      static final Msg ERROR_READING = new Msg("BeanPanel.ErrorReading"); //$NON-NLS-1$

Index: BeanPanel.java
===================================================================
RCS file: /cvs/jsword/common/java/swing/org/crosswire/common/swing/BeanPanel.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** BeanPanel.java	10 May 2005 02:38:36 -0000	1.6
--- BeanPanel.java	17 May 2005 00:47:01 -0000	1.7
***************
*** 46,50 ****
   * A (supposedly) generic panel to display and allow editing of bean properties.
   * 
!  * @see gnu.gpl.Licence for license details.
   *      The copyright to this program is held by it's authors.
   * @author Joe Walker [joe at eireneh dot com]
--- 46,50 ----
   * A (supposedly) generic panel to display and allow editing of bean properties.
   * 
!  * @see gnu.gpl.License for license details.
   *      The copyright to this program is held by it's authors.
   * @author Joe Walker [joe at eireneh dot com]

Index: GuiConvert.java
===================================================================
RCS file: /cvs/jsword/common/java/swing/org/crosswire/common/swing/GuiConvert.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** GuiConvert.java	10 May 2005 02:38:36 -0000	1.7
--- GuiConvert.java	17 May 2005 00:47:01 -0000	1.8
***************
*** 31,39 ****
   * Conversions between various types and Strings.
   * 
!  * @see gnu.gpl.Licence for license details.
   *      The copyright to this program is held by it's authors.
   * @author Joe Walker [joe at eireneh dot com]
   */
! public class GuiConvert
  {
      /**
--- 31,39 ----
   * Conversions between various types and Strings.
   * 
!  * @see gnu.gpl.License for license details.
   *      The copyright to this program is held by it's authors.
   * @author Joe Walker [joe at eireneh dot com]
   */
! public final class GuiConvert
  {
      /**

Index: StackTraceListModel.java
===================================================================
RCS file: /cvs/jsword/common/java/swing/org/crosswire/common/swing/StackTraceListModel.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** StackTraceListModel.java	10 May 2005 02:38:36 -0000	1.3
--- StackTraceListModel.java	17 May 2005 00:47:01 -0000	1.4
***************
*** 30,34 ****
   * To itterate over the full function names.
   * 
!  * @see gnu.gpl.Licence for license details.
   *      The copyright to this program is held by it's authors.
   * @author Joe Walker [joe at eireneh dot com]
--- 30,34 ----
   * To itterate over the full function names.
   * 
!  * @see gnu.gpl.License for license details.
   *      The copyright to this program is held by it's authors.
   * @author Joe Walker [joe at eireneh dot com]

Index: AbstractLayout.java
===================================================================
RCS file: /cvs/jsword/common/java/swing/org/crosswire/common/swing/AbstractLayout.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** AbstractLayout.java	10 May 2005 02:38:36 -0000	1.10
--- AbstractLayout.java	17 May 2005 00:47:01 -0000	1.11
***************
*** 31,35 ****
   * AbstractLayout - support for DeckLayout.
   *
!  * @see gnu.gpl.Licence for license details.
   *      The copyright to this program is held by it's authors.
   * @author Joe Walker [joe at eireneh dot com]
--- 31,35 ----
   * AbstractLayout - support for DeckLayout.
   *
!  * @see gnu.gpl.License for license details.
   *      The copyright to this program is held by it's authors.
   * @author Joe Walker [joe at eireneh dot com]

Index: EdgeBorder.java
===================================================================
RCS file: /cvs/jsword/common/java/swing/org/crosswire/common/swing/EdgeBorder.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** EdgeBorder.java	10 May 2005 02:38:36 -0000	1.3
--- EdgeBorder.java	17 May 2005 00:47:01 -0000	1.4
***************
*** 32,36 ****
   * EdgeBorder.
   *
!  * @see gnu.gpl.Licence for license details.
   *      The copyright to this program is held by it's authors.
   * @author Joe Walker
--- 32,36 ----
   * EdgeBorder.
   *
!  * @see gnu.gpl.License for license details.
   *      The copyright to this program is held by it's authors.
   * @author Joe Walker
***************
*** 63,70 ****
          switch (edge)
          {
!         case SOUTH: return new Insets(0, 0, 2, 0);
!         case EAST: return new Insets(0, 2, 0, 0);
!         case WEST: return new Insets(0, 0, 0, 2);
!         default: return new Insets(2, 0, 0, 0);
          }
      }
--- 63,74 ----
          switch (edge)
          {
!         case SOUTH:
!             return new Insets(0, 0, 2, 0);
!         case EAST:
!             return new Insets(0, 2, 0, 0);
!         case WEST:
!             return new Insets(0, 0, 0, 2);
!         default:
!             return new Insets(2, 0, 0, 0);
          }
      }

Index: FontChooser.java
===================================================================
RCS file: /cvs/jsword/common/java/swing/org/crosswire/common/swing/FontChooser.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** FontChooser.java	10 May 2005 02:38:36 -0000	1.10
--- FontChooser.java	17 May 2005 00:47:01 -0000	1.11
***************
*** 53,57 ****
   * FileSelectionDialog.
   * 
!  * @see gnu.gpl.Licence for license details.
   *      The copyright to this program is held by it's authors.
   * @author Joe Walker [joe at eireneh dot com]
--- 53,57 ----
   * FileSelectionDialog.
   * 
!  * @see gnu.gpl.License for license details.
   *      The copyright to this program is held by it's authors.
   * @author Joe Walker [joe at eireneh dot com]

Index: FormPane.java
===================================================================
RCS file: /cvs/jsword/common/java/swing/org/crosswire/common/swing/FormPane.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** FormPane.java	10 May 2005 02:38:36 -0000	1.5
--- FormPane.java	17 May 2005 00:47:01 -0000	1.6
***************
*** 32,36 ****
   * A Panel customized to hold fields.
   *
!  * @see gnu.gpl.Licence for license details.
   *      The copyright to this program is held by it's authors.
   * @author Joe Walker [joe at eireneh dot com]
--- 32,36 ----
   * A Panel customized to hold fields.
   *
!  * @see gnu.gpl.License for license details.
   *      The copyright to this program is held by it's authors.
   * @author Joe Walker [joe at eireneh dot com]

Index: NumericDocument.java
===================================================================
RCS file: /cvs/jsword/common/java/swing/org/crosswire/common/swing/NumericDocument.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** NumericDocument.java	10 May 2005 02:38:36 -0000	1.7
--- NumericDocument.java	17 May 2005 00:47:01 -0000	1.8
***************
*** 30,34 ****
   * data entered according to Character.isDigit.
   * 
!  * @see gnu.gpl.Licence for license details.
   *      The copyright to this program is held by it's authors.
   * @author Joe Walker [joe at eireneh dot com]
--- 30,34 ----
   * data entered according to Character.isDigit.
   * 
!  * @see gnu.gpl.License for license details.
   *      The copyright to this program is held by it's authors.
   * @author Joe Walker [joe at eireneh dot com]

Index: NudgeButton.java
===================================================================
RCS file: /cvs/jsword/common/java/swing/org/crosswire/common/swing/NudgeButton.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** NudgeButton.java	10 May 2005 02:38:36 -0000	1.5
--- NudgeButton.java	17 May 2005 00:47:01 -0000	1.6
***************
*** 34,38 ****
   * even down to passing on edited source.
   * 
!  * @see gnu.gpl.Licence for license details.
   *      The copyright to this program is held by it's authors.
   * @author Joe Walker [joe at eireneh dot com]
--- 34,38 ----
   * even down to passing on edited source.
   * 
!  * @see gnu.gpl.License for license details.
   *      The copyright to this program is held by it's authors.
   * @author Joe Walker [joe at eireneh dot com]

Index: QuickHelpDialog.java
===================================================================
RCS file: /cvs/jsword/common/java/swing/org/crosswire/common/swing/QuickHelpDialog.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** QuickHelpDialog.java	10 May 2005 02:38:36 -0000	1.6
--- QuickHelpDialog.java	17 May 2005 00:47:01 -0000	1.7
***************
*** 42,46 ****
   * .
   * 
!  * @see gnu.gpl.Licence for license details.
   *      The copyright to this program is held by it's authors.
   * @author Joe Walker [joe at eireneh dot com]
--- 42,46 ----
   * .
   * 
!  * @see gnu.gpl.License for license details.
   *      The copyright to this program is held by it's authors.
   * @author Joe Walker [joe at eireneh dot com]

Index: ActionFactory.java
===================================================================
RCS file: /cvs/jsword/common/java/swing/org/crosswire/common/swing/ActionFactory.java,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** ActionFactory.java	10 May 2005 02:38:36 -0000	1.14
--- ActionFactory.java	17 May 2005 00:47:01 -0000	1.15
***************
*** 52,56 ****
   * The values for the icons are a path which can be found as a resource.
   *
!  * @see gnu.gpl.Licence for license details.
   *      The copyright to this program is held by it's authors.
   * @author DM Smith [dmsmith555 at yahoo dot com]
--- 52,56 ----
   * The values for the icons are a path which can be found as a resource.
   *
!  * @see gnu.gpl.License for license details.
   *      The copyright to this program is held by it's authors.
   * @author DM Smith [dmsmith555 at yahoo dot com]

Index: CWAction.java
===================================================================
RCS file: /cvs/jsword/common/java/swing/org/crosswire/common/swing/CWAction.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** CWAction.java	10 May 2005 02:38:36 -0000	1.7
--- CWAction.java	17 May 2005 00:47:01 -0000	1.8
***************
*** 35,39 ****
   * the ACTION_COMMAND_KEY.
   *
!  * @see gnu.gpl.Licence for license details.
   *      The copyright to this program is held by it's authors.
   * @author DM Smith [dmsmith555 at yahoo dot com]
--- 35,39 ----
   * the ACTION_COMMAND_KEY.
   *
!  * @see gnu.gpl.License for license details.
   *      The copyright to this program is held by it's authors.
   * @author DM Smith [dmsmith555 at yahoo dot com]

Index: ExceptionPane.java
===================================================================
RCS file: /cvs/jsword/common/java/swing/org/crosswire/common/swing/ExceptionPane.java,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** ExceptionPane.java	10 May 2005 02:38:36 -0000	1.13
--- ExceptionPane.java	17 May 2005 00:47:01 -0000	1.14
***************
*** 67,75 ****
   * A simple way of reporting problems to the user.
   *
!  * @see gnu.gpl.Licence for license details.
   *      The copyright to this program is held by it's authors.
   * @author Joe Walker [joe at eireneh dot com]
   */
! public class ExceptionPane extends JPanel
  {
      /**
--- 67,75 ----
   * A simple way of reporting problems to the user.
   *
!  * @see gnu.gpl.License for license details.
   *      The copyright to this program is held by it's authors.
   * @author Joe Walker [joe at eireneh dot com]
   */
! public final class ExceptionPane extends JPanel
  {
      /**
***************
*** 569,599 ****
      *
      */
!    private static final class ExceptionRunner implements Runnable
!    {
!        /**
!         * @param ev
!         */
!        public ExceptionRunner(ReporterEvent ev)
!        {
!            event = ev;
!        }
  
!        /* (non-Javadoc)
!         * @see java.lang.Runnable#run()
!         */
!        public void run()
!        {
!            if (event.getSource() instanceof Component)
!            {
!                showExceptionDialog((Component) event.getSource(), event.getException());
!            }
!            else
!            {
!                showExceptionDialog(null, event.getException());
!            }
!        }
  
!        private ReporterEvent event;
!    }
  
     /**
--- 569,599 ----
      *
      */
!     private static final class ExceptionRunner implements Runnable
!     {
!         /**
!          * @param ev
!          */
!         public ExceptionRunner(ReporterEvent ev)
!         {
!             event = ev;
!         }
  
!         /* (non-Javadoc)
!          * @see java.lang.Runnable#run()
!          */
!         public void run()
!         {
!             if (event.getSource() instanceof Component)
!             {
!                 showExceptionDialog((Component) event.getSource(), event.getException());
!             }
!             else
!             {
!                 showExceptionDialog(null, event.getException());
!             }
!         }
  
!         private ReporterEvent event;
!     }
  
     /**

Index: GuiUtil.java
===================================================================
RCS file: /cvs/jsword/common/java/swing/org/crosswire/common/swing/GuiUtil.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** GuiUtil.java	10 May 2005 02:38:36 -0000	1.11
--- GuiUtil.java	17 May 2005 00:47:01 -0000	1.12
***************
*** 49,57 ****
   * Various Gui Utilities.
   *
!  * @see gnu.gpl.Licence for license details.
   *      The copyright to this program is held by it's authors.
   * @author Joe Walker [joe at eireneh dot com]
   */
! public class GuiUtil
  {
      /**
--- 49,57 ----
   * Various Gui Utilities.
   *
!  * @see gnu.gpl.License for license details.
   *      The copyright to this program is held by it's authors.
   * @author Joe Walker [joe at eireneh dot com]
   */
! public final class GuiUtil
  {
      /**



More information about the jsword-svn mailing list