public ImagePanel(ImageData aThumbnail) { itsThumbnail = aThumbnail; setLayout(new BorderLayout()); add(new JLabel(aThumbnail != null ? aThumbnail.getName() : ""), BorderLayout.NORTH); add(new ThumbnailPanel(itsThumbnail), BorderLayout.CENTER); }
public void updateImage(ImageData imageData) throws Exception { fUpdateTopicContent.setString(1, imageData.getUrl()); fUpdateTopicContent.setString(2, imageData.getFilename()); fUpdateTopicContent.setString(3, imageData.getName()); fUpdateTopicContent.execute(); }
public void insertImage(ImageData imageData) throws Exception { fInsertImage.setString(1, imageData.getName()); fInsertImage.setString(2, imageData.getUrl()); fInsertImage.setString(3, imageData.getFilename()); fInsertImage.execute(); }