Пример #1
0
  public ImagePanel(ImageData aThumbnail) {
    itsThumbnail = aThumbnail;

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