--- a/jdk/src/macosx/classes/sun/lwawt/LWCheckboxPeer.java Mon Sep 24 18:24:30 2012 +0400
+++ b/jdk/src/macosx/classes/sun/lwawt/LWCheckboxPeer.java Mon Sep 24 21:33:41 2012 +0400
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -186,6 +186,11 @@
}
@Override
+ public Dimension getPreferredSize() {
+ return getCurrentButton().getPreferredSize();
+ }
+
+ @Override
@Transient
public Dimension getMinimumSize() {
return getCurrentButton().getMinimumSize();