Revision: 6350
http://squirrel-sql.svn.sourceforge.net/squirrel-sql/?rev=6350&view=rev
Author: gerdwagner
Date: 2011-08-09 18:41:59 +0000 (Tue, 09 Aug 2011)
Log Message:
-----------
Query Builder: Fixed repaint problems when selecting the right mouse menu "Check all columns for SQL-SELECT clause"
Modified Paths:
--------------
trunk/sql12/plugins/graph/src/main/java/net/sourceforge/squirrel_sql/plugins/graph/QueryTextArea.java
Modified: trunk/sql12/plugins/graph/src/main/java/net/sourceforge/squirrel_sql/plugins/graph/QueryTextArea.java
===================================================================
--- trunk/sql12/plugins/graph/src/main/java/net/sourceforge/squirrel_sql/plugins/graph/QueryTextArea.java 2011-08-07 19:14:25 UTC (rev 6349)
+++ trunk/sql12/plugins/graph/src/main/java/net/sourceforge/squirrel_sql/plugins/graph/QueryTextArea.java 2011-08-09 18:41:59 UTC (rev 6350)
@@ -60,9 +60,16 @@
_lastColumnHeightBeforeSetColums = getColumnHeight();
}
+ ///////////////////////////////////////////////////////
+ // Nicely prevents repaint problems when selecting
+ // the right mouse menu "Check all columns for SQL-SELECT clause",
+ // see also setVisble(true) below
+ setVisible(false);
+ //
+ /////////////////////////////////////////////////////
+
removeAll();
-
GridBagConstraints gbc;
setBackground(GraphTextAreaFactory.TEXTAREA_BG);
@@ -71,18 +78,21 @@
{
ColumnInfo columnInfo = _columnInfoModel.getOrderedColAt(i);
- gbc = new GridBagConstraints(0, i, 1, 1, 0, 0, GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(0,0,0,0),0,0);
+ gbc = new GridBagConstraints(0, i, 1, 1, 0, 0, GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(0, 0, 0, 0), 0, 0);
add(new QueryColumnPanel(_plugin, _tableName, columnInfo, _dndCallback, _session), gbc);
}
- gbc = new GridBagConstraints(0, _columnInfoModel.getColCount(), 1, 1, 1, 1, GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(0,0,0,0),0,0);
+ gbc = new GridBagConstraints(0, _columnInfoModel.getColCount(), 1, 1, 1, 1, GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(0, 0, 0, 0), 0, 0);
JPanel dist = new JPanel();
dist.setBackground(GraphTextAreaFactory.TEXTAREA_BG);
add(dist, gbc);
+ setVisible(true);
+
addToAllKidComponents(_mouseListenerPx);
+
}
@Override
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|