1 32 33 package it.businesslogic.ireport.gui; 34 35 39 public class IconedString { 40 41 private String str =""; 42 private javax.swing.ImageIcon icon = null; 43 44 45 public IconedString(String str, String icon) { 46 this.setStr(str); 47 this.setIcon( new javax.swing.ImageIcon ( this.getClass().getResource(icon) )); 48 49 } 50 51 public String getStr() { 52 return str; 53 } 54 55 public void setStr(String str) { 56 this.str = str; 57 } 58 59 public javax.swing.ImageIcon getIcon() { 60 return icon; 61 } 62 63 public void setIcon(javax.swing.ImageIcon icon) { 64 this.icon = icon; 65 } 66 67 public String toString() 68 { 69 return getStr(); 70 } 71 } 72 | Popular Tags |