< prev index next >
test/jdk/java/awt/ComponentOrientation/BorderTest.java
Print this page
*** 1,7 ****
/*
! * Copyright (c) 1998, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
--- 1,7 ----
/*
! * Copyright (c) 1998, 2018, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*** 37,49 ****
* may not be removed.
*/
import java.awt.*;
import java.awt.event.*;
- import java.applet.Applet;
! public class BorderTest extends Applet {
Panel panel1;
Panel panel2;
public BorderTest() {
setLayout(new GridLayout(0,2));
--- 37,48 ----
* may not be removed.
*/
import java.awt.*;
import java.awt.event.*;
! public class BorderTest extends Panel {
Panel panel1;
Panel panel2;
public BorderTest() {
setLayout(new GridLayout(0,2));
*** 106,117 ****
System.exit(0);
};
} );
BorderTest BorderTest = new BorderTest();
- BorderTest.init();
- BorderTest.start();
f.add("Center", BorderTest);
f.setSize(450, 300);
f.show();
}
--- 105,114 ----
< prev index next >