> i tried to get the selection back after a refresh on the tree but that
doesn't seem
> to work completely only database or catalogs keep the selections ??
Very peculiar. The weird thing is it must actually select the table node in
the tree because the details panel for the table gets redisplayed which is
the important thing. I wouldn't worry about it for the moment as its more
cosmetic than anything.
A couple of little things with the table sorting. When you resize a column
it actually sorts by one of the columns as well. Would it be possible to
have a "dead" area in the table header that when the cursor has changed for
resizing the column that the click is ignored for sorting? I don't know if
there is any way of getting feedback from the table when it has gone into
"column resize mode". Hopefully there is.
I get an exception thrown if I sort by a column that contains an empty
string. I.E. If you issue the SQL cmd
select '', 1 from some_table
and then sort by the second column it works but sorting by the first column
gives a NullPointerException. Copying the data from the results gives the
following
' 1
----------------------
<null> 1.0
<null> 1.0
Exception occurred during event dispatching:
java.lang.NullPointerException
at java.lang.String.compareTo(String.java:797)
at java.lang.String.compareTo(String.java:847)
at
net.sourceforge.squirrel_sql.fw.gui.SortableTableModel$TableModelComparator.
compare(SortableTableModel.java:260)
at java.util.Arrays.mergeSort(Arrays.java:1181)
at java.util.Arrays.mergeSort(Arrays.java:1188)
at java.util.Arrays.mergeSort(Arrays.java:1188)
at java.util.Arrays.sort(Arrays.java:1128)
at
net.sourceforge.squirrel_sql.fw.gui.SortableTableModel.sortByColumn(Sortable
TableModel.java:226)
at
net.sourceforge.squirrel_sql.fw.gui.SortableTableModel.sortByColumn(Sortable
TableModel.java:208)
at
net.sourceforge.squirrel_sql.fw.gui.ButtonTableHeader$HeaderListener.mouseRe
leased(ButtonTableHeader.java:101)
at
java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)
at java.awt.Component.processMouseEvent(Component.java:3715)
at java.awt.Component.processEvent(Component.java:3544)
at java.awt.Container.processEvent(Container.java:1164)
at java.awt.Component.dispatchEventImpl(Component.java:2593)
at java.awt.Container.dispatchEventImpl(Container.java:1213)
at java.awt.Component.dispatchEvent(Component.java:2497)
at
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:2451)
at
java.awt.LightweightDispatcher.processMouseEvent(Container.java:2216)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2125)
at java.awt.Container.dispatchEventImpl(Container.java:1200)
at java.awt.Window.dispatchEventImpl(Window.java:914)
at java.awt.Component.dispatchEvent(Component.java:2497)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:339)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.ja
va:131)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java
:98)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:85)
Other than that its looking really good.
Col
|