66import java .sql .*;
77import org .postgresql .largeobject .*;
88
9- /**
9+ /*
1010 * This example is a small application that stores and displays images
1111 * held on a postgresql database.
1212 *
@@ -81,7 +81,7 @@ public void update(Graphics g)
8181paint (g );
8282}
8383
84- /**
84+ /*
8585 * Paints the image, using double buffering to prevent screen flicker
8686 */
8787public void paint (Graphics gr )
@@ -212,7 +212,7 @@ public void actionPerformed(ActionEvent e)
212212}
213213
214214
215- /**
215+ /*
216216 * This method initialises the database by creating a table that contains
217217 * the image names, and Large Object OID's
218218 */
@@ -238,7 +238,7 @@ public void init()
238238//}
239239}
240240
241- /**
241+ /*
242242 * This closes the connection, and ends the application
243243 */
244244public void close ()
@@ -254,7 +254,7 @@ public void close()
254254System .exit (0 );
255255}
256256
257- /**
257+ /*
258258 * This imports an image into the database, using a Thread to do this in the
259259 * background.
260260 */
@@ -272,7 +272,7 @@ public void importImage()
272272t .start ();
273273}
274274
275- /**
275+ /*
276276 * This is an example of using a thread to import a file into a Large Object.
277277 * It uses the Large Object extension, to write blocks of the file to the
278278 * database.
@@ -362,7 +362,7 @@ public void run()
362362}
363363}
364364
365- /**
365+ /*
366366 * This refreshes the list of available images
367367 */
368368public void refreshList ()
@@ -385,7 +385,7 @@ public void refreshList()
385385}
386386}
387387
388- /**
388+ /*
389389 * This removes an image from the database
390390 *
391391 * Note: With postgresql, this is the only way of deleting a large object
@@ -427,7 +427,7 @@ public void removeImage()
427427}
428428}
429429
430- /**
430+ /*
431431 * This displays an image from the database.
432432 *
433433 * For images, this is the easiest method.
@@ -476,7 +476,7 @@ public void itemStateChanged(ItemEvent e)
476476displayImage (list .getItem (((Integer )e .getItem ()).intValue ()));
477477}
478478
479- /**
479+ /*
480480 * This is the command line instructions
481481 */
482482public static void instructions ()
@@ -489,7 +489,7 @@ public static void instructions()
489489System .err .println ("Note: If you are running this for the first time on a particular database,\n you have to select\" Initialise\" in the\" PostgreSQL\" menu.\n This will create a table used to store image names." );
490490}
491491
492- /**
492+ /*
493493 * This is the application entry point
494494 */
495495public static void main (String args [])