Lines Matching refs:icon
316 Icon icon = frame.getFrameIcon();
317 if (icon == null) {
318 icon = UIManager.getIcon("InternalFrame.icon");
321 if (icon == null) {
325 if (icon.getIconWidth() > sMaxIconWidth
326 || icon.getIconHeight() > sMaxIconHeight) {
329 double xScaleFactor = (double) sMaxIconWidth / icon.getIconWidth();
330 double yScaleFactor = (double) sMaxIconHeight / icon.getIconHeight();
341 icon.paintIcon(frame, g2, 0, 0);
345 icon.paintIcon(frame, g, x, y);
352 Icon icon = frame.getFrameIcon();
353 if (icon == null) {
354 icon = UIManager.getIcon("InternalFrame.icon");
356 if (icon != null) {
357 width = Math.min(icon.getIconWidth(), sMaxIconWidth);
366 Icon icon = frame.getFrameIcon();
367 if (icon == null) {
368 icon = UIManager.getIcon("InternalFrame.icon");
370 if (icon != null) {
371 height = Math.min(icon.getIconHeight(), sMaxIconHeight);
389 // now the title and the icon
507 final Icon icon = frame.getFrameIcon();
508 if (icon != null) {
509 titleWidth += icon.getIconWidth();
510 titleHeight = Math.max(titleHeight, icon.getIconHeight());