1
0
mirror of https://github.com/moparisthebest/davmail synced 2024-12-13 03:02:22 -05:00

Fixes from audit

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1717 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2011-06-23 22:05:27 +00:00
parent 5fda6a7821
commit 404923bb66
3 changed files with 15 additions and 3 deletions

View File

@ -48,7 +48,11 @@ public class AboutFrame extends JFrame {
public AboutFrame() {
setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);
setTitle(BundleMessage.format("UI_ABOUT_DAVMAIL"));
try {
setIconImage(DavGatewayTray.getFrameIcon());
} catch (NoSuchMethodError error) {
DavGatewayTray.debug(new BundleMessage("LOG_UNABLE_TO_SET_ICON_IMAGE"));
}
try {
JLabel imageLabel = new JLabel();
ClassLoader classloader = this.getClass().getClassLoader();

View File

@ -67,7 +67,11 @@ public class NotificationDialog extends JDialog {
setModal(true);
setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);
setTitle(BundleMessage.format("UI_CALDAV_NOTIFICATION"));
try {
setIconImage(DavGatewayTray.getFrameIcon());
} catch (NoSuchMethodError error) {
DavGatewayTray.debug(new BundleMessage("LOG_UNABLE_TO_SET_ICON_IMAGE"));
}
JPanel mainPanel = new JPanel();
// add help (F1 handler)

View File

@ -566,7 +566,11 @@ public class SettingsFrame extends JFrame {
public SettingsFrame() {
setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);
setTitle(BundleMessage.format("UI_DAVMAIL_SETTINGS"));
try {
setIconImage(DavGatewayTray.getFrameIcon());
} catch (NoSuchMethodError error) {
DavGatewayTray.debug(new BundleMessage("LOG_UNABLE_TO_SET_ICON_IMAGE"));
}
JTabbedPane tabbedPane = new JTabbedPane();
// add help (F1 handler)