File tree Expand file tree Collapse file tree 1 file changed +4
-11
lines changed
test/jdk/sanity/client/lib/SwingSet2/src Expand file tree Collapse file tree 1 file changed +4
-11
lines changed Original file line number Diff line number Diff line change 11/*
2- * Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
2+ * Copyright (c) 2018, 2024, Oracle and/or its affiliates. All rights reserved.
33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44 *
55 * This code is free software; you can redistribute it and/or modify it
3131import javax .swing .BoxLayout ;
3232import javax .swing .Icon ;
3333import javax .swing .ImageIcon ;
34- import javax .swing .JApplet ;
3534import javax .swing .JFrame ;
3635import javax .swing .JPanel ;
3736import javax .swing .UIManager ;
4241
4342/**
4443 * A generic SwingSet2 demo module
45- *
46- * @author Jeff Dinkins
4744 */
48- public class DemoModule extends JApplet {
45+ public class DemoModule extends JPanel {
4946
5047 // The preferred size of the demo
5148 private int PREFERRED_WIDTH = 680 ;
@@ -214,10 +211,6 @@ public static void main(String[] args) {
214211 demo .mainImpl ();
215212 }
216213
217- public void init () {
218- getContentPane ().setLayout (new BorderLayout ());
219- getContentPane ().add (getDemoPanel (), BorderLayout .CENTER );
220- }
221-
222214 void updateDragEnabled (boolean dragEnabled ) {}
223- }
215+ }
216+
You can’t perform that action at this time.
0 commit comments