|
@@ -76,12 +76,16 @@ class Item extends JPanel
|
|
|
{
|
|
|
this.data = p;
|
|
|
this.setLayout(new GridLayout(0, 1));
|
|
|
- this.setPreferredSize(new Dimension(100, 150));
|
|
|
+ this.setPreferredSize(new Dimension(100, 160));
|
|
|
this.picture = new ImageIcon(data.getPic());
|
|
|
- this.pic = new JLabel(picture);
|
|
|
- this.name = new JLabel(data.getName());
|
|
|
- this.rating = new JLabel(Integer.toString(data.getRating()));
|
|
|
- this.dateSize = new JLabel(Long.toString(data.getLastmod()) + Long.toString(data.getSize()));
|
|
|
+ this.pic = new JLabel(picture, JLabel.CENTER);
|
|
|
+ this.pic.setPreferredSize(new Dimension(100, 100));
|
|
|
+ this.name = new JLabel(data.getName(), JLabel.CENTER);
|
|
|
+ this.setPreferredSize(new Dimension(100, 20));
|
|
|
+ this.rating = new JLabel(Integer.toString(data.getRating()), JLabel.CENTER);
|
|
|
+ this.setPreferredSize(new Dimension(100, 20));
|
|
|
+ this.dateSize = new JLabel(Long.toString(data.getLastmod()) + Long.toString(data.getSize()), JLabel.CENTER);
|
|
|
+ this.setPreferredSize(new Dimension(100, 20));
|
|
|
this.add(pic);
|
|
|
this.add(name);
|
|
|
this.add(rating);
|