Issue number:

Obtained from:
Submitted by:  Yana Stamcheva
Reviewed by:
CVS: ----------------------------------------------------------------------
CVS: Issue number:
CVS:   If this change addresses one or more issues,
CVS:   then enter the issue number(s) here.
CVS: Obtained from:
CVS:   If this change has been taken from another system,
CVS:   then name the system in this line, otherwise delete it.
CVS: Submitted by:
CVS:   If this code has been contributed to the project by someone else; i.e.,
CVS:   they sent us a patch or a set of diffs, then include their name/email
CVS:   address here. If this is your work then delete this line.
CVS: Reviewed by:
CVS:   If we are doing pre-commit code reviews and someone else has
CVS:   reviewed your changes, include their name(s) here.
CVS:   If you have not had it reviewed then delete this line.
cusax-fix
Yana Stamcheva 20 years ago
parent 8c59770f44
commit 634553819d

@ -1,13 +1,20 @@
package net.java.sip.communicator.impl.gui.main;
import java.awt.Frame;
import java.awt.Image;
import java.awt.Toolkit;
import java.awt.image.BufferedImage;
import java.io.File;
import javax.swing.JDialog;
import javax.swing.JFrame;
import javax.swing.JRootPane;
import javax.swing.UIManager;
import javax.swing.plaf.metal.MetalLookAndFeel;
import javax.swing.plaf.metal.MetalTheme;
import net.java.sip.communicator.impl.gui.main.customcontrols.StatusIcon;
import com.l2fprod.gui.plaf.skin.Skin;
import com.l2fprod.gui.plaf.skin.SkinLookAndFeel;
import com.l2fprod.util.OS;
@ -20,7 +27,7 @@
* Starts the GUI application using the SkinLookAndFeel of l2fprod.
*/
public class CommunicatorMain {
public static void main(String[] args){
try {
@ -45,7 +52,7 @@ public static void main(String[] args){
SkinLookAndFeel.setSkin(SkinLookAndFeel.loadThemePack(args[0]));
UIManager.setLookAndFeel("com.l2fprod.gui.plaf.skin.SkinLookAndFeel");
}
}
}
//the default theme is set if no theme is specified
else{
SkinLookAndFeel.setSkin(
@ -66,10 +73,11 @@ public static void main(String[] args){
new Class[] { boolean.class });
method.invoke(null, new Object[] { Boolean.TRUE });
}*/
} catch (Exception e) { }
//Image frameIcon =
//Image frameIcon =
//new ImageIcon(demo.class.getResource("windowicon.gif")).getImage();
// so option pane as same icon as us
//JOptionPane.getRootFrame().setIconImage(frameIcon);
@ -83,12 +91,22 @@ public static void main(String[] args){
User user = new User();
user.setProtocols(new String[]{"ICQ", "MSN"});
user.setProtocols(new String[]{"SIP", "ICQ", "MSN"});
MainFrame mainFrame = new MainFrame(clist, user);
//mainFrame.setIconImage(frameIcon);
mainFrame.setTitle("SIP Communicator");
// There is a problem with the quality of the title bar icon. It's not solved.
BufferedImage iconImage = new BufferedImage(LookAndFeelConstants.SIP_LOGO.getWidth(null),
LookAndFeelConstants.ICQ_LOGO.getHeight(null),
BufferedImage.TYPE_3BYTE_BGR);
iconImage.getGraphics().drawImage(LookAndFeelConstants.SIP_LOGO, 0, 0, mainFrame);
mainFrame.setIconImage(iconImage);
mainFrame.pack();
mainFrame.setVisible(true);

Loading…
Cancel
Save