TreeIter row = ls.appendRow(); if (!(gui.getIcon() == null)) { PixbufLoader test = new PixbufLoader(); test.write(gui.getIcon()); ls.setValue(row, ColThumbImage, test.getPixbuf()); test.close(); } else { try { Pixbuf missing = new Pixbuf("images/icon_missing.png"); ls.setValue(row, ColThumbImage, missing); } catch (FileNotFoundException e) { e.printStackTrace(); } catch (JGException e) { e.printStackTrace(); } } ls.setValue(row, ColData, gui.getTextContent()); ls.setValue(row, ColObj, gui); table.showAll(); }
TreeIter row = ls.appendRow(); if (!(gui.getIcon() == null)) { PixbufLoader test = new PixbufLoader(); test.write(gui.getIcon()); ls.setValue(row, ColThumbImage, test.getPixbuf()); test.close(); } else { PixbufLoader test = new PixbufLoader(); test.write(FileUtility.getIcon("/images/icon_missing.png"));  ls.setValue(row, ColThumbImage, test.getPixbuf());  } ls.setValue(row, ColData, gui.getTextContent()); ls.setValue(row, ColObj, gui); table.showAll(); }
	public void addToTable(MainContentsGUI gui) {		TreeIter row = ls.appendRow();		if (!(gui.getIcon() == null)) {			PixbufLoader test = new PixbufLoader();			test.write(gui.getIcon());			ls.setValue(row, ColThumbImage, test.getPixbuf());			test.close();		} else {			try {				Pixbuf missing = new Pixbuf("images/icon_missing.png");				ls.setValue(row, ColThumbImage, missing);			} catch (FileNotFoundException e) {				e.printStackTrace();			} catch (JGException e) {				e.printStackTrace();			}		}		ls.setValue(row, ColData, gui.getTextContent());		ls.setValue(row, ColObj, gui);		table.showAll();	}