Changeset 7768 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2014-12-08T00:48:42+01:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/SplashScreen.java
r7321 r7768 8 8 import java.awt.GridBagConstraints; 9 9 import java.awt.GridBagLayout; 10 import java.awt.Image; 10 11 import java.awt.Insets; 11 12 import java.awt.event.MouseAdapter; … … 14 15 import java.util.LinkedList; 15 16 17 import javax.swing.ImageIcon; 16 18 import javax.swing.JFrame; 17 19 import javax.swing.JLabel; … … 34 36 /** 35 37 * Show a splash screen so the user knows what is happening during startup. 36 * 38 * @since 976 37 39 */ 38 40 public class SplashScreen extends JFrame { … … 44 46 */ 45 47 public SplashScreen() { 46 super();47 48 setUndecorated(true); 48 49 … … 59 60 60 61 // Add the logo 61 JLabel logo = new JLabel( ImageProvider.get("logo.png"));62 JLabel logo = new JLabel(new ImageIcon(ImageProvider.get("logo.png").getImage().getScaledInstance(128, 129, Image.SCALE_SMOOTH))); 62 63 GridBagConstraints gbc = new GridBagConstraints(); 63 64 gbc.gridheight = 2;
Note:
See TracChangeset
for help on using the changeset viewer.