Revision: 15287
http://gate.svn.sourceforge.net/gate/?rev=15287&view=rev
Author: markagreenwood
Date: 2012-02-01 08:06:47 +0000 (Wed, 01 Feb 2012)
Log Message:
-----------
make the editor look more like a normal table cell
Modified Paths:
--------------
gate/trunk/src/gate/gui/creole/manager/JTextPaneTableCellRenderer.java
Modified: gate/trunk/src/gate/gui/creole/manager/JTextPaneTableCellRenderer.java
===================================================================
--- gate/trunk/src/gate/gui/creole/manager/JTextPaneTableCellRenderer.java
2012-02-01 02:27:04 UTC (rev 15286)
+++ gate/trunk/src/gate/gui/creole/manager/JTextPaneTableCellRenderer.java
2012-02-01 08:06:47 UTC (rev 15287)
@@ -16,7 +16,7 @@
public class JTextPaneTableCellRenderer extends AbstractCellEditor implements
TableCellEditor {
-
+
private static final long serialVersionUID = 3745411623553392990L;
private JTextPane textPane = new JTextPane();
@@ -26,8 +26,12 @@
public JTextPaneTableCellRenderer() {
textPane.setContentType("text/html");
textPane.setEditable(false);
- textPane.setOpaque(false);
+ textPane.setOpaque(true);
textPane.setBorder(null);
+
+ textPane.setForeground(UIManager.getColor("Table.selectionForeground"));
+ textPane.setBackground(UIManager.getColor("Table.selectionBackground"));
+
Font font = UIManager.getFont("Label.font");
String bodyRule =
"body { font-family: " + font.getFamily() + "; " + "font-size: "
@@ -36,15 +40,15 @@
((HTMLDocument)textPane.getDocument()).getStyleSheet().addRule(bodyRule);
textPane.addHyperlinkListener(new HyperlinkListener() {
-
+
@Override
public void hyperlinkUpdate(HyperlinkEvent e) {
if (e.getEventType().equals(HyperlinkEvent.EventType.ACTIVATED))
- MainFrame.getInstance().showHelpFrame(e.getURL().toString(),
"CREOLE Plugin Manager");
+ MainFrame.getInstance().showHelpFrame(e.getURL().toString(),
"CREOLE Plugin Manager");
}
});
}
-
+
@Override
public Object getCellEditorValue() {
return value;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs