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

Code cleaning + comments.

File:
1 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}
Note: See TracChangeset for help on using the changeset viewer.