forked from phoedos/pmd
Remove unused JSmartPanel class.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5899 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
@ -1,30 +0,0 @@
|
||||
package net.sourceforge.pmd.util.designer;
|
||||
|
||||
import javax.swing.*;
|
||||
import java.awt.Component;
|
||||
import java.awt.GridBagConstraints;
|
||||
import java.awt.GridBagLayout;
|
||||
import java.awt.Insets;
|
||||
|
||||
public class JSmartPanel extends JPanel {
|
||||
|
||||
private GridBagConstraints constraints = new GridBagConstraints();
|
||||
|
||||
public JSmartPanel() {
|
||||
super(new GridBagLayout());
|
||||
}
|
||||
|
||||
public void add(Component comp, int gridx, int gridy, int gridwidth, int gridheight, double weightx, double weighty, int anchor, int fill, Insets insets) {
|
||||
constraints.gridx = gridx;
|
||||
constraints.gridy = gridy;
|
||||
constraints.gridwidth = gridwidth;
|
||||
constraints.gridheight = gridheight;
|
||||
constraints.weightx = weightx;
|
||||
constraints.weighty = weighty;
|
||||
constraints.anchor = anchor;
|
||||
constraints.fill = fill;
|
||||
constraints.insets = insets;
|
||||
add(comp, constraints);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user