mirror of
https://github.com/moparisthebest/davmail
synced 2024-12-13 11:12:22 -05:00
Workaround for bug in MacOSX java in AboutFrame
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@344 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
af5ac5448a
commit
667e0aa13c
@ -1,7 +1,7 @@
|
|||||||
package davmail.ui;
|
package davmail.ui;
|
||||||
|
|
||||||
import davmail.tray.DavGatewayTray;
|
|
||||||
import davmail.DavGateway;
|
import davmail.DavGateway;
|
||||||
|
import davmail.tray.DavGatewayTray;
|
||||||
|
|
||||||
import javax.imageio.ImageIO;
|
import javax.imageio.ImageIO;
|
||||||
import javax.swing.*;
|
import javax.swing.*;
|
||||||
@ -13,8 +13,8 @@ import java.awt.*;
|
|||||||
import java.awt.event.ActionEvent;
|
import java.awt.event.ActionEvent;
|
||||||
import java.awt.event.ActionListener;
|
import java.awt.event.ActionListener;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.net.URL;
|
|
||||||
import java.net.URISyntaxException;
|
import java.net.URISyntaxException;
|
||||||
|
import java.net.URL;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* About frame
|
* About frame
|
||||||
@ -40,9 +40,13 @@ public class AboutFrame extends JFrame {
|
|||||||
DavGatewayTray.error("Unable to create icon", e);
|
DavGatewayTray.error("Unable to create icon", e);
|
||||||
}
|
}
|
||||||
|
|
||||||
jEditorPane = new JEditorPane("text/html", getContent());
|
jEditorPane = new JEditorPane();
|
||||||
StyleSheet stylesheet = ((HTMLEditorKit) jEditorPane.getEditorKit()).getStyleSheet();
|
HTMLEditorKit htmlEditorKit = new HTMLEditorKit();
|
||||||
|
StyleSheet stylesheet = htmlEditorKit.getStyleSheet();
|
||||||
stylesheet.addRule("body { font-size:small;font-family: " + jEditorPane.getFont().getFamily() + "}");
|
stylesheet.addRule("body { font-size:small;font-family: " + jEditorPane.getFont().getFamily() + "}");
|
||||||
|
jEditorPane.setEditorKit(htmlEditorKit);
|
||||||
|
jEditorPane.setContentType("text/html");
|
||||||
|
jEditorPane.setText(getContent());
|
||||||
|
|
||||||
jEditorPane.setEditable(false);
|
jEditorPane.setEditable(false);
|
||||||
jEditorPane.setOpaque(false);
|
jEditorPane.setOpaque(false);
|
||||||
|
Loading…
Reference in New Issue
Block a user