1 |
// GridBagConstraints.java - Constraints for GridBag layout manager |
// GridBagConstraints.java - Constraints for GridBag layout manager |
2 |
|
|
3 |
/* Copyright (C) 2000, 2001 Free Software Foundation |
/* Copyright (C) 2000, 2001, 2002 Free Software Foundation |
4 |
|
|
5 |
This file is part of GNU Classpath. |
This file is part of GNU Classpath. |
6 |
|
|
93 |
/** Create a copy of this object. */ |
/** Create a copy of this object. */ |
94 |
public Object clone () |
public Object clone () |
95 |
{ |
{ |
96 |
GridBagConstraints g = (GridBagConstraints) super.clone (); |
try |
97 |
g.insets = (Insets) insets.clone (); |
{ |
98 |
return g; |
GridBagConstraints g = (GridBagConstraints) super.clone (); |
99 |
|
g.insets = (Insets) insets.clone (); |
100 |
|
return g; |
101 |
|
} |
102 |
|
catch (CloneNotSupportedException _) |
103 |
|
{ |
104 |
|
// Can't happen. |
105 |
|
return null; |
106 |
|
} |
107 |
} |
} |
108 |
|
|
109 |
/** Create a new GridBagConstraints object with the default |
/** Create a new GridBagConstraints object with the default |