- Timestamp:
- 2011-04-15T22:49:59+02:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/SplashScreen.java
r3479 r4029 5 5 6 6 import java.awt.Color; 7 import java.awt.Dimension; 7 8 import java.awt.Font; 8 9 import java.awt.GridBagConstraints; … … 119 120 gc.weighty = 0.0; 120 121 gc.insets = new Insets(5,0,0,5); 121 add(lblTaskTitle = new JLabel(" "), gc);122 add(lblTaskTitle = new JLabel(" "), gc); 122 123 123 124 gc.gridx = 0; … … 127 128 gc.weighty = 0.0; 128 129 gc.insets = new Insets(5,0,0,5); 129 add(lblCustomText = new JLabel(""), gc); 130 add(lblCustomText = new JLabel(" ") { 131 @Override 132 public Dimension getPreferredSize() { 133 Dimension d = super.getPreferredSize(); 134 if(d.width < 600) d.width = 600; 135 return d; 136 } 137 }, gc); 130 138 131 139 gc.gridx = 0; … … 143 151 144 152 public void setCustomText(String message) { 153 if(message.isEmpty()) 154 message = " "; /* prevent killing of additional line */ 145 155 lblCustomText.setText(message); 146 156 repaint();
Note:
See TracChangeset
for help on using the changeset viewer.