|
@@ -10,6 +10,7 @@ import javax.imageio.ImageIO;
|
|
|
import java.io.File;
|
|
|
import java.io.*;
|
|
|
import javax.swing.BorderFactory;
|
|
|
+import java.text.SimpleDateFormat;
|
|
|
|
|
|
public class Gallery extends JPanel implements Observer, Serializable
|
|
|
{
|
|
@@ -325,7 +326,7 @@ class Item extends JPanel implements Serializable
|
|
|
this.pic.addMouseListener(clicklistener);
|
|
|
this.pic.setAlignmentX(LEFT_ALIGNMENT);
|
|
|
this.pic.setPreferredSize(new Dimension(200, 200));
|
|
|
- this.name = new JLabel(data.getName(), JLabel.LEFT);
|
|
|
+ this.name = new JLabel("Name: " + data.getName(), JLabel.LEFT);
|
|
|
this.name.setAlignmentX(LEFT_ALIGNMENT);
|
|
|
this.name.setPreferredSize(new Dimension(200, 25));
|
|
|
this.rating = new JPanel();
|
|
@@ -337,7 +338,9 @@ class Item extends JPanel implements Serializable
|
|
|
this.rating.add(star5);
|
|
|
this.rating.setPreferredSize(new Dimension(200, 32));
|
|
|
this.rating.setAlignmentX(LEFT_ALIGNMENT);
|
|
|
- this.dateSize = new JLabel(Long.toString(data.getLastmod()) + Long.toString(data.getSize()), JLabel.LEFT);
|
|
|
+ Date tempdate = new Date(data.getLastmod());
|
|
|
+ SimpleDateFormat format = new SimpleDateFormat("MM/dd/yyyy");
|
|
|
+ this.dateSize = new JLabel("Created: " + format.format(tempdate), JLabel.LEFT);
|
|
|
this.dateSize.setAlignmentX(LEFT_ALIGNMENT);
|
|
|
this.dateSize.setPreferredSize(new Dimension(200, 25));
|
|
|
this.add(pic);
|