bed56b6ecfdf67bcaf0295a79634bb8da27f37d1
[jalviewjs.git] / site / swingjs / j2s / javax / swing / JPanel.js
1 Clazz.declarePackage ("javax.swing");
2 Clazz.load (["javax.swing.JComponent"], "javax.swing.JPanel", ["java.lang.Boolean", "java.awt.FlowLayout", "javax.swing.UIManager"], function () {
3 c$ = Clazz.declareType (javax.swing, "JPanel", javax.swing.JComponent);
4 Clazz.makeConstructor (c$, 
5 function (layout, isDoubleBuffered) {
6 Clazz.superConstructor (this, javax.swing.JPanel, []);
7 this.setLayout (layout);
8 this.setUIProperty ("opaque", Boolean.TRUE);
9 this.updateUI ();
10 }, "java.awt.LayoutManager,~B");
11 Clazz.makeConstructor (c$, 
12 function (layout) {
13 this.construct (layout, true);
14 }, "java.awt.LayoutManager");
15 Clazz.makeConstructor (c$, 
16 function (isDoubleBuffered) {
17 this.construct ( new java.awt.FlowLayout (), isDoubleBuffered);
18 }, "~B");
19 Clazz.makeConstructor (c$, 
20 function () {
21 this.construct (true);
22 });
23 Clazz.overrideMethod (c$, "updateUI", 
24 function () {
25 this.setUI (javax.swing.UIManager.getUI (this));
26 });
27 Clazz.overrideMethod (c$, "getUI", 
28 function () {
29 return this.ui;
30 });
31 Clazz.overrideMethod (c$, "getUIClassID", 
32 function () {
33 return "PanelUI";
34 });
35 Clazz.defineStatics (c$,
36 "$uiClassID", "PanelUI");
37 });