Changeset 10751 for extensions
- Timestamp:
- May 3, 2011, 8:46:36 PM (14 years ago)
- Location:
- extensions/jiwigo/trunk/src/main/java/fr/mael/jiwigo/ui/mainframe
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/jiwigo/trunk/src/main/java/fr/mael/jiwigo/ui/mainframe/DialogPrivacyLevel.java
r10750 r10751 85 85 mapLevels.put(4, 8); 86 86 checkBoxRemember = new JCheckBox(Messages.getMessage("dialogPrivacy_remember")); 87 labelChoice = new JLabel(Messages.getMessage("dialogPrivacy_choosePrivacy") );88 JPanel panelChoice = new JPanel(new FlowLayout( ));87 labelChoice = new JLabel(Messages.getMessage("dialogPrivacy_choosePrivacy"), JLabel.CENTER); 88 JPanel panelChoice = new JPanel(new FlowLayout(FlowLayout.CENTER)); 89 89 comboPrivacyLevel = new JComboBox(new privacyLevelModel()); 90 90 comboPrivacyLevel.setSelectedIndex(0); … … 96 96 panelButton.add(buttonOk); 97 97 this.setLayout(new BorderLayout()); 98 this.add(panelChoice, BorderLayout.NORTH); 99 this.add(panelButton, BorderLayout.CENTER); 98 this.add(labelChoice, BorderLayout.NORTH); 99 this.add(panelChoice, BorderLayout.CENTER); 100 this.add(panelButton, BorderLayout.SOUTH); 100 101 101 102 this.pack(); -
extensions/jiwigo/trunk/src/main/java/fr/mael/jiwigo/ui/mainframe/ThumbnailPanel.java
r10718 r10751 132 132 */ 133 133 public Dimension getPreferredSize() { 134 int w = (int) (ImagesManagement.getInstance().getMiniatureBufferedImage(image).getWidth()); 135 int h = (int) (ImagesManagement.getInstance().getMiniatureBufferedImage(image).getHeight() + 10); 136 return new Dimension(w, h); 134 try { 135 int w = (int) (ImagesManagement.getInstance().getMiniatureBufferedImage(image).getWidth()); 136 int h = (int) (ImagesManagement.getInstance().getMiniatureBufferedImage(image).getHeight() + 10); 137 return new Dimension(w, h); 138 } catch (NullPointerException e) { 139 return new Dimension(100, 100); 140 } 137 141 } 138 142
Note: See TracChangeset
for help on using the changeset viewer.