swing/src/net/sf/xframe/swing JXTable.java,1.24,1.25

I?aqui Medina <[email protected]> Tue, 31 May 2005 17:17:12 +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-serv13041/src/net/sf/xframe/swing

Modified Files:
	JXTable.java 
Log Message:
Fix for bug 1212119

Index: JXTable.java
===================================================================
RCS file: /cvsroot/xframe/swing/src/net/sf/xframe/swing/JXTable.java,v
retrieving revision 1.24
retrieving revision 1.25
diff -C2 -d -r1.24 -r1.25
*** JXTable.java	31 May 2005 16:38:21 -0000	1.24
--- JXTable.java	31 May 2005 17:17:09 -0000	1.25
***************
*** 2501,2506 ****
--- 2501,2510 ----
      public void setColumnSelectionInterval(final int index0, final int index1) throws IllegalArgumentException {
          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);
          } else {



-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005