Changeset 8374 in josm for trunk/src/org/openstreetmap/josm/gui/util/GuiHelper.java
- Timestamp:
- 2015-05-17T02:56:15+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/util/GuiHelper.java
r8323 r8374 153 153 * @return true if the user wants to cancel, false if they want to continue 154 154 */ 155 public static finalboolean warnUser(String title, String content, ImageIcon baseActionIcon, String continueToolTip) {155 public static boolean warnUser(String title, String content, ImageIcon baseActionIcon, String continueToolTip) { 156 156 ExtendedDialog dlg = new ExtendedDialog(Main.parent, 157 157 title, new String[] {tr("Cancel"), tr("Continue")}); … … 177 177 * @since 7312 178 178 */ 179 public static finalvoid notifyUserHtmlError(Component parent, String title, String message, String html) {179 public static void notifyUserHtmlError(Component parent, String title, String message, String html) { 180 180 JPanel p = new JPanel(new GridBagLayout()); 181 181 p.add(new JLabel(message), GBC.eol()); … … 197 197 * @since 5484 198 198 */ 199 public static finalImage getDisabledImage(Image image) {199 public static Image getDisabledImage(Image image) { 200 200 return Toolkit.getDefaultToolkit().createImage( 201 201 new FilteredImageSource(image.getSource(), new GrayFilter(true, 20))); … … 208 208 * @since 5484 209 209 */ 210 public static finalImageIcon getDisabledIcon(ImageIcon icon) {210 public static ImageIcon getDisabledIcon(ImageIcon icon) { 211 211 return new ImageIcon(getDisabledImage(icon.getImage())); 212 212 } … … 221 221 * @since 5493 222 222 */ 223 public static finalComponent prepareResizeableOptionPane(final Component pane, final Dimension minDimension) {223 public static Component prepareResizeableOptionPane(final Component pane, final Dimension minDimension) { 224 224 if (pane != null) { 225 225 pane.addHierarchyListener(new HierarchyListener() { … … 250 250 * @since 5735 251 251 */ 252 public static finalTimer scheduleTimer(int initialDelay, ActionListener actionListener, boolean repeats) {252 public static Timer scheduleTimer(int initialDelay, ActionListener actionListener, boolean repeats) { 253 253 Timer timer = new Timer(initialDelay, actionListener); 254 254 timer.setRepeats(repeats);
Note:
See TracChangeset
for help on using the changeset viewer.