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

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

Modified Files:
	JXTable.java 
Log Message:
Fix for bug 1205706 and other look and feel fixes

Index: JXTable.java
===================================================================
RCS file: /cvsroot/xframe/swing/src/net/sf/xframe/swing/JXTable.java,v
retrieving revision 1.25
retrieving revision 1.26
diff -C2 -d -r1.25 -r1.26
*** JXTable.java	31 May 2005 17:17:09 -0000	1.25
--- JXTable.java	31 May 2005 23:38:55 -0000	1.26
***************
*** 41,45 ****
  import java.util.EventListener;
  import java.util.EventObject;
- 
  import javax.accessibility.Accessible;
  import javax.swing.AbstractAction;
--- 41,44 ----
***************
*** 73,77 ****
  import javax.swing.table.TableColumnModel;
  import javax.swing.table.TableModel;
- 
  import net.sf.xframe.swing.scroll.JScrollPaneAdjuster;
  import net.sf.xframe.swing.table.ColumnGroupHeader;
--- 72,75 ----
***************
*** 349,352 ****
--- 347,355 ----
      }
  
+     public JScrollPane getScrollPane()
+     {
+         return scrollPane;
+     }
+     
      /**
       * Adjusts the action maps of the two tables to allow proper navigation
***************
*** 2357,2362 ****
       */
      public void editingCanceled(final ChangeEvent e) {
!         lockedTable.editingCanceled(e);
!         scrollTable.editingCanceled(e);
      }
  
--- 2360,2365 ----
       */
      public void editingCanceled(final ChangeEvent e) {
!         lockedTable.superEditingCanceled(e);
!         scrollTable.superEditingCanceled(e);
      }
  
***************
*** 2367,2372 ****
       */
      public void editingStopped(final ChangeEvent e) {
!         lockedTable.editingStopped(e);
!         scrollTable.editingStopped(e);
      }
  
--- 2370,2375 ----
       */
      public void editingStopped(final ChangeEvent e) {
!         lockedTable.superEditingStopped(e);
!         scrollTable.superEditingStopped(e);
      }
  
***************
*** 2541,2549 ****
       */
      public int getSelectedColumn() {
!         int i = lockedTable.getSelectedColumn();
!         if (i == -1) {
!             i = frozenColumns + scrollTable.getSelectedColumn();
!         }
!         return i;
      }
  
--- 2544,2549 ----
       */
      public int getSelectedColumn() {
!         final int i = lockedTable.getSelectedColumn();
!         return i == -1 ?  frozenColumns + scrollTable.getSelectedColumn() : i;
      }
  
***************
*** 3021,3024 ****
--- 3021,3040 ----
          return AWTEventMulticaster.getListeners(l, listenerType);
      }
+     
+     /* (non-Javadoc)
+      * @see javax.swing.JComponent#setBackground(java.awt.Color)
+      */
+     public void setBackground(Color bg)
+     {
+         scrollPane.setBackground(bg);
+     }
+     
+     /* (non-Javadoc)
+      * @see javax.swing.JComponent#setOpaque(boolean)
+      */
+     public void setOpaque(boolean isOpaque)
+     {
+         scrollPane.setOpaque(isOpaque);
+     }
  
      /**



-------------------------------------------------------
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