Changeset 32533 in osm for applications/editors/josm/plugins/trustosm/src/tools/SpringUtilities.java
- Timestamp:
- 2016-07-02T21:57:09+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/trustosm/src/tools/SpringUtilities.java
r24389 r32533 28 28 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 29 29 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 */ 30 */ 31 31 32 32 package tools; 33 33 34 import javax.swing.*; 34 import java.awt.Component; 35 import java.awt.Container; 36 37 import javax.swing.Spring; 35 38 import javax.swing.SpringLayout; 36 import java.awt.*;37 39 38 40 /** … … 42 44 * SpringBox and SpringCompactGrid. 43 45 */ 44 public class SpringUtilities { 46 public final class SpringUtilities { 47 48 private SpringUtilities() { 49 // Hide default constructors for utilities classes 50 } 51 45 52 /** 46 53 * A debugging utility that prints to stdout the component's … … 73 80 SpringLayout layout; 74 81 try { 75 layout = (SpringLayout) parent.getLayout();82 layout = (SpringLayout) parent.getLayout(); 76 83 } catch (ClassCastException exc) { 77 84 System.err.println("The first argument to makeGrid must use SpringLayout."); … … 176 183 SpringLayout layout; 177 184 try { 178 layout = (SpringLayout) parent.getLayout();185 layout = (SpringLayout) parent.getLayout(); 179 186 } catch (ClassCastException exc) { 180 187 System.err.println("The first argument to makeCompactGrid must use SpringLayout.");
Note:
See TracChangeset
for help on using the changeset viewer.