|
@@ -43,7 +43,7 @@ public class Gallery extends JPanel implements Observer
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- private void reFill(int cols)
|
|
|
+ private void reFill()
|
|
|
{
|
|
|
if (model.getGrid())
|
|
|
{
|
|
@@ -76,16 +76,16 @@ class Item extends JPanel
|
|
|
{
|
|
|
this.data = p;
|
|
|
this.setLayout(new GridLayout(0, 1));
|
|
|
- this.setPreferredSize(new Dimension(100, 160));
|
|
|
+ this.setPreferredSize(new Dimension(200, 320));
|
|
|
this.picture = new ImageIcon(data.getPic());
|
|
|
this.pic = new JLabel(picture, JLabel.CENTER);
|
|
|
- this.pic.setPreferredSize(new Dimension(100, 100));
|
|
|
+ //this.pic.setPreferredSize(new Dimension(200, 200));
|
|
|
this.name = new JLabel(data.getName(), JLabel.CENTER);
|
|
|
- this.name.setPreferredSize(new Dimension(100, 20));
|
|
|
+ this.name.setPreferredSize(new Dimension(200, 40));
|
|
|
this.rating = new JLabel(Integer.toString(data.getRating()), JLabel.CENTER);
|
|
|
- this.rating.setPreferredSize(new Dimension(100, 20));
|
|
|
+ this.rating.setPreferredSize(new Dimension(200, 40));
|
|
|
this.dateSize = new JLabel(Long.toString(data.getLastmod()) + Long.toString(data.getSize()), JLabel.CENTER);
|
|
|
- this.dateSize.setPreferredSize(new Dimension(100, 20));
|
|
|
+ this.dateSize.setPreferredSize(new Dimension(200, 40));
|
|
|
this.add(pic);
|
|
|
this.add(name);
|
|
|
this.add(rating);
|