Ticket #2726: PluginSelection.java.patch
| File PluginSelection.java.patch, 1.7 KB (added by , 17 years ago) |
|---|
-
src/org/openstreetmap/josm/plugins/PluginSelection.java
37 37 import javax.swing.event.HyperlinkEvent; 38 38 import javax.swing.event.HyperlinkListener; 39 39 import javax.swing.event.HyperlinkEvent.EventType; 40 import javax.swing.text.html.HTMLDocument; 41 import javax.swing.text.html.HTMLEditorKit; 42 import javax.swing.text.html.StyleSheet; 40 43 41 44 import org.openstreetmap.josm.Main; 42 45 import org.openstreetmap.josm.gui.ExtendedDialog; … … 204 207 JEditorPane description = new JEditorPane(); 205 208 description.setContentType("text/html"); 206 209 description.setEditable(false); 207 description.setText("<html>< i>"+plugin.getLinkDescription()+"</i></html>");208 description.setBorder(BorderFactory.createEmptyBorder( 0,20,0,0));210 description.setText("<html><body bgcolor=\"#" + Integer.toHexString( UIManager.getColor("Panel.background").getRGB() & 0x00ffffff ) +"\"><i>"+plugin.getLinkDescription()+"</i></body></html>"); 211 description.setBorder(BorderFactory.createEmptyBorder()); 209 212 description.setBackground(UIManager.getColor("Panel.background")); 210 213 description.addHyperlinkListener(new HyperlinkListener() { 211 214 public void hyperlinkUpdate(HyperlinkEvent e) { … … 216 219 }); 217 220 218 221 gbc.gridy = row++; 219 gbc.insets = new Insets(3, 5,5,5);222 gbc.insets = new Insets(3,25,5,5); 220 223 gbc.weighty = 0.9; 221 224 gbc.weightx = 1.0; 222 225 gbc.anchor = GridBagConstraints.WEST;
