comparison agent/src/share/classes/com/sun/java/swing/ui/CommonUI.java @ 22931:f996dba3f54e

8067991: [Findbugs] SA com.sun.java.swing.ui.CommonUI some methods need final protect Summary: Fixed java programmint style nit Reviewed-by: jbachorik, sspitsyn
author dsamersoff
date Tue, 07 Apr 2015 02:56:25 -0700
parents c18cbe5936b8
children
comparison
equal deleted inserted replaced
22930:10d10330688b 22931:f996dba3f54e
371 public static void setDefaultCursor(Component comp) 371 public static void setDefaultCursor(Component comp)
372 { 372 {
373 comp.setCursor(Cursor.getPredefinedCursor(0)); 373 comp.setCursor(Cursor.getPredefinedCursor(0));
374 } 374 }
375 375
376 public static final int BUTTON_WIDTH = 100; 376 public static Dimension getButtconPrefSize()
377 public static final int BUTTON_HEIGHT = 26; 377 {
378 public static final int BUTTCON_WIDTH = 28; 378 return buttconPrefSize;
379 public static final int BUTTCON_HEIGHT = 28; 379 }
380 public static final int SM_BUTTON_WIDTH = 72; 380
381 public static final int SM_BUTTON_HEIGHT = 26; 381 private static final int BUTTON_WIDTH = 100;
382 public static final int LABEL_WIDTH = 100; 382 private static final int BUTTON_HEIGHT = 26;
383 public static final int LABEL_HEIGHT = 20; 383 private static final int BUTTCON_WIDTH = 28;
384 public static final int TEXT_WIDTH = 150; 384 private static final int BUTTCON_HEIGHT = 28;
385 public static final int TEXT_HEIGHT = 20; 385 private static final int SM_BUTTON_WIDTH = 72;
386 public static Dimension buttonPrefSize = new Dimension(100, 26); 386 private static final int SM_BUTTON_HEIGHT = 26;
387 public static Dimension buttconPrefSize = new Dimension(28, 28); 387 private static final int LABEL_WIDTH = 100;
388 public static Dimension smbuttonPrefSize = new Dimension(72, 26); 388 private static final int LABEL_HEIGHT = 20;
389 public static Dimension labelPrefSize = new Dimension(100, 20); 389 private static final int TEXT_WIDTH = 150;
390 public static Dimension textPrefSize = new Dimension(150, 20); 390 private static final int TEXT_HEIGHT = 20;
391 private static final Dimension buttonPrefSize = new Dimension(100, 26);
392 private static final Dimension buttconPrefSize = new Dimension(28, 28);
393 private static final Dimension smbuttonPrefSize = new Dimension(72, 26);
394 private static final Dimension labelPrefSize = new Dimension(100, 20);
395 private static final Dimension textPrefSize = new Dimension(150, 20);
391 396
392 } 397 }