45 |
import java.awt.Dimension; |
import java.awt.Dimension; |
46 |
import java.awt.Frame; |
import java.awt.Frame; |
47 |
import java.awt.Graphics; |
import java.awt.Graphics; |
48 |
|
import java.awt.GraphicsConfiguration; |
49 |
import java.awt.LayoutManager; |
import java.awt.LayoutManager; |
50 |
import java.awt.event.KeyEvent; |
import java.awt.event.KeyEvent; |
51 |
import java.awt.event.WindowEvent; |
import java.awt.event.WindowEvent; |
80 |
frameInit(); |
frameInit(); |
81 |
} |
} |
82 |
|
|
83 |
|
/** |
84 |
|
* Creates a new JFrame in the specified {@link GraphicsConfiguration} |
85 |
|
* and with an empty title. |
86 |
|
* |
87 |
|
* @param gc the <code>GraphicsConfiguration</code> that is used for |
88 |
|
* the new <code>JFrame</code> |
89 |
|
* |
90 |
|
* @see Frame(GraphicsConfiguration) |
91 |
|
*/ |
92 |
|
public JFrame(GraphicsConfiguration gc) |
93 |
|
{ |
94 |
|
super(gc); |
95 |
|
frameInit(); |
96 |
|
} |
97 |
|
|
98 |
|
/** |
99 |
|
* Creates a new JFrame in the specified {@link GraphicsConfiguration} |
100 |
|
* and with the specified title. |
101 |
|
* |
102 |
|
* @param title the title for the new <code>JFrame</code> |
103 |
|
* @param gc the <code>GraphicsConfiguration</code> that is used for |
104 |
|
* the new <code>JFrame</code> |
105 |
|
* |
106 |
|
* @see Frame(String, GraphicsConfiguration) |
107 |
|
*/ |
108 |
|
public JFrame(String title, GraphicsConfiguration gc) |
109 |
|
{ |
110 |
|
super(title, gc); |
111 |
|
frameInit(); |
112 |
|
} |
113 |
|
|
114 |
protected void frameInit() |
protected void frameInit() |
115 |
{ |
{ |
116 |
super.setLayout(new BorderLayout(1, 1)); |
super.setLayout(new BorderLayout(1, 1)); |