1818import xdman .util .UpdateChecker ;
1919import xdman .util .XDMUtils ;
2020import static xdman .util .XDMUtils .getScaledInt ;
21+
2122public class UpdateNotifyPanel extends JPanel {
2223 /**
2324 *
@@ -28,7 +29,8 @@ public class UpdateNotifyPanel extends JPanel {
2829
2930 public UpdateNotifyPanel () {
3031 super (new BorderLayout ());
31- setBorder (new EmptyBorder (getScaledInt (10 ), getScaledInt (15 ), getScaledInt (10 ), getScaledInt (15 )));
32+ setBorder (new EmptyBorder (getScaledInt (10 ), getScaledInt (15 ),
33+ getScaledInt (10 ), getScaledInt (15 )));
3234 JPanel p2 = new JPanel (new BorderLayout ());
3335 p2 .setOpaque (false );
3436 lbl = new JLabel ();
@@ -47,7 +49,8 @@ public UpdateNotifyPanel() {
4749 @ Override
4850 public void actionPerformed (ActionEvent e ) {
4951 if (mode == UpdateChecker .APP_UPDATE_AVAILABLE ) {
50- XDMUtils .browseURL ("http://xdman.sourceforge.net/update/update.php?ver=" + XDMApp .APP_VERSION );
52+ XDMUtils .browseURL (
53+ XDMApp .APP_UPDATE_CHK_URL + XDMApp .APP_VERSION );
5154 } else {
5255 FFmpegDownloader fd = new FFmpegDownloader ();
5356 fd .start ();
@@ -60,7 +63,7 @@ public void actionPerformed(ActionEvent e) {
6063
6164 public void setDetails (int mode ) {
6265 if (mode == UpdateChecker .COMP_NOT_INSTALLED ) {
63- setBackground (new Color (216 ,1 , 0 ));
66+ setBackground (new Color (216 , 1 , 0 ));
6467 } else {
6568 setBackground (ColorResource .getDarkestBgColor ());
6669 }
0 commit comments