swing/src/net/sf/xframe/swing JXTable.java,1.27,1.28

Kurt Riede <[email protected]> Thu, 30 Jun 2005 06:14:30 +0000
Newsgroups gmane.text.xml.xframe.xsddoc.devel
Message-ID <[email protected]>
Update of /cvsroot/xframe/swing/src/net/sf/xframe/swing
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20835/src/net/sf/xframe/swing

Modified Files:
	JXTable.java 
Log Message:
coding conventions applied

Index: JXTable.java
===================================================================
RCS file: /cvsroot/xframe/swing/src/net/sf/xframe/swing/JXTable.java,v
retrieving revision 1.27
retrieving revision 1.28
diff -C2 -d -r1.27 -r1.28
*** JXTable.java	29 Jun 2005 20:54:50 -0000	1.27
--- JXTable.java	30 Jun 2005 06:14:28 -0000	1.28
***************
*** 2072,2077 ****
       *
       * @param policy one of the three values listed above
!      * @throws IllegalArgumentException if <code>policy</code> 
!      *				is not one of the legal values shown above
       * @see #getVerticalScrollBarPolicy
       */
--- 2072,2077 ----
       *
       * @param policy one of the three values listed above
!      * @throws IllegalArgumentException if <code>policy</code>
!      *         is not one of the legal values shown above
       * @see #getVerticalScrollBarPolicy
       */
***************
*** 2511,2520 ****
          if (index1 < frozenColumns) {
              final int count = scrollTable.getColumnCount();
!             if (count > 0) scrollTable.removeColumnSelectionInterval(0, count-1);
              lockedTable.setColumnSelectionInterval(index0, index1);
          } else if (index0 >= frozenColumns) {
              final int count = lockedTable.getColumnCount();
              if (count > 0) {
!             	lockedTable.removeColumnSelectionInterval(0, count-1);
              }
              scrollTable.setColumnSelectionInterval(index0 - frozenColumns, index1 - frozenColumns);
--- 2511,2522 ----
          if (index1 < frozenColumns) {
              final int count = scrollTable.getColumnCount();
!             if (count > 0) {
!                 scrollTable.removeColumnSelectionInterval(0, count - 1);
!             }
              lockedTable.setColumnSelectionInterval(index0, index1);
          } else if (index0 >= frozenColumns) {
              final int count = lockedTable.getColumnCount();
              if (count > 0) {
!                 lockedTable.removeColumnSelectionInterval(0, count - 1);
              }
              scrollTable.setColumnSelectionInterval(index0 - frozenColumns, index1 - frozenColumns);
***************
*** 2571,2575 ****
          }
          for (int i = 0; i < i2.length; i++) {
!             i3[i + i1.length] = i2[i] + frozenColumns; 
          }
          return i3;
--- 2573,2577 ----
          }
          for (int i = 0; i < i2.length; i++) {
!             i3[i + i1.length] = i2[i] + frozenColumns;
          }
          return i3;
***************
*** 2795,2799 ****
          getScrollTable().setTransferHandler(newHandler);
      }
!     
      /**
       * Gets the <code>transferHandler</code> property.
--- 2797,2801 ----
          getScrollTable().setTransferHandler(newHandler);
      }
! 
      /**
       * Gets the <code>transferHandler</code> property.
***************
*** 3033,3037 ****
       * @see javax.swing.JComponent#setBackground(java.awt.Color)
       */
!     public void setBackground(Color bg) {
          scrollPane.setBackground(bg);
      }
--- 3035,3039 ----
       * @see javax.swing.JComponent#setBackground(java.awt.Color)
       */
!     public void setBackground(final Color bg) {
          scrollPane.setBackground(bg);
      }
***************
*** 3040,3044 ****
       * @see javax.swing.JComponent#setOpaque(boolean)
       */
!     public void setOpaque(boolean isOpaque) {
          scrollPane.setOpaque(isOpaque);
      }
--- 3042,3046 ----
       * @see javax.swing.JComponent#setOpaque(boolean)
       */
!     public void setOpaque(final boolean isOpaque) {
          scrollPane.setOpaque(isOpaque);
      }
***************
*** 3165,3169 ****
       */
      public void setScrollPaneUI(final ScrollPaneUI scrollpaneui) {
! 		scrollPane.setUI(scrollpaneui);
! 	}
  }
--- 3167,3171 ----
       */
      public void setScrollPaneUI(final ScrollPaneUI scrollpaneui) {
!         scrollPane.setUI(scrollpaneui);
!     }
  }



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click