From 76b497c456ff7d543a97b705f78fbc00ff1fe8c7 Mon Sep 17 00:00:00 2001 From: tromey Date: Tue, 26 Dec 2000 07:18:16 +0000 Subject: * java/awt/MenuItem.java (paramString): Now protected. * java/awt/MenuShortcut.java: Implements Serializable. * java/awt/MenuBar.java: Rewrote from scratch. * java/awt/MenuComponent.java (removeNotify): Wrote. Implements Serializable. * java/awt/GridBagConstraints.java (GridBagConstraints): New constructor. * java/awt/CheckboxMenuItem.java: Wrote. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38488 138bc75d-0d04-0410-961f-82ee72b054a4 --- libjava/java/awt/GridBagConstraints.java | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'libjava/java/awt/GridBagConstraints.java') diff --git a/libjava/java/awt/GridBagConstraints.java b/libjava/java/awt/GridBagConstraints.java index 6aa75d45374..2c34cc9b42f 100644 --- a/libjava/java/awt/GridBagConstraints.java +++ b/libjava/java/awt/GridBagConstraints.java @@ -86,4 +86,25 @@ public class GridBagConstraints implements Cloneable, Serializable this.weightx = 0; this.weighty = 0; } + + /** Create a new GridBagConstraints object with the indicated + * parameters. */ + public GridBagConstraints (int gridx, int gridy, + int gridwidth, int gridheight, + double weightx, double weighty, + int anchor, int fill, + Insets insets, int ipadx, int ipady) + { + this.anchor = anchor; + this.fill = fill; + this.gridx = gridx; + this.gridy = gridy; + this.gridwidth = gridwidth; + this.gridheight = gridheight; + this.ipadx = ipadx; + this.ipady = ipady; + this.insets = insets; + this.weightx = weightx; + this.weighty = weighty; + } } -- cgit v1.2.3