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