Code /* TestGridBagLayout8.java CIS 260 2006-02-22 David Klick Demonstration of GridBagLayout with ipadx and ipady used on one component. */ import java.awt.*; import java.awt.event.*; import javax.swing.*; public class TestGridBagLayout8 extends JFrame { public static void main(String[] args) { TestGridBagLayout8 app = new TestGridBagLayout8(); app.setDefaultCloseOperation(EXIT_ON_CLOSE); app.init(); } public void init() { int i; JButton btn[] = new JButton[4]; Container c = getContentPane(); c.setLayout(new GridBagLayout()); GridBagConstraints gb = new GridBagConstraints(); for (i=0; i