8359053
This commit is contained in:
parent
27c6eebde8
commit
af967ded87
@ -431,7 +431,6 @@ public class AquaInternalFrameUI extends BasicInternalFrameUI implements SwingCo
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("removal")
|
||||
public void mouseReleased(final MouseEvent e) {
|
||||
if (didForwardEvent(e)) return;
|
||||
|
||||
|
@ -91,7 +91,6 @@ public class SwingUtilities3 {
|
||||
* @param rootContainer topmost container. Should be {@code Window}
|
||||
* @param isRequested the value to set vsyncRequested state to
|
||||
*/
|
||||
@SuppressWarnings("removal")
|
||||
public static void setVsyncRequested(Container rootContainer,
|
||||
boolean isRequested) {
|
||||
assert (rootContainer instanceof Window);
|
||||
@ -108,7 +107,6 @@ public class SwingUtilities3 {
|
||||
* @param rootContainer topmost container. Should be Window
|
||||
* @return {@code true} if vsync painting is requested for {@code rootContainer}
|
||||
*/
|
||||
@SuppressWarnings("removal")
|
||||
public static boolean isVsyncRequested(Container rootContainer) {
|
||||
assert (rootContainer instanceof Window);
|
||||
return Boolean.TRUE == vsyncedMap.get(rootContainer);
|
||||
|
@ -58,7 +58,6 @@ import javax.sound.sampled.UnsupportedAudioFileException;
|
||||
* @author Arthur van Hoff, Kara Kytle, Jan Borgersen
|
||||
* @author Florian Bomers
|
||||
*/
|
||||
@SuppressWarnings("removal")
|
||||
public final class JavaSoundAudioClip implements MetaEventListener, LineListener {
|
||||
|
||||
private long lastPlayCall = 0;
|
||||
|
@ -607,7 +607,6 @@ public abstract class JComponent extends Container implements Serializable,
|
||||
* @see #setComponentPopupMenu
|
||||
* @since 1.5
|
||||
*/
|
||||
@SuppressWarnings("removal")
|
||||
public JPopupMenu getComponentPopupMenu() {
|
||||
|
||||
if(!getInheritsPopupMenu()) {
|
||||
@ -2966,7 +2965,7 @@ public abstract class JComponent extends Container implements Serializable,
|
||||
* @param pressed true if the key is pressed
|
||||
* @return true if there is a key binding for <code>e</code>
|
||||
*/
|
||||
@SuppressWarnings({"deprecation", "removal"})
|
||||
@SuppressWarnings("deprecation")
|
||||
boolean processKeyBindings(KeyEvent e, boolean pressed) {
|
||||
if (!SwingUtilities.isValidKeyEventForKeyBindings(e)) {
|
||||
return false;
|
||||
@ -4521,7 +4520,6 @@ public abstract class JComponent extends Container implements Serializable,
|
||||
* return value for this method
|
||||
* @see #getVisibleRect
|
||||
*/
|
||||
@SuppressWarnings("removal")
|
||||
static final void computeVisibleRect(Component c, Rectangle visibleRect) {
|
||||
Container p = c.getParent();
|
||||
Rectangle bounds = c.getBounds();
|
||||
@ -4690,7 +4688,6 @@ public abstract class JComponent extends Container implements Serializable,
|
||||
* or <code>null</code> if not in any container
|
||||
*/
|
||||
@BeanProperty(bound = false)
|
||||
@SuppressWarnings("removal")
|
||||
public Container getTopLevelAncestor() {
|
||||
for(Container p = this; p != null; p = p.getParent()) {
|
||||
if(p instanceof Window) {
|
||||
|
@ -6121,7 +6121,6 @@ public class JTable extends JComponent implements TableModelListener, Scrollable
|
||||
this.focusManager = fm;
|
||||
}
|
||||
|
||||
@SuppressWarnings("removal")
|
||||
public void propertyChange(PropertyChangeEvent ev) {
|
||||
if (!isEditing() || getClientProperty("terminateEditOnFocusLost") != Boolean.TRUE) {
|
||||
return;
|
||||
|
@ -134,7 +134,6 @@ class KeyboardManager {
|
||||
/**
|
||||
* Find the top focusable Window, or InternalFrame
|
||||
*/
|
||||
@SuppressWarnings("removal")
|
||||
private static Container getTopAncestor(JComponent c) {
|
||||
for(Container p = c.getParent(); p != null; p = p.getParent()) {
|
||||
if (p instanceof Window && ((Window)p).isFocusableWindow() ||
|
||||
|
@ -273,7 +273,6 @@ public class PopupFactory {
|
||||
* Obtains the appropriate <code>Popup</code> based on
|
||||
* <code>popupType</code>.
|
||||
*/
|
||||
@SuppressWarnings("removal")
|
||||
private Popup getPopup(Component owner, Component contents,
|
||||
int ownerX, int ownerY, int popupType) {
|
||||
if (GraphicsEnvironment.isHeadless()) {
|
||||
@ -621,7 +620,6 @@ public class PopupFactory {
|
||||
* Returns true if popup can fit the screen and the owner's top parent.
|
||||
* It determines can popup be lightweight or mediumweight.
|
||||
*/
|
||||
@SuppressWarnings("removal")
|
||||
boolean fitsOnScreen() {
|
||||
boolean result = false;
|
||||
Component component = getComponent();
|
||||
@ -784,7 +782,6 @@ public class PopupFactory {
|
||||
recycleLightWeightPopup(this);
|
||||
}
|
||||
|
||||
@SuppressWarnings("removal")
|
||||
public void show() {
|
||||
Container parent = null;
|
||||
|
||||
@ -932,7 +929,6 @@ public class PopupFactory {
|
||||
recycleMediumWeightPopup(this);
|
||||
}
|
||||
|
||||
@SuppressWarnings("removal")
|
||||
public void show() {
|
||||
Component component = getComponent();
|
||||
Container parent = null;
|
||||
|
@ -405,7 +405,6 @@ public class RepaintManager
|
||||
*
|
||||
* @see JComponent#repaint
|
||||
*/
|
||||
@SuppressWarnings("removal")
|
||||
private void addDirtyRegion0(Container c, int x, int y, int w, int h) {
|
||||
/* Special cases we don't have to bother with.
|
||||
*/
|
||||
@ -507,7 +506,6 @@ public class RepaintManager
|
||||
addDirtyRegion0(window, x, y, w, h);
|
||||
}
|
||||
|
||||
@SuppressWarnings("removal")
|
||||
void scheduleHeavyWeightPaints() {
|
||||
Map<Container,Rectangle> hws;
|
||||
|
||||
|
@ -414,7 +414,6 @@ public class SwingUtilities implements SwingConstants
|
||||
* @param p a Point object (converted to the new coordinate system)
|
||||
* @param c a Component object
|
||||
*/
|
||||
@SuppressWarnings("removal")
|
||||
public static void convertPointToScreen(Point p,Component c) {
|
||||
Rectangle b;
|
||||
int x,y;
|
||||
@ -453,7 +452,6 @@ public class SwingUtilities implements SwingConstants
|
||||
* @param p a Point object (converted to the new coordinate system)
|
||||
* @param c a Component object
|
||||
*/
|
||||
@SuppressWarnings("removal")
|
||||
public static void convertPointFromScreen(Point p,Component c) {
|
||||
Rectangle b;
|
||||
int x,y;
|
||||
@ -1653,7 +1651,6 @@ public class SwingUtilities implements SwingConstants
|
||||
* @param c the component
|
||||
* @return the first ancestor of c that's a Window
|
||||
*/
|
||||
@SuppressWarnings("removal")
|
||||
public static Component getRoot(Component c) {
|
||||
for(Component p = c; p != null; p = p.getParent()) {
|
||||
if (p instanceof Window) {
|
||||
@ -1690,7 +1687,6 @@ public class SwingUtilities implements SwingConstants
|
||||
* @return true if a binding has found and processed
|
||||
* @since 1.4
|
||||
*/
|
||||
@SuppressWarnings("removal")
|
||||
public static boolean processKeyBindings(KeyEvent event) {
|
||||
if (event != null) {
|
||||
if (event.isConsumed()) {
|
||||
@ -2204,7 +2200,6 @@ public class SwingUtilities implements SwingConstants
|
||||
* @see java.awt.Component#isVisible()
|
||||
* @since 1.7
|
||||
*/
|
||||
@SuppressWarnings("removal")
|
||||
static Container getValidateRoot(Container c, boolean visibleOnly) {
|
||||
Container root = null;
|
||||
|
||||
|
@ -794,7 +794,6 @@ public final class ToolTipManager extends MouseAdapter implements MouseMotionLis
|
||||
// Returns: 0 no adjust
|
||||
// -1 can't fit
|
||||
// >0 adjust value by amount returned
|
||||
@SuppressWarnings("removal")
|
||||
private int getPopupFitWidth(Rectangle popupRectInScreen, Component invoker){
|
||||
if (invoker != null){
|
||||
Container parent;
|
||||
|
@ -914,7 +914,6 @@ public class BasicPopupMenuUI extends PopupMenuUI {
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("removal")
|
||||
boolean isInPopup(Component src) {
|
||||
for (Component c=src; c!=null; c=c.getParent()) {
|
||||
if (c instanceof Window) {
|
||||
@ -1129,7 +1128,6 @@ public class BasicPopupMenuUI extends PopupMenuUI {
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("removal")
|
||||
public void stateChanged(ChangeEvent ev) {
|
||||
if (!(UIManager.getLookAndFeel() instanceof BasicLookAndFeel)) {
|
||||
uninstall();
|
||||
|
Loading…
x
Reference in New Issue
Block a user