Author: jflesch
Date: 2007-08-03 17:56:44 +0000 (Fri, 03 Aug 2007)
New Revision: 14476
Modified:
trunk/apps/Thaw/src/thaw/plugins/index/IndexManagementHelper.java
trunk/apps/Thaw/src/thaw/plugins/miniFrost/MessageTreeTable.java
Log:
Fix the background of the selected row in the message tree
Modified: trunk/apps/Thaw/src/thaw/plugins/index/IndexManagementHelper.java
===================================================================
--- trunk/apps/Thaw/src/thaw/plugins/index/IndexManagementHelper.java
2007-08-03 17:40:46 UTC (rev 14475)
+++ trunk/apps/Thaw/src/thaw/plugins/index/IndexManagementHelper.java
2007-08-03 17:56:44 UTC (rev 14476)
@@ -1607,20 +1607,24 @@
dialog = new
JDialog(getIndexBrowserPanel().getMainWindow().getMainFrame(),
I18n.getMessage("thaw.plugin.index.comment.add"));
+ /*
JLabel headerLabel = new
JLabel(I18n.getMessage("thaw.plugin.index.comment.comment"),
IconBox.addComment,
JLabel.CENTER);
+ */
JPanel authorPanel = new JPanel(new BorderLayout(5, 5));
- authorPanel.add(new
JLabel(I18n.getMessage("thaw.plugin.index.comment.author")),
+ authorPanel.add(new
JLabel(I18n.getMessage("thaw.plugin.index.comment.author"),
+ IconBox.addComment,
+ JLabel.LEFT),
BorderLayout.WEST);
author = new
JComboBox(Identity.getYourIdentities(getIndexBrowserPanel().getDb()));
authorPanel.add(author, BorderLayout.CENTER);
- JPanel header = new JPanel(new GridLayout(2, 1));
+ JPanel header = new JPanel(new GridLayout(1, 1));
- header.add(headerLabel);
+ //header.add(headerLabel);
header.add(authorPanel);
Modified: trunk/apps/Thaw/src/thaw/plugins/miniFrost/MessageTreeTable.java
===================================================================
--- trunk/apps/Thaw/src/thaw/plugins/miniFrost/MessageTreeTable.java
2007-08-03 17:40:46 UTC (rev 14475)
+++ trunk/apps/Thaw/src/thaw/plugins/miniFrost/MessageTreeTable.java
2007-08-03 17:56:44 UTC (rev 14476)
@@ -296,7 +296,7 @@
protected class MessageNodeTree extends JTree {
- DefaultTreeCellRenderer cellRenderer;
+ private DefaultTreeCellRenderer cellRenderer;
public MessageNodeTree(TreeNode root) {
super(root);
@@ -328,6 +328,7 @@
Color background =
thaw.gui.Table.DefaultRenderer.setBackground(this, row, isSelected);
+
setRowHeight(table.getRowHeight());
rowHeight = table.getRowHeight();
@@ -367,6 +368,11 @@
cellRenderer.setBackgroundNonSelectionColor(background);
}
+ if (isSelected)
+
this.setBackground(cellRenderer.getBackgroundSelectionColor());
+ else
+
this.setBackground(cellRenderer.getBackgroundNonSelectionColor());
+
visibleRow = row;
return this;
}