- Timestamp:
- Sep 1, 2010, 11:59:17 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/jiwigo/trunk/src/main/java/fr/mael/jiwigo/ui/mainframe/MainFrame.java
r6832 r6833 14 14 import javax.swing.JMenuItem; 15 15 import javax.swing.JPanel; 16 import javax.swing.JProgressBar; 16 17 import javax.swing.JScrollPane; 17 18 import javax.swing.JSplitPane; … … 97 98 private static MainFrame instance; 98 99 100 private JProgressBar progressBar; 101 99 102 /** 100 103 * @return le singleton … … 128 131 this.add(splitPane, BorderLayout.WEST); 129 132 JPanel panel = new JPanel(new FlowLayout(FlowLayout.LEFT)); 133 progressBar = new JProgressBar(0, 100); 134 panel.add(progressBar); 130 135 panel.add(labelMessage); 131 136 … … 175 180 } 176 181 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 182 public static void reduceSizeOfComponent(JComponent comp) { 186 183 comp.setMaximumSize(comp.getPreferredSize()); 187 184 } 188 185 186 /** 187 * @return the progressBar 188 */ 189 public JProgressBar getProgressBar() { 190 return progressBar; 191 } 192 189 193 }
Note: See TracChangeset
for help on using the changeset viewer.