/[xulu]/branches/1.8-gt2-2.6/src/appl/util/XuluFrameAdapter.java
ViewVC logotype

Annotation of /branches/1.8-gt2-2.6/src/appl/util/XuluFrameAdapter.java

Parent Directory Parent Directory | Revision Log Revision Log


Revision 60 - (hide annotations)
Sun Oct 4 16:54:52 2009 UTC (15 years, 2 months ago) by alfonx
File size: 1005 byte(s)
* organized imports
1 mojays 2 package appl.util;
2    
3 alfonx 60 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