< prev index next >

src/demo/share/jfc/SwingSet2/ListDemo.java

Print this page

        

*** 1,8 **** /* * ! * Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * --- 1,8 ---- /* * ! * Copyright (c) 2007, 2018, Oracle and/or its affiliates. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: *
*** 348,358 **** int ss = suffix.size(); return (String) prefix.elementAt(j%ps) + (String) suffix.elementAt((j/ps)%ss); } } ! ImageIcon images[] = new ImageIcon[7]; void loadImages() { images[0] = createImageIcon("list/red.gif", getString("ListDemo.red")); images[1] = createImageIcon("list/blue.gif", getString("ListDemo.blue")); images[2] = createImageIcon("list/yellow.gif", getString("ListDemo.yellow")); images[3] = createImageIcon("list/green.gif", getString("ListDemo.green")); --- 348,358 ---- int ss = suffix.size(); return (String) prefix.elementAt(j%ps) + (String) suffix.elementAt((j/ps)%ss); } } ! ImageIcon[] images = new ImageIcon[7]; void loadImages() { images[0] = createImageIcon("list/red.gif", getString("ListDemo.red")); images[1] = createImageIcon("list/blue.gif", getString("ListDemo.blue")); images[2] = createImageIcon("list/yellow.gif", getString("ListDemo.yellow")); images[3] = createImageIcon("list/green.gif", getString("ListDemo.green"));
< prev index next >