Ignore:
Timestamp:
Mar 27, 2011, 1:11:35 PM (13 years ago)
Author:
mlg
Message:

Code cleaning + comments.

Location:
extensions/jiwigo/trunk/src/main/java/fr/mael/jiwigo/ui
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • extensions/jiwigo/trunk/src/main/java/fr/mael/jiwigo/ui/MyCollapsiblePanel.java

    r9880 r9896  
    2424import java.awt.BorderLayout;
    2525
    26 import javax.swing.JButton;
    2726import javax.swing.JPanel;
    2827import javax.swing.JSplitPane;
    2928import javax.swing.JTabbedPane;
    30 
    31 import org.jdesktop.swingx.JXCollapsiblePane;
    3229
    3330import fr.mael.jiwigo.ui.browser.BrowserPanel;
     
    6360@SuppressWarnings("serial")
    6461public class MyCollapsiblePanel extends JPanel {
    65     private JXCollapsiblePane collapsiblePane;
    66     private JButton collapsingButton;
    6762    private BrowserPanel browserFrame = BrowserPanel.getInstance();
    6863    private JSplitPane splitPane;
    69 
    70     //    /**
    71     //     * main method allows us to run as a standalone demo.
    72     //     */
    73     //    public static void main(String[] args) {
    74     //  SwingUtilities.invokeLater(new Runnable() {
    75     //      public void run() {
    76     //          JFrame frame = new JFrame();
    77     //
    78     //          frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    79     //          frame.getContentPane().add(new TEst());
    80     //          frame.setPreferredSize(new Dimension(800, 600));
    81     //          frame.pack();
    82     //          frame.setLocationRelativeTo(null);
    83     //          frame.setVisible(true);
    84     //      }
    85     //  });
    86     //    }
    8764
    8865    public MyCollapsiblePanel(JTabbedPane tabbedPane) {
     
    9168        splitPane.setTopComponent(browserFrame);
    9269        splitPane.setBottomComponent(tabbedPane);
    93         //      splitPane.addPropertyChangeListener(new PropertyChangeListener() {
    94         //
    95         //          @Override
    96         //          public void propertyChange(PropertyChangeEvent evt) {
    97         //              if (evt.getPropertyName().equals("dividerLocation")) {
    98         //                  browserFrame.callRepaint();
    99         //              }
    100         //          }
    101         //      });
    10270        splitPane.setContinuousLayout(true);
    10371        splitPane.setResizeWeight(0.5);
     
    10876    @Override
    10977    public void revalidate() {
    110         // TODO Auto-generated method stub
    11178        super.revalidate();
    112 
    11379    }
    11480
    115     //    public void changeSize(Dimension dimension) {
    116     //  Dimension dim = new Dimension(dimension.width, dimension.height - 400);
    117     //
    118     //    }
    119 
    12081}
  • extensions/jiwigo/trunk/src/main/java/fr/mael/jiwigo/ui/search/DialogChooseCategory.java

    r9894 r9896  
    165165            List<File> alreadyExistingFiles = new ArrayList<File>();
    166166            List<File> unExceptedFilesError = new ArrayList<File>();
     167            //loop on all files to send.
     168            //if there is a WrongChunkSizeException, the loop stops
     169            //if there is a FileAlreadyExistsException or an Exception
     170            //the file is just added to a list to display the error messages
     171            //at the end of the loop
    167172            for (File file : filesToSend) {
    168173                try {
     
    188193                }
    189194            }
     195            //searches for FileAlreadyExistsException and displays a message dialog
     196            //with the name of the file
    190197            if (alreadyExistingFiles.size() != 0) {
    191198                StringBuffer list = new StringBuffer();
     
    198205            }
    199206
     207            //searches for Exception and displays a message dialog
     208            //with the name of the file
    200209            if (unExceptedFilesError.size() != 0) {
    201210                StringBuffer list = new StringBuffer();
  • extensions/jiwigo/trunk/src/main/java/fr/mael/jiwigo/ui/search/ImageSearchDisplay.java

    r8834 r9896  
    6464            g2.drawRenderedImage(image, at);
    6565        }
    66         //      g2.drawImage(image, 0, 0, null);
    6766
    6867    }
  • extensions/jiwigo/trunk/src/main/java/fr/mael/jiwigo/ui/search/tree/FileTree.java

    r9895 r9896  
    1313import javax.swing.JButton;
    1414import javax.swing.JFileChooser;
    15 import javax.swing.JFrame;
    1615import javax.swing.JMenuItem;
    1716import javax.swing.JPanel;
     
    8180     */
    8281    private JMenuItem menuSend;
    83 
    84     public static void main(String[] args) {
    85         JFrame frame = new JFrame();
    86         frame.add(new FileTree("/home/mael/Documents"));
    87 
    88         frame.pack();
    89         frame.setVisible(true);
    90         frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    91     }
    9282
    9383    /**
Note: See TracChangeset for help on using the changeset viewer.