src/demo/share/java2d/J2DBench/src/j2dbench/Group.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2002, 2011, Oracle and/or its affiliates. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * --- 1,7 ---- /* ! * Copyright (c) 2002, 2014, Oracle and/or its affiliates. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: *
*** 42,51 **** --- 42,52 ---- import java.io.PrintWriter; import javax.swing.BoxLayout; import javax.swing.JComponent; import javax.swing.JPanel; + import javax.swing.JScrollPane; import javax.swing.JTabbedPane; import javax.swing.border.TitledBorder; import java.util.NoSuchElementException; import j2dbench.ui.CompactLayout;
*** 197,207 **** JComponent comp = node.getJComponent(); if (comp != null) { p.add(comp); } } ! return p; } } public void addEnableButtons(JPanel p) { p.add(new EnableButton(this, EnableButton.DEFAULT)); --- 198,208 ---- JComponent comp = node.getJComponent(); if (comp != null) { p.add(comp); } } ! return new JScrollPane(p); } } public void addEnableButtons(JPanel p) { p.add(new EnableButton(this, EnableButton.DEFAULT));