Looking for general method for GridBagLayout component creation
I'm designing a GUI with 20 or so components: 10 labels, 4 text fields, 4 buttons, and 2 text areas. Using GridBagLayout seemed a great idea. But with all the instance variables required to do it by the book for each component (i.e., not reuse), a general method for adding components seemed a must. I really thought this could work: (Note: HORIZ is abbreviation for GridBagConstraints.HORIZONTAL; CENTER is abbreviation for GridBagConstraints.CENTER.) public static void addComponent(Container f, Component c, int x, int y, int w, int h, int ipadx, int ipady, float wtx, float wty, int fill, int