Changeset 6832 for extensions/jiwigo/trunk/src/main/java/fr/mael/jiwigo
- Timestamp:
- Sep 1, 2010, 8:49:20 PM (14 years ago)
- Location:
- extensions/jiwigo/trunk/src/main/java/fr/mael/jiwigo
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/jiwigo/trunk/src/main/java/fr/mael/jiwigo/transverse/session/SessionManager.java
r6831 r6832 125 125 try { 126 126 client.executeMethod(method); 127 return (method.getResponseBodyAsString()); 127 String toReturn = method.getResponseBodyAsString(); 128 LOG.debug(toReturn); 129 return toReturn; 128 130 } catch (HttpException e) { 129 131 // TODO Auto-generated catch block -
extensions/jiwigo/trunk/src/main/java/fr/mael/jiwigo/ui/mainframe/MainFrame.java
r6831 r6832 2 2 3 3 import java.awt.BorderLayout; 4 import java.awt.Dimension; 4 5 import java.awt.FlowLayout; 5 6 import java.awt.event.ActionEvent; 6 7 import java.awt.event.ActionListener; 7 8 9 import javax.swing.JComponent; 8 10 import javax.swing.JFrame; 9 11 import javax.swing.JLabel; … … 118 120 splitPane.setLeftComponent(categoriesTree); 119 121 imagesPanel = new ThumbnailCategoryPanel(null); 122 reduceSizeOfComponent(imagesPanel); 120 123 scrollPaneImagesPanel = new JScrollPane(imagesPanel, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, 121 JScrollPane.HORIZONTAL_SCROLLBAR_NEVER); 124 JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); 125 scrollPaneImagesPanel.setPreferredSize(new Dimension(900, 700)); 122 126 splitPane.setRightComponent(scrollPaneImagesPanel); 123 127 … … 171 175 } 172 176 177 public static void reduceHeightOfComponent(JComponent comp) { 178 comp.setMaximumSize(new Dimension(comp.getMaximumSize().width, comp.getPreferredSize().height)); 179 } 180 181 public static void reduceWidthOfComponent(JComponent comp) { 182 comp.setMaximumSize(new Dimension(comp.getPreferredSize().width, comp.getMaximumSize().height)); 183 } 184 185 public static void reduceSizeOfComponent(JComponent comp) { 186 comp.setMaximumSize(comp.getPreferredSize()); 187 } 188 173 189 } -
extensions/jiwigo/trunk/src/main/java/fr/mael/jiwigo/ui/mainframe/ThumbnailCategoryPanel.java
r6831 r6832 1 1 package fr.mael.jiwigo.ui.mainframe; 2 2 3 import java.awt.Dimension;4 3 import java.awt.FlowLayout; 5 4 5 import javax.swing.BoxLayout; 6 6 import javax.swing.JOptionPane; 7 7 import javax.swing.JPanel; … … 60 60 public ThumbnailCategoryPanel(Integer categoryId) { 61 61 this.categoryId = categoryId; 62 this.setLayout(new FlowLayout()); 63 this.setPreferredSize(new Dimension(1000, 750)); 62 // this.setLayout(new FlowLayout()); 63 this.setLayout(new BoxLayout(this, BoxLayout.PAGE_AXIS)); 64 // this.setPreferredSize(new Dimension(900, 800)); 64 65 if (categoryId != null) { 65 66 rafraichir(categoryId, false); … … 93 94 this.categoryId = categoryId; 94 95 this.removeAll(); 96 int nb = 1; 97 JPanel panelh = new JPanel(new FlowLayout()); 95 98 try { 96 99 ImagesManagement.LIST_IMAGE = ImageService.getInstance().listerParCategory(categoryId, rafraichir); 97 100 for (Image image : ImagesManagement.LIST_IMAGE) { 98 101 try { 99 // MiniatureLabel label = new MiniatureLabel(image, this); 100 ThumbnailPanel panel = new ThumbnailPanel(image); 101 this.add(panel); 102 103 if (nb == 7) { 104 this.add(panelh); 105 panelh = new JPanel(new FlowLayout()); 106 nb = 0; 107 } else { 108 ThumbnailPanel panel = new ThumbnailPanel(image); 109 panelh.add(panel); 110 } 111 nb++; 112 102 113 } catch (Exception e) { 103 114
Note: See TracChangeset
for help on using the changeset viewer.