From: Darío T. <dar...@gm...> - 2014-07-29 09:21:59
|
Hello New bug and description DefaultEdgeLabelRenderer ignores Foreground and Background. To make it aware of it, is enough with public <E> Component getEdgeLabelRendererComponent(JComponent vv, Object value, Font font, boolean isSelected, E edge) { *// delete this line super.setForeground(vv.getForeground());* if(isSelected) setForeground(pickedEdgeLabelColor); *// **delete this line** super.setBackground(vv.getBackground());* if(font != null) { setFont(font); } else { setFont(vv.getFont()); } setIcon(null); setBorder(noFocusBorder); setValue(value); return this; } |