Skip to content

Commit

Permalink
Now using new icons.
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-Luc Paour committed Nov 11, 2002
1 parent b826bdc commit 9b5ec45
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 7 deletions.
12 changes: 6 additions & 6 deletions com/gallery/GalleryRemote/AboutBox.java
Expand Up @@ -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
Expand All @@ -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();
Expand Down Expand Up @@ -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() ) {
Expand All @@ -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();
Expand Down
3 changes: 3 additions & 0 deletions com/gallery/GalleryRemote/GalleryRemote.java
Expand Up @@ -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.*;
Expand All @@ -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");

Expand Down
2 changes: 2 additions & 0 deletions com/gallery/GalleryRemote/MainFrame.java
Expand Up @@ -132,6 +132,8 @@ public MainFrame() {
if ( galleries.getSize() == 0 ) {
galleries.addElement( new Gallery() );
}

setIconImage(GalleryRemote.iconImage);
}


Expand Down
2 changes: 2 additions & 0 deletions com/gallery/GalleryRemote/PreviewFrame.java
Expand Up @@ -42,6 +42,8 @@ public void initComponents()
{
setTitle("Preview");

setIconImage(GalleryRemote.iconImage);

setBounds(GalleryRemote.getInstance().properties.getPreviewBounds());

addComponentListener(new ComponentAdapter()
Expand Down
4 changes: 3 additions & 1 deletion com/gallery/GalleryRemote/Update.java
Expand Up @@ -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 );
Expand Down

0 comments on commit 9b5ec45

Please sign in to comment.