UNPKG

ts-jsdk

Version:

TypeScript implementation of the Java platform

16 lines 417 B
import { JComponent } from "./JComponent"; import { BorderLayout } from "../awt/BorderLayout"; export class JPanel extends JComponent { constructor() { super(...arguments); this.components = []; this.layout = new BorderLayout(); } add(comp) { this.components.push(comp); } setLayout(layout) { this.layout = layout; } } //# sourceMappingURL=JPanel.js.map