src/macosx/classes/com/apple/laf/AquaTextFieldSearch.java
Print this page
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2011, 2014, 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
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
@@ -247,10 +247,11 @@
if (prompt != null) promptText = prompt.toString();
}
label.setText(promptText);
}
+ @SuppressWarnings("serial") // anonymous class inside
protected static JButton getCancelButton(final JTextComponent c) {
final JButton b = createButton(c, getCancelIcon());
b.setName("cancel");
final Object cancelAction = c.getClientProperty(CANCEL_ACTION_KEY);
@@ -323,10 +324,11 @@
return sizeVariant.margins;
}
protected boolean doingLayout;
+ @SuppressWarnings("serial") // anonymous class inside
protected LayoutManager getCustomLayout() {
// unfortunately, the default behavior of BorderLayout, which accommodates for margins
// is not what we want, so we "turn off margins" for layout for layout out our buttons
return new BorderLayout(0, 0) {
public void layoutContainer(final Container target) {