diff --git a/com/gallery/GalleryRemote/AboutBox.java b/com/gallery/GalleryRemote/AboutBox.java index afe6087..6c48d88 100644 --- a/com/gallery/GalleryRemote/AboutBox.java +++ b/com/gallery/GalleryRemote/AboutBox.java @@ -35,8 +35,8 @@ */ public class AboutBox extends JDialog { public static final String MODULE = "About"; - public static int TOP = 60; - public static int BOTTOM = 30; + public static int TOP = 5; + public static int BOTTOM = 105; /** * Constructor for the AboutBox object @@ -62,7 +62,7 @@ private void init() { setModal( true ); getContentPane().add( new AboutPanel(), BorderLayout.CENTER ); setTitle( "About Gallery Remote" ); - + pack(); Dimension s = Toolkit.getDefaultToolkit().getScreenSize(); @@ -112,13 +112,13 @@ public AboutPanel() { setFont( UIManager.getFont( "Label.font" ) ); fm = getFontMetrics( getFont() ); - URL imu = getClass().getResource( "/remoteAbout.gif" ); + URL imu = getClass().getResource( "/rar_about_gr1.png" ); Log.log(Log.TRACE, MODULE, "Looking for splash screen in " + imu.toString()); image = new ImageIcon( imu ); setBorder( new MatteBorder( 1, 1, 1, 1, Color.gray ) ); - text = new Vector( 50 ); + text = new Vector( ); StringTokenizer st = new StringTokenizer( GalleryRemote.getInstance().properties.getProperty( "aboutText" ), "\n" ); while ( st.hasMoreTokens() ) { @@ -127,7 +127,7 @@ public AboutPanel() { maxWidth = Math.max( maxWidth, fm.stringWidth( line ) + 10 ); } - initialPosition = getHeight() - BOTTOM - BOTTOM - TOP - TOP; + initialPosition = getHeight() - BOTTOM /*- BOTTOM*/ - TOP - TOP; scrollPosition = initialPosition; thread = new AnimationThread(); diff --git a/com/gallery/GalleryRemote/GalleryRemote.java b/com/gallery/GalleryRemote/GalleryRemote.java index 7d0de7b..b8d5999 100644 --- a/com/gallery/GalleryRemote/GalleryRemote.java +++ b/com/gallery/GalleryRemote/GalleryRemote.java @@ -19,6 +19,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ package com.gallery.GalleryRemote; +import java.awt.Image; import java.io.*; import java.util.*; import javax.swing.*; @@ -36,6 +37,8 @@ public class GalleryRemote { public PropertiesFile properties = null; public PropertiesFile defaults = null; + public static Image iconImage = new ImageIcon(GalleryRemote.class.getResource( "/rar_icon_16.gif" )).getImage(); + private GalleryRemote() { defaults = new PropertiesFile("defaults"); diff --git a/com/gallery/GalleryRemote/MainFrame.java b/com/gallery/GalleryRemote/MainFrame.java index 392fa26..954265a 100644 --- a/com/gallery/GalleryRemote/MainFrame.java +++ b/com/gallery/GalleryRemote/MainFrame.java @@ -132,6 +132,8 @@ public MainFrame() { if ( galleries.getSize() == 0 ) { galleries.addElement( new Gallery() ); } + + setIconImage(GalleryRemote.iconImage); } diff --git a/com/gallery/GalleryRemote/PreviewFrame.java b/com/gallery/GalleryRemote/PreviewFrame.java index 186e00c..b6f827f 100755 --- a/com/gallery/GalleryRemote/PreviewFrame.java +++ b/com/gallery/GalleryRemote/PreviewFrame.java @@ -42,6 +42,8 @@ public void initComponents() { setTitle("Preview"); + setIconImage(GalleryRemote.iconImage); + setBounds(GalleryRemote.getInstance().properties.getPreviewBounds()); addComponentListener(new ComponentAdapter() diff --git a/com/gallery/GalleryRemote/Update.java b/com/gallery/GalleryRemote/Update.java index dcaafd7..039d4b3 100644 --- a/com/gallery/GalleryRemote/Update.java +++ b/com/gallery/GalleryRemote/Update.java @@ -101,7 +101,9 @@ public void showNotice() { Dimension s = Toolkit.getDefaultToolkit().getScreenSize(); setLocation( (int) ( s.getWidth() - getWidth() ) / 2, (int) ( s.getHeight() - getHeight() ) / 2 ); - + + setIconImage(GalleryRemote.iconImage); + setVisible( true ); } catch ( Exception e ) { Log.logException( Log.CRITICAL, MODULE, e );