src/share/classes/javax/swing/plaf/synth/SynthScrollBarUI.java
Print this page
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 2002, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2002, 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
@@ -373,10 +373,11 @@
/**
* {@inheritDoc}
*/
@Override
protected JButton createDecreaseButton(int orientation) {
+ @SuppressWarnings("serial") // anonymous class
SynthArrowButton synthArrowButton = new SynthArrowButton(orientation) {
@Override
public boolean contains(int x, int y) {
if (decrGap < 0) { //there is an overlap between the track and button
int width = getWidth();
@@ -402,10 +403,11 @@
/**
* {@inheritDoc}
*/
@Override
protected JButton createIncreaseButton(int orientation) {
+ @SuppressWarnings("serial") // anonymous class
SynthArrowButton synthArrowButton = new SynthArrowButton(orientation) {
@Override
public boolean contains(int x, int y) {
if (incrGap < 0) { //there is an overlap between the track and button
int width = getWidth();