Match #1: /ganttproject-code-0/org.jdesktop/src/java/org/jdesktop/swingx/color/ColorUtil.java: line 107-114 /java/6734171-6734194-1: line 3-7 //Set RGB and Alpha component value of a color. < BufferedImage img = new BufferedImage(size,size,BufferedImage.TYPE_INT_ARGB); < Graphics g = img.getGraphics(); < g.setColor(c1); < g.fillRect(0,0,size,size); < g.setColor(c2); < g.fillRect(0,0,size/2,size/2); < g.fillRect(size/2,size/2,size/2,size/2); < g.dispose(); --- >BufferedImage image = new BufferedImage(300, 200, BufferedImage.TYPE_INT_ARGB); >Graphics graphics = image.getGraphics(); >graphics.setColor(c); >graphics.fillRect(50, 50, 100, 100); >graphics.dispose(); Match #2: /ganttproject-code-0/org.jdesktop/src/java/org/jdesktop/swingx/border/DropShadowBorder.java: line 323-328 /java/11367324-11367413-1: line 4-6 //Create a new BufferedImage of the size you want and then perform a scaled paint of the original image into the new . < Graphics2D g2 = ret.createGraphics(); < g2.drawImage(img, < 0, 0, w, h, < x, y, x+w, y+h, < null); < g2.dispose(); --- >Graphics2D g = resizedImage.createGraphics(); >g.drawImage(image, 0, 0, new_width, new_height, null); >g.dispose(); Match #3: /ganttproject-code-0/org.jdesktop/src/java/org/jdesktop/swingx/util/PaintUtils.java: line 229-233 /java/658059-659533-1: line 3-5 //If you have any control over how the image is stored, you should store it in a format that the screen is looking for. < GraphicsEnvironment environment = < GraphicsEnvironment.getLocalGraphicsEnvironment(); < GraphicsDevice screenDevice = environment.getDefaultScreenDevice(); < GraphicsConfiguration configuration = < screenDevice.getDefaultConfiguration(); --- >GraphicsEnvironment env = GraphicsEnvironment.getLocalGraphicsEnvironment(); > GraphicsDevice device = env.getDefaultScreenDevice(); > GraphicsConfiguration config = device.getDefaultConfiguration(); Match #4: /ganttproject-code-0/org.jdesktop/src/java/org/jdesktop/swingx/util/PaintUtils.java: line 247-251 /java/658059-659533-1: line 3-5 //If you have any control over how the image is stored, you should store it in a format that the screen is looking for. < GraphicsEnvironment environment = < GraphicsEnvironment.getLocalGraphicsEnvironment(); < GraphicsDevice screenDevice = environment.getDefaultScreenDevice(); < GraphicsConfiguration configuration = < screenDevice.getDefaultConfiguration(); --- >GraphicsEnvironment env = GraphicsEnvironment.getLocalGraphicsEnvironment(); > GraphicsDevice device = env.getDefaultScreenDevice(); > GraphicsConfiguration config = device.getDefaultConfiguration(); Match #5: /ganttproject-code-0/org.jdesktop/src/java/org/jdesktop/swingx/action/ActionContainerFactory.java: line 245-252 /java/7445910-7445937-1: line 3-6 //The best way to iterate over a non-generic List. < Iterator iter = list.iterator(); < while(iter.hasNext()) { < Object element = iter.next(); < < if (element == null) { < if (menu != null) { < menu.addSeparator(); < } --- >Iterator iter = objects.iterator(); >while (iter.hasNext()) { > Object element = iter.next(); >} Match #6: /ganttproject-code-0/org.jdesktop/src/java/org/jdesktop/swingx/action/ActionContainerFactory.java: line 142-144 /java/7445910-7445937-1: line 3-5 //The best way to iterate over a non-generic List. < Iterator iter = list.iterator(); < while(iter.hasNext()) { < Object element = iter.next(); --- >Iterator iter = objects.iterator(); >while (iter.hasNext()) { > Object element = iter.next(); Match #7: /ganttproject-code-0/org.jdesktop/src/java/org/jdesktop/swingx/action/ActionContainerFactory.java: line 186-188 /java/7445910-7445937-1: line 3-5 //The best way to iterate over a non-generic List. < Iterator iter = list.iterator(); < while(iter.hasNext()) { < Object element = iter.next(); --- >Iterator iter = objects.iterator(); >while (iter.hasNext()) { > Object element = iter.next();