/[xulu]/trunk/src/appl/util/XuluFrameAdapter.java
ViewVC logotype

Annotation of /trunk/src/appl/util/XuluFrameAdapter.java

Parent Directory Parent Directory | Revision Log Revision Log


Revision 78 - (hide annotations)
Wed Feb 10 16:43:46 2010 UTC (14 years, 10 months ago) by alfonx
File size: 1005 byte(s)
Merged branch 1.8-gt2-2.6 to trunk. Now the trunk is based on GeoTools 2.6.1 and schmitzm-2.0.x
1 mojays 2 package appl.util;
2    
3 alfonx 78 import java.awt.Dimension;
4    
5 mojays 2 import javax.swing.JPanel;
6    
7     import edu.bonn.xulu.gui.XuluInternalFrame;
8    
9     /**
10     * Makes an XuluInternalFrame out of a {@link JPanel}.
11     *
12     * @author Dominik Appl
13     */
14     public class XuluFrameAdapter extends XuluInternalFrame{
15    
16    
17     private final JPanel panel;
18    
19    
20    
21     /**
22     * Creates the internal Frame
23     * @param titel the window-title
24     * @param panel the panel to be displayed in the frame
25     */
26     public XuluFrameAdapter(String titel, JPanel panel) {
27     super(titel);
28     this.panel = panel;
29     initialize();
30    
31     }
32    
33    
34    
35     /**
36     * This method initializes this
37     *
38     */
39     private void initialize() {
40     this.setSize(new Dimension(panel.getSize().width, panel.getSize().height + 30));
41     this.setClosable(true);
42     this.setDefaultCloseOperation( HIDE_ON_CLOSE );
43     this.getContentPane().add(panel);
44     }
45    
46    
47    
48     @Override
49     public void refresh() {
50    
51    
52     }
53    
54     } // @jve:decl-index=0:visual-constraint="10,10"

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26