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

Contents of /trunk.bakup/src/appl/util/XuluFrameAdapter.java

Parent Directory Parent Directory | Revision Log Revision Log


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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26