8312165: Fix typos in java.desktop Swing
Co-authored-by: Alexey Ivanov <aivanov@openjdk.org> Reviewed-by: aivanov
This commit is contained in:
parent
25f32f3538
commit
89cb290bb0
@ -1259,7 +1259,7 @@ public class AquaFileChooserUI extends FileChooserUI {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// DataModel for DirectoryComboxbox
|
// DataModel for DirectoryCombobox
|
||||||
//
|
//
|
||||||
protected DirectoryComboBoxModel createDirectoryComboBoxModel(final JFileChooser fc) {
|
protected DirectoryComboBoxModel createDirectoryComboBoxModel(final JFileChooser fc) {
|
||||||
return new DirectoryComboBoxModel();
|
return new DirectoryComboBoxModel();
|
||||||
@ -1368,7 +1368,7 @@ public class AquaFileChooserUI extends FileChooserUI {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// DataModel for Types Comboxbox
|
// DataModel for Types Combobox
|
||||||
//
|
//
|
||||||
protected FilterComboBoxModel createFilterComboBoxModel() {
|
protected FilterComboBoxModel createFilterComboBoxModel() {
|
||||||
return new FilterComboBoxModel();
|
return new FilterComboBoxModel();
|
||||||
@ -1412,9 +1412,9 @@ public class AquaFileChooserUI extends FileChooserUI {
|
|||||||
|
|
||||||
public Object getSelectedItem() {
|
public Object getSelectedItem() {
|
||||||
// Ensure that the current filter is in the list.
|
// Ensure that the current filter is in the list.
|
||||||
// NOTE: we shouldnt' have to do this, since JFileChooser adds
|
// NOTE: we shouldn't have to do this, since JFileChooser adds
|
||||||
// the filter to the choosable filters list when the filter
|
// the filter to the choosable filters list when the filter
|
||||||
// is set. Lets be paranoid just in case someone overrides
|
// is set. Let's be paranoid just in case someone overrides
|
||||||
// setFileFilter in JFileChooser.
|
// setFileFilter in JFileChooser.
|
||||||
FileFilter currentFilter = getFileChooser().getFileFilter();
|
FileFilter currentFilter = getFileChooser().getFileFilter();
|
||||||
boolean found = false;
|
boolean found = false;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2002, 2022, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2002, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -1179,7 +1179,7 @@ class GTKFileChooserUI extends SynthFileChooserUI {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// DataModel for DirectoryComboxbox
|
// DataModel for DirectoryCombobox
|
||||||
//
|
//
|
||||||
protected DirectoryComboBoxModel createDirectoryComboBoxModel(JFileChooser fc) {
|
protected DirectoryComboBoxModel createDirectoryComboBoxModel(JFileChooser fc) {
|
||||||
return new DirectoryComboBoxModel();
|
return new DirectoryComboBoxModel();
|
||||||
@ -1468,9 +1468,9 @@ class GTKFileChooserUI extends SynthFileChooserUI {
|
|||||||
|
|
||||||
public Object getSelectedItem() {
|
public Object getSelectedItem() {
|
||||||
// Ensure that the current filter is in the list.
|
// Ensure that the current filter is in the list.
|
||||||
// NOTE: we shouldnt' have to do this, since JFileChooser adds
|
// NOTE: we shouldn't have to do this, since JFileChooser adds
|
||||||
// the filter to the choosable filters list when the filter
|
// the filter to the choosable filters list when the filter
|
||||||
// is set. Lets be paranoid just in case someone overrides
|
// is set. Let's be paranoid just in case someone overrides
|
||||||
// setFileFilter in JFileChooser.
|
// setFileFilter in JFileChooser.
|
||||||
FileFilter currentFilter = getFileChooser().getFileFilter();
|
FileFilter currentFilter = getFileChooser().getFileFilter();
|
||||||
boolean found = false;
|
boolean found = false;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2002, 2022, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2002, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -775,10 +775,10 @@ class GTKStyle extends SynthStyle implements GTKConstants {
|
|||||||
Object value = getClassSpecificValue(classKey);
|
Object value = getClassSpecificValue(classKey);
|
||||||
if (value != null) {
|
if (value != null) {
|
||||||
//This is a workaround as the "slider-length" property has been
|
//This is a workaround as the "slider-length" property has been
|
||||||
//deprecated for GtkScale from gtk 3.20, so default value of 31
|
//deprecated for GtkScale from gtk 3.20, so the default value of 31
|
||||||
//is used and makes redering of slider wrong. Value 14 is being
|
//is used and makes rendering of the slider wrong. Value 14 is being
|
||||||
//used as default value for Slider.thumbHeight is 14 and making
|
//used as the default value for Slider.thumbHeight is 14 and making
|
||||||
//width 14 as well makes slider thumb render in proper shape
|
//width 14 as well makes the slider thumb render in proper shape
|
||||||
if ("Slider.thumbWidth".equals(key) && value.equals(31)) {
|
if ("Slider.thumbWidth".equals(key) && value.equals(31)) {
|
||||||
return 14;
|
return 14;
|
||||||
}
|
}
|
||||||
@ -1127,7 +1127,7 @@ class GTKStyle extends SynthStyle implements GTKConstants {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* GTKLazyValue is a slimmed down version of <code>ProxyLaxyValue</code>.
|
* GTKLazyValue is a slimmed down version of <code>ProxyLazyValue</code>.
|
||||||
* The code is duplicate so that it can get at the package private
|
* The code is duplicate so that it can get at the package private
|
||||||
* classes in gtk.
|
* classes in gtk.
|
||||||
*/
|
*/
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -216,7 +216,7 @@ public class MotifDesktopPaneUI extends javax.swing.plaf.basic.BasicDesktopPaneU
|
|||||||
|
|
||||||
/* Fix for disappearing icons. If the y value is maxy then this
|
/* Fix for disappearing icons. If the y value is maxy then this
|
||||||
* algorithm would place the icon in a non-displayed cell. Never
|
* algorithm would place the icon in a non-displayed cell. Never
|
||||||
* to be ssen again.*/
|
* to be seen again.*/
|
||||||
y = y >= maxy ? (maxy - 1) : y;
|
y = y >= maxy ? (maxy - 1) : y;
|
||||||
|
|
||||||
/* Compute the offset for the cell we are trying to go in. */
|
/* Compute the offset for the cell we are trying to go in. */
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -762,7 +762,7 @@ public class MotifFileChooserUI extends BasicFileChooserUI {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// DataModel for Types Comboxbox
|
// DataModel for Types Combobox
|
||||||
//
|
//
|
||||||
protected FilterComboBoxModel createFilterComboBoxModel() {
|
protected FilterComboBoxModel createFilterComboBoxModel() {
|
||||||
return new FilterComboBoxModel();
|
return new FilterComboBoxModel();
|
||||||
@ -826,9 +826,9 @@ public class MotifFileChooserUI extends BasicFileChooserUI {
|
|||||||
|
|
||||||
public Object getSelectedItem() {
|
public Object getSelectedItem() {
|
||||||
// Ensure that the current filter is in the list.
|
// Ensure that the current filter is in the list.
|
||||||
// NOTE: we shouldnt' have to do this, since JFileChooser adds
|
// NOTE: we shouldn't have to do this, since JFileChooser adds
|
||||||
// the filter to the choosable filters list when the filter
|
// the filter to the choosable filters list when the filter
|
||||||
// is set. Lets be paranoid just in case someone overrides
|
// is set. Let's be paranoid just in case someone overrides
|
||||||
// setFileFilter in JFileChooser.
|
// setFileFilter in JFileChooser.
|
||||||
FileFilter currentFilter = getFileChooser().getFileFilter();
|
FileFilter currentFilter = getFileChooser().getFileFilter();
|
||||||
boolean found = false;
|
boolean found = false;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2020, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -760,7 +760,7 @@ public class MotifLookAndFeel extends BasicLookAndFeel
|
|||||||
MotifLookAndFeel.class,
|
MotifLookAndFeel.class,
|
||||||
"icons/DesktopIcon.gif"),
|
"icons/DesktopIcon.gif"),
|
||||||
"DesktopIcon.border", null,
|
"DesktopIcon.border", null,
|
||||||
// These are a little odd, MotifInternalFrameUI isntalls em!
|
// These are a little odd, MotifInternalFrameUI installs em!
|
||||||
"DesktopIcon.windowBindings", new Object[]
|
"DesktopIcon.windowBindings", new Object[]
|
||||||
{ "ESCAPE", "hideSystemMenu" },
|
{ "ESCAPE", "hideSystemMenu" },
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2020, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -53,7 +53,7 @@ public class MotifOptionPaneUI extends BasicOptionPaneUI
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates and returns a Container containin the buttons. The buttons
|
* Creates and returns a Container containing the buttons. The buttons
|
||||||
* are created by calling <code>getButtons</code>.
|
* are created by calling <code>getButtons</code>.
|
||||||
*/
|
*/
|
||||||
protected Container createButtonArea() {
|
protected Container createButtonArea() {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2005, 2014, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2005, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -556,7 +556,7 @@ class BufferStrategyPaintManager extends RepaintManager.PaintManager {
|
|||||||
}
|
}
|
||||||
if ((root instanceof RootPaneContainer) &&
|
if ((root instanceof RootPaneContainer) &&
|
||||||
(rootJ instanceof JRootPane)) {
|
(rootJ instanceof JRootPane)) {
|
||||||
// We're in a Swing heavyeight (JFrame/JWindow...), use double
|
// We're in a Swing heavyweight (JFrame/JWindow...), use double
|
||||||
// buffering if double buffering enabled on the JRootPane and
|
// buffering if double buffering enabled on the JRootPane and
|
||||||
// the JRootPane wants true double buffering.
|
// the JRootPane wants true double buffering.
|
||||||
if (rootJ.isDoubleBuffered() &&
|
if (rootJ.isDoubleBuffered() &&
|
||||||
@ -685,12 +685,12 @@ class BufferStrategyPaintManager extends RepaintManager.PaintManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the BufferStartegy. This will return null if
|
* Returns the BufferStrategy. This will return null if
|
||||||
* the BufferStartegy hasn't been created and <code>create</code> is
|
* the BufferStrategy hasn't been created and <code>create</code> is
|
||||||
* false, or if there is a problem in creating the
|
* false, or if there is a problem in creating the
|
||||||
* <code>BufferStartegy</code>.
|
* <code>BufferStrategy</code>.
|
||||||
*
|
*
|
||||||
* @param create If true, and the BufferStartegy is currently null,
|
* @param create If true and the BufferStrategy is currently null,
|
||||||
* one will be created.
|
* one will be created.
|
||||||
*/
|
*/
|
||||||
public BufferStrategy getBufferStrategy(boolean create) {
|
public BufferStrategy getBufferStrategy(boolean create) {
|
||||||
@ -793,7 +793,7 @@ class BufferStrategyPaintManager extends RepaintManager.PaintManager {
|
|||||||
} catch (AWTException e) {
|
} catch (AWTException e) {
|
||||||
// Type is not supported
|
// Type is not supported
|
||||||
if (LOGGER.isLoggable(PlatformLogger.Level.FINER)) {
|
if (LOGGER.isLoggable(PlatformLogger.Level.FINER)) {
|
||||||
LOGGER.finer("createBufferStratety failed",
|
LOGGER.finer("createBufferStrategy failed",
|
||||||
e);
|
e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -805,7 +805,7 @@ class BufferStrategyPaintManager extends RepaintManager.PaintManager {
|
|||||||
} catch (AWTException e) {
|
} catch (AWTException e) {
|
||||||
// Type not supported
|
// Type not supported
|
||||||
if (LOGGER.isLoggable(PlatformLogger.Level.FINER)) {
|
if (LOGGER.isLoggable(PlatformLogger.Level.FINER)) {
|
||||||
LOGGER.finer("createBufferStratety failed",
|
LOGGER.finer("createBufferStrategy failed",
|
||||||
e);
|
e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -95,7 +95,7 @@ public abstract class FocusManager extends DefaultKeyboardFocusManager {
|
|||||||
* <p>
|
* <p>
|
||||||
* If a <code>SecurityManager</code> is installed,
|
* If a <code>SecurityManager</code> is installed,
|
||||||
* the calling thread must be granted the <code>AWTPermission</code>
|
* the calling thread must be granted the <code>AWTPermission</code>
|
||||||
* "replaceKeyboardFocusManager" in order to replace the
|
* "replaceKeyboardFocusManager" in order to replace
|
||||||
* the current <code>KeyboardFocusManager</code>.
|
* the current <code>KeyboardFocusManager</code>.
|
||||||
* If this permission is not granted,
|
* If this permission is not granted,
|
||||||
* this method will throw a <code>SecurityException</code>,
|
* this method will throw a <code>SecurityException</code>,
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2006, 2021, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2006, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -3521,7 +3521,7 @@ public class GroupLayout implements LayoutManager2 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// LinkInfo contains the set of ComponentInfosthat are linked along a
|
// LinkInfo contains the set of ComponentInfos that are linked along a
|
||||||
// particular axis.
|
// particular axis.
|
||||||
private static class LinkInfo {
|
private static class LinkInfo {
|
||||||
private final int axis;
|
private final int axis;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -5050,11 +5050,11 @@ public abstract class JComponent extends Container implements Serializable,
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
JComponent paintingOigin = SwingUtilities.getPaintingOrigin(this);
|
JComponent paintingOrigin = SwingUtilities.getPaintingOrigin(this);
|
||||||
if (paintingOigin != null) {
|
if (paintingOrigin != null) {
|
||||||
Rectangle rectangle = SwingUtilities.convertRectangle(
|
Rectangle rectangle = SwingUtilities.convertRectangle(
|
||||||
c, new Rectangle(x, y, w, h), paintingOigin);
|
c, new Rectangle(x, y, w, h), paintingOrigin);
|
||||||
paintingOigin.paintImmediately(rectangle.x, rectangle.y, rectangle.width, rectangle.height);
|
paintingOrigin.paintImmediately(rectangle.x, rectangle.y, rectangle.width, rectangle.height);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -5510,7 +5510,7 @@ public abstract class JComponent extends Container implements Serializable,
|
|||||||
/**
|
/**
|
||||||
* This is the method that's called after the entire graph
|
* This is the method that's called after the entire graph
|
||||||
* of objects has been read in. It initializes
|
* of objects has been read in. It initializes
|
||||||
* the UI property of all of the copmonents with
|
* the UI property of all of the components with
|
||||||
* <code>SwingUtilities.updateComponentTreeUI</code>.
|
* <code>SwingUtilities.updateComponentTreeUI</code>.
|
||||||
*/
|
*/
|
||||||
public void validateObject() throws InvalidObjectException {
|
public void validateObject() throws InvalidObjectException {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2022, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -1227,7 +1227,7 @@ public class JEditorPane extends JTextComponent {
|
|||||||
*/
|
*/
|
||||||
@SuppressWarnings("deprecation")
|
@SuppressWarnings("deprecation")
|
||||||
public static EditorKit createEditorKitForContentType(String type) {
|
public static EditorKit createEditorKitForContentType(String type) {
|
||||||
Hashtable<String, EditorKit> kitRegistry = getKitRegisty();
|
Hashtable<String, EditorKit> kitRegistry = getKitRegistry();
|
||||||
EditorKit k = kitRegistry.get(type);
|
EditorKit k = kitRegistry.get(type);
|
||||||
if (k == null) {
|
if (k == null) {
|
||||||
// try to dynamically load the support
|
// try to dynamically load the support
|
||||||
@ -1294,7 +1294,7 @@ public class JEditorPane extends JTextComponent {
|
|||||||
} else {
|
} else {
|
||||||
getKitLoaderRegistry().remove(type);
|
getKitLoaderRegistry().remove(type);
|
||||||
}
|
}
|
||||||
getKitRegisty().remove(type);
|
getKitRegistry().remove(type);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -1326,7 +1326,7 @@ public class JEditorPane extends JTextComponent {
|
|||||||
return tmp;
|
return tmp;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static Hashtable<String, EditorKit> getKitRegisty() {
|
private static Hashtable<String, EditorKit> getKitRegistry() {
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
Hashtable<String, EditorKit> ht =
|
Hashtable<String, EditorKit> ht =
|
||||||
(Hashtable)SwingUtilities.appContextGet(kitRegistryKey);
|
(Hashtable)SwingUtilities.appContextGet(kitRegistryKey);
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2022, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -1665,7 +1665,7 @@ public class JFileChooser extends JComponent implements Accessible {
|
|||||||
* @see FileSystemView
|
* @see FileSystemView
|
||||||
*/
|
*/
|
||||||
@BeanProperty(expert = true, description
|
@BeanProperty(expert = true, description
|
||||||
= "Sets the FileSytemView used to get filesystem information.")
|
= "Sets the FileSystemView used to get filesystem information.")
|
||||||
public void setFileSystemView(FileSystemView fsv) {
|
public void setFileSystemView(FileSystemView fsv) {
|
||||||
FileSystemView oldValue = fileSystemView;
|
FileSystemView oldValue = fileSystemView;
|
||||||
fileSystemView = fsv;
|
fileSystemView = fsv;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -465,7 +465,7 @@ public class JLayeredPane extends JComponent implements Accessible {
|
|||||||
* @param c the Component to check
|
* @param c the Component to check
|
||||||
* @return an int giving the component's position, where 0 is the
|
* @return an int giving the component's position, where 0 is the
|
||||||
* topmost position and the highest index value = the count
|
* topmost position and the highest index value = the count
|
||||||
* count of components at that layer, minus 1
|
* of components at that layer minus 1
|
||||||
*
|
*
|
||||||
* @see #getComponentCountInLayer
|
* @see #getComponentCountInLayer
|
||||||
*/
|
*/
|
||||||
@ -529,7 +529,7 @@ public class JLayeredPane extends JComponent implements Accessible {
|
|||||||
curLayer = getLayer(getComponent(i));
|
curLayer = getLayer(getComponent(i));
|
||||||
if(curLayer == layer) {
|
if(curLayer == layer) {
|
||||||
layerCount++;
|
layerCount++;
|
||||||
/// Short-circuit the counting when we have them all
|
// Short-circuit the counting when we have them all
|
||||||
} else if(layerCount > 0 || curLayer < layer) {
|
} else if(layerCount > 0 || curLayer < layer) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -555,7 +555,7 @@ public class JLayeredPane extends JComponent implements Accessible {
|
|||||||
curLayer = getLayer(getComponent(i));
|
curLayer = getLayer(getComponent(i));
|
||||||
if(curLayer == layer) {
|
if(curLayer == layer) {
|
||||||
results[layerCount++] = getComponent(i);
|
results[layerCount++] = getComponent(i);
|
||||||
/// Short-circuit the counting when we have them all
|
// Short-circuit the counting when we have them all
|
||||||
} else if(layerCount > 0 || curLayer < layer) {
|
} else if(layerCount > 0 || curLayer < layer) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -1769,7 +1769,7 @@ public class JList<E> extends JComponent implements Scrollable, Accessible
|
|||||||
* during construction to initialize the list's selection model
|
* during construction to initialize the list's selection model
|
||||||
* property.
|
* property.
|
||||||
*
|
*
|
||||||
* @return a {@code DefaultListSelecitonModel}, used to initialize
|
* @return a {@code DefaultListSelectionModel}, used to initialize
|
||||||
* the list's selection model property during construction
|
* the list's selection model property during construction
|
||||||
* @see #setSelectionModel
|
* @see #setSelectionModel
|
||||||
* @see DefaultListSelectionModel
|
* @see DefaultListSelectionModel
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -362,7 +362,7 @@ public class JMenu extends JMenuItem implements Accessible,MenuElement
|
|||||||
int x;
|
int x;
|
||||||
int y;
|
int y;
|
||||||
JPopupMenu pm = getPopupMenu();
|
JPopupMenu pm = getPopupMenu();
|
||||||
// Figure out the sizes needed to caclulate the menu position
|
// Figure out the sizes needed to calculate the menu position
|
||||||
Dimension s = getSize();
|
Dimension s = getSize();
|
||||||
Dimension pmSize = pm.getSize();
|
Dimension pmSize = pm.getSize();
|
||||||
// For the first time the menu is popped up,
|
// For the first time the menu is popped up,
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -185,8 +185,8 @@ public class JMenuItem extends AbstractButton implements Accessible,MenuElement
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Inititalizes the focusability of the <code>JMenuItem</code>.
|
* Initializes the focusability of the <code>JMenuItem</code>.
|
||||||
* <code>JMenuItem</code>'s are focusable, but subclasses may
|
* <code>JMenuItem</code>'s are non-focusable, but subclasses may
|
||||||
* want to be, this provides them the opportunity to override this
|
* want to be, this provides them the opportunity to override this
|
||||||
* and invoke something else, or nothing at all. Refer to
|
* and invoke something else, or nothing at all. Refer to
|
||||||
* {@link javax.swing.JMenu#initFocusability} for the motivation of
|
* {@link javax.swing.JMenu#initFocusability} for the motivation of
|
||||||
@ -808,7 +808,7 @@ public class JMenuItem extends AbstractButton implements Accessible,MenuElement
|
|||||||
* <code>JMenuItem</code>. For <code>JMenuItem</code>s,
|
* <code>JMenuItem</code>. For <code>JMenuItem</code>s,
|
||||||
* the <code>AccessibleContext</code> takes the form of an
|
* the <code>AccessibleContext</code> takes the form of an
|
||||||
* <code>AccessibleJMenuItem</code>.
|
* <code>AccessibleJMenuItem</code>.
|
||||||
* A new AccessibleJMenuItme instance is created if necessary.
|
* A new <code>AccessibleJMenuItem</code> instance is created if necessary.
|
||||||
*
|
*
|
||||||
* @return an <code>AccessibleJMenuItem</code> that serves as the
|
* @return an <code>AccessibleJMenuItem</code> that serves as the
|
||||||
* <code>AccessibleContext</code> of this <code>JMenuItem</code>
|
* <code>AccessibleContext</code> of this <code>JMenuItem</code>
|
||||||
|
@ -120,7 +120,7 @@ public class JPopupMenu extends JComponent implements Accessible,MenuElement {
|
|||||||
|
|
||||||
/** Bug#4425878-Property javax.swing.adjustPopupLocationToFit introduced */
|
/** Bug#4425878-Property javax.swing.adjustPopupLocationToFit introduced */
|
||||||
@SuppressWarnings("removal")
|
@SuppressWarnings("removal")
|
||||||
static boolean popupPostionFixDisabled =
|
static boolean popupPositionFixDisabled =
|
||||||
java.security.AccessController.doPrivileged(
|
java.security.AccessController.doPrivileged(
|
||||||
new sun.security.action.GetPropertyAction(
|
new sun.security.action.GetPropertyAction(
|
||||||
"javax.swing.adjustPopupLocationToFit","")).equals("false");
|
"javax.swing.adjustPopupLocationToFit","")).equals("false");
|
||||||
@ -342,7 +342,7 @@ public class JPopupMenu extends JComponent implements Accessible,MenuElement {
|
|||||||
Point adjustPopupLocationToFitScreen(int xPosition, int yPosition) {
|
Point adjustPopupLocationToFitScreen(int xPosition, int yPosition) {
|
||||||
Point popupLocation = new Point(xPosition, yPosition);
|
Point popupLocation = new Point(xPosition, yPosition);
|
||||||
|
|
||||||
if(popupPostionFixDisabled == true || GraphicsEnvironment.isHeadless()) {
|
if (popupPositionFixDisabled || GraphicsEnvironment.isHeadless()) {
|
||||||
return popupLocation;
|
return popupLocation;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -361,7 +361,7 @@ public class JSlider extends JComponent implements SwingConstants, Accessible {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* We pass Change events along to the listeners with the
|
* We pass Change events along to the listeners with
|
||||||
* the slider (instead of the model itself) as the event source.
|
* the slider (instead of the model itself) as the event source.
|
||||||
*/
|
*/
|
||||||
private class ModelListener implements ChangeListener, Serializable {
|
private class ModelListener implements ChangeListener, Serializable {
|
||||||
@ -930,7 +930,7 @@ public class JSlider extends JComponent implements SwingConstants, Accessible {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ( increment <= 0 ) {
|
if ( increment <= 0 ) {
|
||||||
throw new IllegalArgumentException( "Label incremement must be > 0" );
|
throw new IllegalArgumentException( "Label increment must be > 0" );
|
||||||
}
|
}
|
||||||
|
|
||||||
class SmartHashtable extends Hashtable<Integer, JComponent> implements PropertyChangeListener {
|
class SmartHashtable extends Hashtable<Integer, JComponent> implements PropertyChangeListener {
|
||||||
@ -1595,7 +1595,7 @@ public class JSlider extends JComponent implements SwingConstants, Accessible {
|
|||||||
if (i < 0 || i > 1) {
|
if (i < 0 || i > 1) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
//0 is increment, 1 is decrrement
|
//0 is increment, 1 is decrement
|
||||||
int delta = ((i > 0) ? -1 : 1);
|
int delta = ((i > 0) ? -1 : 1);
|
||||||
JSlider.this.setValue(oldModelValue + delta);
|
JSlider.this.setValue(oldModelValue + delta);
|
||||||
return true;
|
return true;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -912,7 +912,7 @@ public class JSplitPane extends JComponent implements Accessible
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Removes all the child components from the split pane. Resets the
|
* Removes all the child components from the split pane. Resets the
|
||||||
* <code>leftComonent</code> and <code>rightComponent</code>
|
* <code>leftComponent</code> and <code>rightComponent</code>
|
||||||
* instance variables.
|
* instance variables.
|
||||||
*/
|
*/
|
||||||
public void removeAll() {
|
public void removeAll() {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -3209,7 +3209,7 @@ public class JTable extends JComponent implements TableModelListener, Scrollable
|
|||||||
// would have resulted in the layout the user has chosen.
|
// would have resulted in the layout the user has chosen.
|
||||||
// Thereafter, during window resizing etc. it has to work off
|
// Thereafter, during window resizing etc. it has to work off
|
||||||
// the preferred sizes as usual - the idea being that, whatever
|
// the preferred sizes as usual - the idea being that, whatever
|
||||||
// the user does, everything stays in synch and things don't jump
|
// the user does, everything stays in sync and things don't jump
|
||||||
// around.
|
// around.
|
||||||
setWidthsFromPreferredWidths(true);
|
setWidthsFromPreferredWidths(true);
|
||||||
}
|
}
|
||||||
@ -4036,7 +4036,7 @@ public class JTable extends JComponent implements TableModelListener, Scrollable
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Inovked when either the table has changed or the sorter has changed
|
* Invoked when either the table has changed or the sorter has changed
|
||||||
* and after the sorter has been notified. If necessary this will
|
* and after the sorter has been notified. If necessary this will
|
||||||
* reapply the selection and variable row heights.
|
* reapply the selection and variable row heights.
|
||||||
*/
|
*/
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -1573,7 +1573,7 @@ public class JTree extends JComponent implements Scrollable, Accessible
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns <code>isEditable</code>. This is invoked from the UI before
|
* Returns <code>isEditable</code>. This is invoked from the UI before
|
||||||
* editing begins to insure that the given path can be edited. This
|
* editing begins to ensure that the given path can be edited. This
|
||||||
* is provided as an entry point for subclassers to add filtered
|
* is provided as an entry point for subclassers to add filtered
|
||||||
* editing without having to resort to creating a new editor.
|
* editing without having to resort to creating a new editor.
|
||||||
*
|
*
|
||||||
@ -3104,7 +3104,7 @@ public class JTree extends JComponent implements Scrollable, Accessible
|
|||||||
}
|
}
|
||||||
prefix = prefix.toUpperCase();
|
prefix = prefix.toUpperCase();
|
||||||
|
|
||||||
// start search from the next/previous element froom the
|
// start search from the next/previous element of the
|
||||||
// selected element
|
// selected element
|
||||||
int increment = (bias == Position.Bias.Forward) ? 1 : -1;
|
int increment = (bias == Position.Bias.Forward) ? 1 : -1;
|
||||||
int row = startingRow;
|
int row = startingRow;
|
||||||
|
@ -537,8 +537,8 @@ public class PopupFactory {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* As we recycle the <code>Window</code>, we don't want to dispose it,
|
* As we recycle the <code>Window</code>, we don't want to dispose of it,
|
||||||
* thus this method does nothing, instead use <code>_dipose</code>
|
* thus this method does nothing, instead use <code>_dispose</code>
|
||||||
* which will handle the disposing.
|
* which will handle the disposing.
|
||||||
*/
|
*/
|
||||||
void dispose() {
|
void dispose() {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -432,7 +432,7 @@ public class ProgressMonitor implements Accessible
|
|||||||
/**
|
/**
|
||||||
* Returns the amount of time it will take for the popup to appear.
|
* Returns the amount of time it will take for the popup to appear.
|
||||||
*
|
*
|
||||||
* @return the amont of time in milliseconds it will take for the
|
* @return the amount of time in milliseconds it will take for the
|
||||||
* popup to appear
|
* popup to appear
|
||||||
* @see #setMillisToPopup
|
* @see #setMillisToPopup
|
||||||
*/
|
*/
|
||||||
@ -527,7 +527,7 @@ public class ProgressMonitor implements Accessible
|
|||||||
* JLabel
|
* JLabel
|
||||||
* JProgressBar
|
* JProgressBar
|
||||||
*
|
*
|
||||||
* The AccessibleProgessMonitor accessibility hierarchy is:
|
* The AccessibleProgressMonitor accessibility hierarchy is:
|
||||||
* AccessibleJDialog
|
* AccessibleJDialog
|
||||||
* AccessibleProgressMonitor
|
* AccessibleProgressMonitor
|
||||||
* AccessibleJLabel
|
* AccessibleJLabel
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -1865,7 +1865,7 @@ public class RepaintManager
|
|||||||
* Runnable used to process all repaint/revalidate requests.
|
* Runnable used to process all repaint/revalidate requests.
|
||||||
*/
|
*/
|
||||||
private final class ProcessingRunnable implements Runnable {
|
private final class ProcessingRunnable implements Runnable {
|
||||||
// If true, we're wainting on the EventQueue.
|
// If true, we're waiting on the EventQueue.
|
||||||
private boolean pending;
|
private boolean pending;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2000, 2021, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2000, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -281,8 +281,8 @@ public class SortingFocusTraversalPolicy
|
|||||||
throw new IllegalArgumentException("aContainer is not a focus cycle root of aComponent");
|
throw new IllegalArgumentException("aContainer is not a focus cycle root of aComponent");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Before all the ckecks below we first see if it's an FTP provider or a focus cycle root.
|
// Before all the checks below we first see if it's an FTP provider or a focus cycle root.
|
||||||
// If it's the case just go down cycle (if it's set to "implicit").
|
// If it's the case, just go down cycle (if it's set to "implicit").
|
||||||
Component comp = getComponentDownCycle(aComponent, FORWARD_TRAVERSAL);
|
Component comp = getComponentDownCycle(aComponent, FORWARD_TRAVERSAL);
|
||||||
if (comp != null) {
|
if (comp != null) {
|
||||||
return comp;
|
return comp;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2000, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -69,7 +69,7 @@ public class SpinnerListModel extends AbstractSpinnerModel implements Serializab
|
|||||||
* The initial value (<i>current element</i>)
|
* The initial value (<i>current element</i>)
|
||||||
* of the model will be <code>values.get(0)</code>.
|
* of the model will be <code>values.get(0)</code>.
|
||||||
* If <code>values</code> is <code>null</code> or has zero
|
* If <code>values</code> is <code>null</code> or has zero
|
||||||
* size, an <code>IllegalArugmentException</code> is thrown.
|
* size, an <code>IllegalArgumentException</code> is thrown.
|
||||||
*
|
*
|
||||||
* @param values the sequence this model represents
|
* @param values the sequence this model represents
|
||||||
* @throws IllegalArgumentException if <code>values</code> is
|
* @throws IllegalArgumentException if <code>values</code> is
|
||||||
|
@ -248,8 +248,8 @@ public abstract class SwingWorker<T, V> implements RunnableFuture<T> {
|
|||||||
private volatile StateValue state;
|
private volatile StateValue state;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* everything is run inside this FutureTask. Also it is used as
|
* Everything is run inside this FutureTask. Also it is used as
|
||||||
* a delegatee for the Future API.
|
* a delegate for the Future API.
|
||||||
*/
|
*/
|
||||||
private final FutureTask<T> future;
|
private final FutureTask<T> future;
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -220,7 +220,7 @@ public final class ToolTipManager extends MouseAdapter implements MouseMotionLis
|
|||||||
/**
|
/**
|
||||||
* Returns the reshow delay property.
|
* Returns the reshow delay property.
|
||||||
*
|
*
|
||||||
* @return reshown delay property
|
* @return reshow delay property
|
||||||
* @see #setReshowDelay
|
* @see #setReshowDelay
|
||||||
*/
|
*/
|
||||||
public int getReshowDelay() {
|
public int getReshowDelay() {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -1372,8 +1372,8 @@ public class UIDefaults extends Hashtable<Object,Object>
|
|||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
String composeKey(String key, int reduce, String sufix) {
|
String composeKey(String key, int reduce, String suffix) {
|
||||||
return key.substring(0, key.length() - reduce) + sufix;
|
return key.substring(0, key.length() - reduce) + suffix;
|
||||||
}
|
}
|
||||||
|
|
||||||
String getTextFromProperty(String text) {
|
String getTextFromProperty(String text) {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1998, 2014, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1998, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -44,7 +44,7 @@ public interface InternalFrameListener extends EventListener {
|
|||||||
* Invoked when a internal frame has been opened.
|
* Invoked when a internal frame has been opened.
|
||||||
*
|
*
|
||||||
* @param e an {@code InternalFrameEvent} with information about the
|
* @param e an {@code InternalFrameEvent} with information about the
|
||||||
* {@code JInteralFrame} that originated the event
|
* {@code JInternalFrame} that originated the event
|
||||||
* @see javax.swing.JInternalFrame#show
|
* @see javax.swing.JInternalFrame#show
|
||||||
*/
|
*/
|
||||||
public void internalFrameOpened(InternalFrameEvent e);
|
public void internalFrameOpened(InternalFrameEvent e);
|
||||||
@ -54,7 +54,7 @@ public interface InternalFrameListener extends EventListener {
|
|||||||
* The close operation can be overridden at this point.
|
* The close operation can be overridden at this point.
|
||||||
*
|
*
|
||||||
* @param e an {@code InternalFrameEvent} with information about the
|
* @param e an {@code InternalFrameEvent} with information about the
|
||||||
* {@code JInteralFrame} that originated the event
|
* {@code JInternalFrame} that originated the event
|
||||||
* @see javax.swing.JInternalFrame#setDefaultCloseOperation
|
* @see javax.swing.JInternalFrame#setDefaultCloseOperation
|
||||||
*/
|
*/
|
||||||
public void internalFrameClosing(InternalFrameEvent e);
|
public void internalFrameClosing(InternalFrameEvent e);
|
||||||
@ -63,7 +63,7 @@ public interface InternalFrameListener extends EventListener {
|
|||||||
* Invoked when an internal frame has been closed.
|
* Invoked when an internal frame has been closed.
|
||||||
*
|
*
|
||||||
* @param e an {@code InternalFrameEvent} with information about the
|
* @param e an {@code InternalFrameEvent} with information about the
|
||||||
* {@code JInteralFrame} that originated the event
|
* {@code JInternalFrame} that originated the event
|
||||||
* @see javax.swing.JInternalFrame#setClosed
|
* @see javax.swing.JInternalFrame#setClosed
|
||||||
*/
|
*/
|
||||||
public void internalFrameClosed(InternalFrameEvent e);
|
public void internalFrameClosed(InternalFrameEvent e);
|
||||||
@ -72,7 +72,7 @@ public interface InternalFrameListener extends EventListener {
|
|||||||
* Invoked when an internal frame is iconified.
|
* Invoked when an internal frame is iconified.
|
||||||
*
|
*
|
||||||
* @param e an {@code InternalFrameEvent} with information about the
|
* @param e an {@code InternalFrameEvent} with information about the
|
||||||
* {@code JInteralFrame} that originated the event
|
* {@code JInternalFrame} that originated the event
|
||||||
* @see javax.swing.JInternalFrame#setIcon
|
* @see javax.swing.JInternalFrame#setIcon
|
||||||
*/
|
*/
|
||||||
public void internalFrameIconified(InternalFrameEvent e);
|
public void internalFrameIconified(InternalFrameEvent e);
|
||||||
@ -81,7 +81,7 @@ public interface InternalFrameListener extends EventListener {
|
|||||||
* Invoked when an internal frame is de-iconified.
|
* Invoked when an internal frame is de-iconified.
|
||||||
*
|
*
|
||||||
* @param e an {@code InternalFrameEvent} with information about the
|
* @param e an {@code InternalFrameEvent} with information about the
|
||||||
* {@code JInteralFrame} that originated the event
|
* {@code JInternalFrame} that originated the event
|
||||||
* @see javax.swing.JInternalFrame#setIcon
|
* @see javax.swing.JInternalFrame#setIcon
|
||||||
*/
|
*/
|
||||||
public void internalFrameDeiconified(InternalFrameEvent e);
|
public void internalFrameDeiconified(InternalFrameEvent e);
|
||||||
@ -90,7 +90,7 @@ public interface InternalFrameListener extends EventListener {
|
|||||||
* Invoked when an internal frame is activated.
|
* Invoked when an internal frame is activated.
|
||||||
*
|
*
|
||||||
* @param e an {@code InternalFrameEvent} with information about the
|
* @param e an {@code InternalFrameEvent} with information about the
|
||||||
* {@code JInteralFrame} that originated the event
|
* {@code JInternalFrame} that originated the event
|
||||||
* @see javax.swing.JInternalFrame#setSelected
|
* @see javax.swing.JInternalFrame#setSelected
|
||||||
*/
|
*/
|
||||||
public void internalFrameActivated(InternalFrameEvent e);
|
public void internalFrameActivated(InternalFrameEvent e);
|
||||||
@ -99,7 +99,7 @@ public interface InternalFrameListener extends EventListener {
|
|||||||
* Invoked when an internal frame is de-activated.
|
* Invoked when an internal frame is de-activated.
|
||||||
*
|
*
|
||||||
* @param e an {@code InternalFrameEvent} with information about the
|
* @param e an {@code InternalFrameEvent} with information about the
|
||||||
* {@code JInteralFrame} that originated the event
|
* {@code JInternalFrame} that originated the event
|
||||||
* @see javax.swing.JInternalFrame#setSelected
|
* @see javax.swing.JInternalFrame#setSelected
|
||||||
*/
|
*/
|
||||||
public void internalFrameDeactivated(InternalFrameEvent e);
|
public void internalFrameDeactivated(InternalFrameEvent e);
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -81,7 +81,7 @@ public class TreeModelEvent extends EventObject {
|
|||||||
* starting at the lowest index and working towards the highest. Accumulate
|
* starting at the lowest index and working towards the highest. Accumulate
|
||||||
* a Vector of <code>Integer</code> objects that specify the
|
* a Vector of <code>Integer</code> objects that specify the
|
||||||
* insert-locations as you go, then convert the Vector to an
|
* insert-locations as you go, then convert the Vector to an
|
||||||
* array of <code>int</code> to create the event. When the postition-index
|
* array of <code>int</code> to create the event. When the position-index
|
||||||
* equals zero, the node is inserted at the beginning of the list. When the
|
* equals zero, the node is inserted at the beginning of the list. When the
|
||||||
* position index equals the size of the list, the node is "inserted" at
|
* position index equals the size of the list, the node is "inserted" at
|
||||||
* (appended to) the end of the list.
|
* (appended to) the end of the list.
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -112,7 +112,7 @@ public class TreeSelectionEvent extends EventObject
|
|||||||
/**
|
/**
|
||||||
* Returns the paths that have been added or removed from the selection.
|
* Returns the paths that have been added or removed from the selection.
|
||||||
*
|
*
|
||||||
* @return copy of the array of {@code TreePath} obects for this event.
|
* @return copy of the array of {@code TreePath} objects for this event.
|
||||||
*/
|
*/
|
||||||
public TreePath[] getPaths()
|
public TreePath[] getPaths()
|
||||||
{
|
{
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -172,7 +172,7 @@ public class BorderUIResource implements Border, UIResource, Serializable
|
|||||||
/**
|
/**
|
||||||
* Constructs an {@code EmptyBorderUIResource}.
|
* Constructs an {@code EmptyBorderUIResource}.
|
||||||
* @param insets the insets of the border
|
* @param insets the insets of the border
|
||||||
* @throws NullPointerException if the spcecified {@code insets}
|
* @throws NullPointerException if the specified {@code insets}
|
||||||
* is {@code null}
|
* is {@code null}
|
||||||
*/
|
*/
|
||||||
@ConstructorProperties({"borderInsets"})
|
@ConstructorProperties({"borderInsets"})
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -226,7 +226,7 @@ public class BasicBorders {
|
|||||||
g.translate(x, y);
|
g.translate(x, y);
|
||||||
|
|
||||||
if (model.isPressed() && model.isArmed() || model.isSelected()) {
|
if (model.isPressed() && model.isArmed() || model.isSelected()) {
|
||||||
// Draw the pressd button
|
// Draw the pressed button
|
||||||
g.setColor(shade);
|
g.setColor(shade);
|
||||||
g.drawRect(0, 0, w-1, h-1);
|
g.drawRect(0, 0, w-1, h-1);
|
||||||
g.setColor(lightHighlight);
|
g.setColor(lightHighlight);
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -423,9 +423,9 @@ public class BasicInternalFrameUI extends InternalFrameUI
|
|||||||
* and adds it to the frame.
|
* and adds it to the frame.
|
||||||
* Reverse process for the <code>currentPane</code>.
|
* Reverse process for the <code>currentPane</code>.
|
||||||
*
|
*
|
||||||
* @param currentPane this {@code Jcomponent} is the current pane being
|
* @param currentPane this {@code JComponent} is the current pane being
|
||||||
* viewed that has mouse handlers installed
|
* viewed that has mouse handlers installed
|
||||||
* @param newPane this {@code Jcomponent} is the pane which will be added
|
* @param newPane this {@code JComponent} is the pane which will be added
|
||||||
* and have mouse handlers installed
|
* and have mouse handlers installed
|
||||||
*/
|
*/
|
||||||
protected void replacePane(JComponent currentPane, JComponent newPane) {
|
protected void replacePane(JComponent currentPane, JComponent newPane) {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -363,7 +363,7 @@ public class BasicListUI extends ListUI
|
|||||||
|
|
||||||
for (int colCounter = startColumn; colCounter <= endColumn;
|
for (int colCounter = startColumn; colCounter <= endColumn;
|
||||||
colCounter++) {
|
colCounter++) {
|
||||||
// And then how many rows in this columnn
|
// And then how many rows in this column
|
||||||
int row = convertLocationToRowInColumn(paintBounds.y, colCounter);
|
int row = convertLocationToRowInColumn(paintBounds.y, colCounter);
|
||||||
int rowCount = getRowCount(colCounter);
|
int rowCount = getRowCount(colCounter);
|
||||||
int index = getModelIndex(colCounter, row);
|
int index = getModelIndex(colCounter, row);
|
||||||
@ -2237,7 +2237,7 @@ public class BasicListUI extends ListUI
|
|||||||
}
|
}
|
||||||
Rectangle cellBounds = list.getCellBounds(index, index);
|
Rectangle cellBounds = list.getCellBounds(index, index);
|
||||||
// go one cell down if first visible cell doesn't fit
|
// go one cell down if first visible cell doesn't fit
|
||||||
// into adjasted visible rectangle
|
// into adjusted visible rectangle
|
||||||
if (cellBounds != null && cellBounds.y < visRect.y) {
|
if (cellBounds != null && cellBounds.y < visRect.y) {
|
||||||
p.y = cellBounds.y + cellBounds.height;
|
p.y = cellBounds.y + cellBounds.height;
|
||||||
index = list.locationToIndex(p);
|
index = list.locationToIndex(p);
|
||||||
@ -2290,7 +2290,7 @@ public class BasicListUI extends ListUI
|
|||||||
}
|
}
|
||||||
cellBounds = list.getCellBounds(index, index);
|
cellBounds = list.getCellBounds(index, index);
|
||||||
// go one cell up if last visible cell doesn't fit
|
// go one cell up if last visible cell doesn't fit
|
||||||
// into adjasted visible rectangle
|
// into adjusted visible rectangle
|
||||||
if (cellBounds != null &&
|
if (cellBounds != null &&
|
||||||
cellBounds.y + cellBounds.height >
|
cellBounds.y + cellBounds.height >
|
||||||
visRect.y + visRect.height)
|
visRect.y + visRect.height)
|
||||||
|
@ -219,7 +219,7 @@ public abstract class BasicLookAndFeel extends LookAndFeel implements Serializab
|
|||||||
if (disposer != null) {
|
if (disposer != null) {
|
||||||
// Note that we're likely calling removePropertyChangeListener()
|
// Note that we're likely calling removePropertyChangeListener()
|
||||||
// during the course of AppContext.firePropertyChange().
|
// during the course of AppContext.firePropertyChange().
|
||||||
// However, EventListenerAggreggate has code to safely modify
|
// However, EventListenerAggregate has code to safely modify
|
||||||
// the list under such circumstances.
|
// the list under such circumstances.
|
||||||
context.removePropertyChangeListener(AppContext.GUI_DISPOSED,
|
context.removePropertyChangeListener(AppContext.GUI_DISPOSED,
|
||||||
disposer);
|
disposer);
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2022, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -1026,8 +1026,8 @@ public class BasicPopupMenuUI extends PopupMenuUI {
|
|||||||
void removeItems() {
|
void removeItems() {
|
||||||
if (lastFocused != null) {
|
if (lastFocused != null) {
|
||||||
if(!lastFocused.requestFocusInWindow()) {
|
if(!lastFocused.requestFocusInWindow()) {
|
||||||
// Workarounr for 4810575.
|
// Workaround for 4810575.
|
||||||
// If lastFocused is not in currently focused window
|
// If lastFocused is not in currently focused window,
|
||||||
// requestFocusInWindow will fail. In this case we must
|
// requestFocusInWindow will fail. In this case we must
|
||||||
// request focus by requestFocus() if it was not
|
// request focus by requestFocus() if it was not
|
||||||
// transferred from our popup.
|
// transferred from our popup.
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -913,7 +913,7 @@ public class BasicProgressBarUI extends ProgressBarUI {
|
|||||||
// there is more than enough room in the progress bar
|
// there is more than enough room in the progress bar
|
||||||
// for everything.
|
// for everything.
|
||||||
// This does have a strange dependency on
|
// This does have a strange dependency on
|
||||||
// getStringPlacememnt() in a funny way.
|
// getStringPlacement() in a funny way.
|
||||||
int stringHeight = fontSizer.getHeight() +
|
int stringHeight = fontSizer.getHeight() +
|
||||||
fontSizer.getDescent();
|
fontSizer.getDescent();
|
||||||
if (stringHeight > size.height) {
|
if (stringHeight > size.height) {
|
||||||
@ -980,7 +980,7 @@ public class BasicProgressBarUI extends ProgressBarUI {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the number of frames for the complete animation loop
|
* Returns the number of frames for the complete animation loop
|
||||||
* used by an indeterminate JProgessBar. The progress chunk will go
|
* used by an indeterminate JProgressBar. The progress chunk will go
|
||||||
* from one end to the other and back during the entire loop. This
|
* from one end to the other and back during the entire loop. This
|
||||||
* visual behavior may be changed by subclasses in other Look and Feels.
|
* visual behavior may be changed by subclasses in other Look and Feels.
|
||||||
*
|
*
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -370,7 +370,7 @@ public class BasicScrollPaneUI
|
|||||||
} else {
|
} else {
|
||||||
/* The following line can't handle a small value of
|
/* The following line can't handle a small value of
|
||||||
* viewPosition.x like Integer.MIN_VALUE correctly
|
* viewPosition.x like Integer.MIN_VALUE correctly
|
||||||
* because (max - extent - viewPositoiin.x) causes
|
* because (max - extent - viewPosition.x) causes
|
||||||
* an overflow. As a result, value becomes zero.
|
* an overflow. As a result, value becomes zero.
|
||||||
* (e.g. setViewPosition(Integer.MAX_VALUE, ...)
|
* (e.g. setViewPosition(Integer.MAX_VALUE, ...)
|
||||||
* in a user program causes a overflow.
|
* in a user program causes a overflow.
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -970,7 +970,7 @@ public class BasicSplitPaneDivider extends Container
|
|||||||
newY = Math.min(maxX, Math.max(minX, newY - offset));
|
newY = Math.min(maxX, Math.max(minX, newY - offset));
|
||||||
return newY;
|
return newY;
|
||||||
}
|
}
|
||||||
} // End of BasicSplitPaneDividier.VerticalDragController
|
} // End of BasicSplitPaneDivider.VerticalDragController
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -1118,7 +1118,7 @@ public class BasicSplitPaneDivider extends Container
|
|||||||
int newLoc;
|
int newLoc;
|
||||||
|
|
||||||
// We use the location from the UI directly, as the location the
|
// We use the location from the UI directly, as the location the
|
||||||
// JSplitPane itself maintains is not necessarly correct.
|
// JSplitPane itself maintains is not necessarily correct.
|
||||||
if (toMinimum) {
|
if (toMinimum) {
|
||||||
if (orientation == JSplitPane.VERTICAL_SPLIT) {
|
if (orientation == JSplitPane.VERTICAL_SPLIT) {
|
||||||
if (currentLoc >= (splitPane.getHeight() -
|
if (currentLoc >= (splitPane.getHeight() -
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2022, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -616,7 +616,7 @@ public class BasicTabbedPaneUI extends TabbedPaneUI implements SwingConstants {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Reloads the mnemonics. This should be invoked when a memonic changes,
|
* Reloads the mnemonics. This should be invoked when a mnemonic changes,
|
||||||
* when the title of a mnemonic changes, or when tabs are added/removed.
|
* when the title of a mnemonic changes, or when tabs are added/removed.
|
||||||
*/
|
*/
|
||||||
private void updateMnemonics() {
|
private void updateMnemonics() {
|
||||||
|
@ -206,7 +206,7 @@ public class BasicTableUI extends TableUI
|
|||||||
boolean inSelection) {
|
boolean inSelection) {
|
||||||
super(name);
|
super(name);
|
||||||
|
|
||||||
// Actions spcifying true for "inSelection" are
|
// Actions specifying true for "inSelection" are
|
||||||
// fairly sensitive to bad parameter values. They require
|
// fairly sensitive to bad parameter values. They require
|
||||||
// that one of dx and dy be 0 and the other be -1 or 1.
|
// that one of dx and dy be 0 and the other be -1 or 1.
|
||||||
// Bogus parameter values could cause an infinite loop.
|
// Bogus parameter values could cause an infinite loop.
|
||||||
@ -526,7 +526,7 @@ public class BasicTableUI extends TableUI
|
|||||||
// for the focus regardless of who owns the focus at the
|
// for the focus regardless of who owns the focus at the
|
||||||
// time the call to requestFocus() is made. The optimisation
|
// time the call to requestFocus() is made. The optimisation
|
||||||
// to ignore the call to requestFocus() when the component
|
// to ignore the call to requestFocus() when the component
|
||||||
// already has focus may ligitimately be made as the
|
// already has focus may legitimately be made as the
|
||||||
// request focus event is dequeued, not before.
|
// request focus event is dequeued, not before.
|
||||||
|
|
||||||
// boolean wasEditingWithFocus = table.isEditing() &&
|
// boolean wasEditingWithFocus = table.isEditing() &&
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2019, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -222,7 +222,7 @@ public class BasicToolTipUI extends ToolTipUI
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Invoked when the <code>JCompoment</code> associated with the
|
* Invoked when the <code>JComponent</code> associated with the
|
||||||
* <code>JToolTip</code> has changed, or at initialization time. This
|
* <code>JToolTip</code> has changed, or at initialization time. This
|
||||||
* should update any state dependent upon the <code>JComponent</code>.
|
* should update any state dependent upon the <code>JComponent</code>.
|
||||||
*
|
*
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -168,7 +168,7 @@ public class BasicTreeUI extends TreeUI
|
|||||||
/** Set to true if the editor has a different size than the renderer. */
|
/** Set to true if the editor has a different size than the renderer. */
|
||||||
protected boolean editorHasDifferentSize;
|
protected boolean editorHasDifferentSize;
|
||||||
|
|
||||||
/** Row correspondin to lead path. */
|
/** Row corresponding to lead path. */
|
||||||
private int leadRow;
|
private int leadRow;
|
||||||
/** If true, the property change event for LEAD_SELECTION_PATH_PROPERTY,
|
/** If true, the property change event for LEAD_SELECTION_PATH_PROPERTY,
|
||||||
* or ANCHOR_SELECTION_PATH_PROPERTY will not generate a repaint. */
|
* or ANCHOR_SELECTION_PATH_PROPERTY will not generate a repaint. */
|
||||||
@ -984,7 +984,7 @@ public class BasicTreeUI extends TreeUI
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Intalls the subcomponents of the tree, which is the renderer pane.
|
* Installs the subcomponents of the tree, which is the renderer pane.
|
||||||
*/
|
*/
|
||||||
protected void installComponents() {
|
protected void installComponents() {
|
||||||
if ((rendererPane = createCellRendererPane()) != null) {
|
if ((rendererPane = createCellRendererPane()) != null) {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1998, 2021, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1998, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -405,21 +405,21 @@ public class DefaultMetalTheme extends MetalTheme {
|
|||||||
*/
|
*/
|
||||||
private static class WindowsFontDelegate extends FontDelegate {
|
private static class WindowsFontDelegate extends FontDelegate {
|
||||||
private MetalFontDesktopProperty[] props;
|
private MetalFontDesktopProperty[] props;
|
||||||
private boolean[] checkedPriviledged;
|
private boolean[] checkedPrivileged;
|
||||||
|
|
||||||
public WindowsFontDelegate() {
|
public WindowsFontDelegate() {
|
||||||
props = new MetalFontDesktopProperty[6];
|
props = new MetalFontDesktopProperty[6];
|
||||||
checkedPriviledged = new boolean[6];
|
checkedPrivileged = new boolean[6];
|
||||||
}
|
}
|
||||||
|
|
||||||
public FontUIResource getFont(int type) {
|
public FontUIResource getFont(int type) {
|
||||||
if (fonts[type] != null) {
|
if (fonts[type] != null) {
|
||||||
return fonts[type];
|
return fonts[type];
|
||||||
}
|
}
|
||||||
if (!checkedPriviledged[type]) {
|
if (!checkedPrivileged[type]) {
|
||||||
Font f = getPrivilegedFont(type);
|
Font f = getPrivilegedFont(type);
|
||||||
|
|
||||||
checkedPriviledged[type] = true;
|
checkedPrivileged[type] = true;
|
||||||
if (f != null) {
|
if (f != null) {
|
||||||
fonts[type] = new FontUIResource(f);
|
fonts[type] = new FontUIResource(f);
|
||||||
return fonts[type];
|
return fonts[type];
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1998, 2014, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1998, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -54,7 +54,7 @@ import java.io.Serializable;
|
|||||||
@SuppressWarnings("serial") // Same-version serialization only
|
@SuppressWarnings("serial") // Same-version serialization only
|
||||||
public class MetalCheckBoxUI extends MetalRadioButtonUI {
|
public class MetalCheckBoxUI extends MetalRadioButtonUI {
|
||||||
|
|
||||||
// NOTE: MetalCheckBoxUI inherts from MetalRadioButtonUI instead
|
// NOTE: MetalCheckBoxUI inherits from MetalRadioButtonUI instead
|
||||||
// of BasicCheckBoxUI because we want to pick up all the
|
// of BasicCheckBoxUI because we want to pick up all the
|
||||||
// painting changes made in MetalRadioButtonUI.
|
// painting changes made in MetalRadioButtonUI.
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1998, 2014, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1998, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -338,10 +338,10 @@ public class MetalComboBoxUI extends BasicComboBoxUI {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// These two methods were overloaded and made public. This was probably a
|
// These two methods were overridden and made public. This was probably
|
||||||
// mistake in the implementation. The functionality that they used to
|
// a mistake in the implementation. The functionality that they used to
|
||||||
// provide is no longer necessary and should be removed. However,
|
// provide is no longer necessary and should be removed. However,
|
||||||
// removing them will create an uncompatible API change.
|
// removing them will create an incompatible API change.
|
||||||
|
|
||||||
public void configureEditor() {
|
public void configureEditor() {
|
||||||
super.configureEditor();
|
super.configureEditor();
|
||||||
@ -410,10 +410,10 @@ public class MetalComboBoxUI extends BasicComboBoxUI {
|
|||||||
super( cBox );
|
super( cBox );
|
||||||
}
|
}
|
||||||
|
|
||||||
// This method was overloaded and made public. This was probably
|
// This method was overridden and made public. This was probably
|
||||||
// mistake in the implementation. The functionality that they used to
|
// a mistake in the implementation. The functionality that it used to
|
||||||
// provide is no longer necessary and should be removed. However,
|
// provide is no longer necessary and should be removed. However,
|
||||||
// removing them will create an uncompatible API change.
|
// removing it will create an incompatible API change.
|
||||||
|
|
||||||
public void delegateFocus(MouseEvent e) {
|
public void delegateFocus(MouseEvent e) {
|
||||||
super.delegateFocus(e);
|
super.delegateFocus(e);
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1998, 2003, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1998, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -126,7 +126,7 @@ public class MetalDesktopIconUI extends BasicDesktopIconUI
|
|||||||
}
|
}
|
||||||
|
|
||||||
public Dimension getMinimumSize(JComponent c) {
|
public Dimension getMinimumSize(JComponent c) {
|
||||||
// For the metal desktop icon we will use the layout maanger to
|
// For the metal desktop icon we will use the layout manager to
|
||||||
// determine the correct height of the component, but we want to keep
|
// determine the correct height of the component, but we want to keep
|
||||||
// the width consistent according to the jlf spec.
|
// the width consistent according to the jlf spec.
|
||||||
return new Dimension(width,
|
return new Dimension(width,
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1998, 2022, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1998, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -1197,9 +1197,9 @@ public class MetalFileChooserUI extends BasicFileChooserUI {
|
|||||||
|
|
||||||
public Object getSelectedItem() {
|
public Object getSelectedItem() {
|
||||||
// Ensure that the current filter is in the list.
|
// Ensure that the current filter is in the list.
|
||||||
// NOTE: we shouldnt' have to do this, since JFileChooser adds
|
// NOTE: we shouldn't have to do this, since JFileChooser adds
|
||||||
// the filter to the choosable filters list when the filter
|
// the filter to the choosable filters list when the filter
|
||||||
// is set. Lets be paranoid just in case someone overrides
|
// is set. Let's be paranoid just in case someone overrides
|
||||||
// setFileFilter in JFileChooser.
|
// setFileFilter in JFileChooser.
|
||||||
FileFilter currentFilter = getFileChooser().getFileFilter();
|
FileFilter currentFilter = getFileChooser().getFileFilter();
|
||||||
boolean found = false;
|
boolean found = false;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1998, 2014, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1998, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -332,7 +332,7 @@ class MetalSplitPaneDivider extends BasicSplitPaneDivider
|
|||||||
Insets insets = getInsets();
|
Insets insets = getInsets();
|
||||||
|
|
||||||
// This layout differs from the one used in BasicSplitPaneDivider.
|
// This layout differs from the one used in BasicSplitPaneDivider.
|
||||||
// It does not center justify the oneTouchExpadable buttons.
|
// It does not center justify the oneTouchExpandable buttons.
|
||||||
// This was necessary in order to meet the spec of the Metal
|
// This was necessary in order to meet the spec of the Metal
|
||||||
// splitpane divider.
|
// splitpane divider.
|
||||||
if (leftButton != null && rightButton != null &&
|
if (leftButton != null && rightButton != null &&
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1998, 2019, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1998, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -87,10 +87,10 @@ public class MetalToggleButtonUI extends BasicToggleButtonUI {
|
|||||||
public MetalToggleButtonUI() {}
|
public MetalToggleButtonUI() {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs the {@code MetalToogleButtonUI}.
|
* Constructs the {@code MetalToggleButtonUI}.
|
||||||
*
|
*
|
||||||
* @param b a component
|
* @param b a component
|
||||||
* @return the {@code MetalToogleButtonUI}.
|
* @return the {@code MetalToggleButtonUI}.
|
||||||
*/
|
*/
|
||||||
public static ComponentUI createUI(JComponent b) {
|
public static ComponentUI createUI(JComponent b) {
|
||||||
AppContext appContext = AppContext.getAppContext();
|
AppContext appContext = AppContext.getAppContext();
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2005, 2017, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2005, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -655,12 +655,12 @@ public abstract class AbstractRegionPainter implements Painter<JComponent> {
|
|||||||
dstInsets = insets;
|
dstInsets = insets;
|
||||||
}
|
}
|
||||||
// paint 9 square scaled
|
// paint 9 square scaled
|
||||||
Object oldScaleingHints = g.getRenderingHint(RenderingHints.KEY_INTERPOLATION);
|
Object oldScalingHints = g.getRenderingHint(RenderingHints.KEY_INTERPOLATION);
|
||||||
g.setRenderingHint(RenderingHints.KEY_INTERPOLATION,RenderingHints.VALUE_INTERPOLATION_BILINEAR);
|
g.setRenderingHint(RenderingHints.KEY_INTERPOLATION,RenderingHints.VALUE_INTERPOLATION_BILINEAR);
|
||||||
ImageScalingHelper.paint(g, 0, 0, w, h, img, insets, dstInsets,
|
ImageScalingHelper.paint(g, 0, 0, w, h, img, insets, dstInsets,
|
||||||
ImageScalingHelper.PaintType.PAINT9_STRETCH, ImageScalingHelper.PAINT_ALL);
|
ImageScalingHelper.PaintType.PAINT9_STRETCH, ImageScalingHelper.PAINT_ALL);
|
||||||
g.setRenderingHint(RenderingHints.KEY_INTERPOLATION,
|
g.setRenderingHint(RenderingHints.KEY_INTERPOLATION,
|
||||||
oldScaleingHints!=null?oldScaleingHints:RenderingHints.VALUE_INTERPOLATION_NEAREST_NEIGHBOR);
|
oldScalingHints!=null?oldScalingHints:RenderingHints.VALUE_INTERPOLATION_NEAREST_NEIGHBOR);
|
||||||
} else {
|
} else {
|
||||||
// render directly
|
// render directly
|
||||||
paint0(g, c, w, h, extendedCacheKeys);
|
paint0(g, c, w, h, extendedCacheKeys);
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2005, 2006, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2005, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -41,11 +41,9 @@ class DropShadowEffect extends ShadowEffect {
|
|||||||
// Effect Methods
|
// Effect Methods
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the type of this effect, one of UNDER,BLENDED,OVER. UNDER means the result of apply effect should be painted
|
* {@inheritDoc}
|
||||||
* under the src image. BLENDED means the result of apply sffect contains a modified src image so just it should be
|
|
||||||
* painted. OVER means the result of apply effect should be painted over the src image.
|
|
||||||
*
|
*
|
||||||
* @return The effect type
|
* @return {@inheritDoc}
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
EffectType getEffectType() {
|
EffectType getEffectType() {
|
||||||
@ -78,7 +76,7 @@ class DropShadowEffect extends ShadowEffect {
|
|||||||
double trangleAngle = Math.toRadians(angle - 90);
|
double trangleAngle = Math.toRadians(angle - 90);
|
||||||
int offsetX = (int) (Math.sin(trangleAngle) * distance);
|
int offsetX = (int) (Math.sin(trangleAngle) * distance);
|
||||||
int offsetY = (int) (Math.cos(trangleAngle) * distance);
|
int offsetY = (int) (Math.cos(trangleAngle) * distance);
|
||||||
// clac expanded size
|
// calc expanded size
|
||||||
int tmpOffX = offsetX + size;
|
int tmpOffX = offsetX + size;
|
||||||
int tmpOffY = offsetX + size;
|
int tmpOffY = offsetX + size;
|
||||||
int tmpW = w + offsetX + size + size;
|
int tmpW = w + offsetX + size + size;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2005, 2006, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2005, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -43,9 +43,15 @@ abstract class Effect {
|
|||||||
// Abstract Methods
|
// Abstract Methods
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the type of this effect, one of UNDER,BLENDED,OVER. UNDER means the result of apply effect should be painted
|
* Get the type of this effect, one of {@code UNDER}, {@code BLENDED}, {@code OVER}.
|
||||||
* under the src image. BLENDED means the result of apply sffect contains a modified src image so just it should be
|
* <ul>
|
||||||
* painted. OVER means the result of apply effect should be painted over the src image.
|
* <li><b>{@code UNDER}</b> means the result of applying the effect
|
||||||
|
* should be painted under the src image.</li>
|
||||||
|
* <li><b>{@code BLENDED}</b> means the result of applying the effect
|
||||||
|
* contains a modified src image, so it should just be painted.</li>
|
||||||
|
* <li><b>{@code OVER}</b> means the result of applying the effect
|
||||||
|
* should be painted over the src image.</li>
|
||||||
|
* </ul>
|
||||||
*
|
*
|
||||||
* @return The effect type
|
* @return The effect type
|
||||||
*/
|
*/
|
||||||
@ -68,7 +74,7 @@ abstract class Effect {
|
|||||||
* the area the need effect applied to it
|
* the area the need effect applied to it
|
||||||
* @param h The height of the src image to apply effect to, this allow the src and dst buffers to be bigger than
|
* @param h The height of the src image to apply effect to, this allow the src and dst buffers to be bigger than
|
||||||
* the area the need effect applied to it
|
* the area the need effect applied to it
|
||||||
* @return The result of appl
|
* @return The result of applying the effect
|
||||||
*/
|
*/
|
||||||
abstract BufferedImage applyEffect(BufferedImage src, BufferedImage dst, int w, int h);
|
abstract BufferedImage applyEffect(BufferedImage src, BufferedImage dst, int w, int h);
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2005, 2006, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2005, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -48,7 +48,7 @@ class ImageCache {
|
|||||||
new LinkedHashMap<Integer, PixelCountSoftReference>(16, 0.75f, true);
|
new LinkedHashMap<Integer, PixelCountSoftReference>(16, 0.75f, true);
|
||||||
// Maximum number of pixels to cache, this is used if maxCount
|
// Maximum number of pixels to cache, this is used if maxCount
|
||||||
private final int maxPixelCount;
|
private final int maxPixelCount;
|
||||||
// Maximum cached image size in pxiels
|
// Maximum cached image size in pixels
|
||||||
private final int maxSingleImagePixelSize;
|
private final int maxSingleImagePixelSize;
|
||||||
// The current number of pixels stored in the cache
|
// The current number of pixels stored in the cache
|
||||||
private int currentPixelCount = 0;
|
private int currentPixelCount = 0;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2005, 2006, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2005, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -41,11 +41,9 @@ class InnerShadowEffect extends ShadowEffect {
|
|||||||
// Effect Methods
|
// Effect Methods
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the type of this effect, one of UNDER,BLENDED,OVER. UNDER means the result of apply effect should be painted
|
* {@inheritDoc}
|
||||||
* under the src image. BLENDED means the result of apply sffect contains a modified src image so just it should be
|
|
||||||
* painted. OVER means the result of apply effect should be painted over the src image.
|
|
||||||
*
|
*
|
||||||
* @return The effect type
|
* @return {@inheritDoc}
|
||||||
*/
|
*/
|
||||||
Effect.EffectType getEffectType() {
|
Effect.EffectType getEffectType() {
|
||||||
return Effect.EffectType.OVER;
|
return Effect.EffectType.OVER;
|
||||||
@ -73,10 +71,10 @@ class InnerShadowEffect extends ShadowEffect {
|
|||||||
"destination images of type BufferedImage.TYPE_INT_ARGB.");
|
"destination images of type BufferedImage.TYPE_INT_ARGB.");
|
||||||
}
|
}
|
||||||
// calculate offset
|
// calculate offset
|
||||||
double trangleAngle = Math.toRadians(angle - 90);
|
double triangleAngle = Math.toRadians(angle - 90);
|
||||||
int offsetX = (int) (Math.sin(trangleAngle) * distance);
|
int offsetX = (int) (Math.sin(triangleAngle) * distance);
|
||||||
int offsetY = (int) (Math.cos(trangleAngle) * distance);
|
int offsetY = (int) (Math.cos(triangleAngle) * distance);
|
||||||
// clac expanded size
|
// calc expanded size
|
||||||
int tmpOffX = offsetX + size;
|
int tmpOffX = offsetX + size;
|
||||||
int tmpOffY = offsetX + size;
|
int tmpOffY = offsetX + size;
|
||||||
int tmpW = w + offsetX + size + size;
|
int tmpW = w + offsetX + size + size;
|
||||||
@ -119,9 +117,9 @@ class InnerShadowEffect extends ShadowEffect {
|
|||||||
int shadowOffset = (srcY - offsetY) * tmpW;
|
int shadowOffset = (srcY - offsetY) * tmpW;
|
||||||
for (int x = 0; x < w; x++) {
|
for (int x = 0; x < w; x++) {
|
||||||
int srcX = x + tmpOffX;
|
int srcX = x + tmpOffX;
|
||||||
int origianlAlphaVal = 255 - ((int) srcAlphaBuf[offset + srcX] & 0xFF);
|
int originalAlphaVal = 255 - ((int) srcAlphaBuf[offset + srcX] & 0xFF);
|
||||||
int shadowVal = (int) tmpBuf1[shadowOffset + (srcX - offsetX)] & 0xFF;
|
int shadowVal = (int) tmpBuf1[shadowOffset + (srcX - offsetX)] & 0xFF;
|
||||||
int alphaVal = Math.min(origianlAlphaVal, shadowVal);
|
int alphaVal = Math.min(originalAlphaVal, shadowVal);
|
||||||
lineBuf[x] = ((byte) alphaVal & 0xFF) << 24 | red << 16 | green << 8 | blue;
|
lineBuf[x] = ((byte) alphaVal & 0xFF) << 24 | red << 16 | green << 8 | blue;
|
||||||
}
|
}
|
||||||
shadowRaster.setDataElements(0, y, w, 1, lineBuf);
|
shadowRaster.setDataElements(0, y, w, 1, lineBuf);
|
||||||
|
@ -484,7 +484,7 @@ public class NimbusLookAndFeel extends SynthLookAndFeel {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Simple Symbolic Link style UIDefalts Property
|
* Simple Symbolic Link style UIDefaults Property
|
||||||
*/
|
*/
|
||||||
private static class LinkProperty implements UIDefaults.ActiveValue, UIResource{
|
private static class LinkProperty implements UIDefaults.ActiveValue, UIResource{
|
||||||
private String dstPropName;
|
private String dstPropName;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2002, 2014, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2002, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -115,7 +115,7 @@ class SynthArrowButton extends JButton implements SwingConstants, UIResource {
|
|||||||
dim = new Dimension(size, size);
|
dim = new Dimension(size, size);
|
||||||
}
|
}
|
||||||
|
|
||||||
// handle scaling for sizeVarients for special case components. The
|
// handle scaling for sizeVariants for special case components. The
|
||||||
// key "JComponent.sizeVariant" scales for large/small/mini
|
// key "JComponent.sizeVariant" scales for large/small/mini
|
||||||
// components are based on Apples LAF
|
// components are based on Apples LAF
|
||||||
Container parent = context.getComponent().getParent();
|
Container parent = context.getComponent().getParent();
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2002, 2019, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2002, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -545,8 +545,8 @@ public class SynthGraphicsUtils {
|
|||||||
result.height += insets.top + insets.bottom;
|
result.height += insets.top + insets.bottom;
|
||||||
}
|
}
|
||||||
|
|
||||||
// if the width is even, bump it up one. This is critical
|
// if the width is even, bump it up by one. This is critical
|
||||||
// for the focus dash lhne to draw properly
|
// for the focus dash line to draw properly
|
||||||
if (result.width % 2 == 0) {
|
if (result.width % 2 == 0) {
|
||||||
result.width++;
|
result.width++;
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2003, 2022, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2003, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -182,7 +182,7 @@ class SynthParser extends DefaultHandler {
|
|||||||
private List<ColorType> _colorTypes;
|
private List<ColorType> _colorTypes;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* defaultsPropertys are placed here.
|
* Default properties are placed here.
|
||||||
*/
|
*/
|
||||||
private Map<String, Object> _defaultsMap;
|
private Map<String, Object> _defaultsMap;
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2002, 2015, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2002, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -108,7 +108,7 @@ public class SynthProgressBarUI extends BasicProgressBarUI
|
|||||||
"ProgressBar.rotateText", false);
|
"ProgressBar.rotateText", false);
|
||||||
tileWhenIndeterminate = style.getBoolean(context, "ProgressBar.tileWhenIndeterminate", false);
|
tileWhenIndeterminate = style.getBoolean(context, "ProgressBar.tileWhenIndeterminate", false);
|
||||||
tileWidth = style.getInt(context, "ProgressBar.tileWidth", 15);
|
tileWidth = style.getInt(context, "ProgressBar.tileWidth", 15);
|
||||||
// handle scaling for sizeVarients for special case components. The
|
// handle scaling for sizeVariants for special case components. The
|
||||||
// key "JComponent.sizeVariant" scales for large/small/mini
|
// key "JComponent.sizeVariant" scales for large/small/mini
|
||||||
// components are based on Apples LAF
|
// components are based on Apples LAF
|
||||||
String scaleKey = (String)progressBar.getClientProperty(
|
String scaleKey = (String)progressBar.getClientProperty(
|
||||||
@ -456,7 +456,7 @@ public class SynthProgressBarUI extends BasicProgressBarUI
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// handle scaling for sizeVarients for special case components. The
|
// handle scaling for sizeVariants for special case components. The
|
||||||
// key "JComponent.sizeVariant" scales for large/small/mini
|
// key "JComponent.sizeVariant" scales for large/small/mini
|
||||||
// components are based on Apples LAF
|
// components are based on Apples LAF
|
||||||
String scaleKey = (String)progressBar.getClientProperty(
|
String scaleKey = (String)progressBar.getClientProperty(
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2002, 2016, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2002, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -109,7 +109,7 @@ public class SynthScrollBarUI extends BasicScrollBarUI
|
|||||||
incrGap = style.getInt(context, "ScrollBar.incrementButtonGap", 0);
|
incrGap = style.getInt(context, "ScrollBar.incrementButtonGap", 0);
|
||||||
decrGap = style.getInt(context, "ScrollBar.decrementButtonGap", 0);
|
decrGap = style.getInt(context, "ScrollBar.decrementButtonGap", 0);
|
||||||
|
|
||||||
// handle scaling for sizeVarients for special case components. The
|
// handle scaling for sizeVariants for special case components. The
|
||||||
// key "JComponent.sizeVariant" scales for large/small/mini
|
// key "JComponent.sizeVariant" scales for large/small/mini
|
||||||
// components are based on Apples LAF
|
// components are based on Apples LAF
|
||||||
String scaleKey = (String)scrollbar.getClientProperty(
|
String scaleKey = (String)scrollbar.getClientProperty(
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2002, 2015, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2002, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -157,7 +157,7 @@ public class SynthSliderUI extends BasicSliderUI
|
|||||||
thumbHeight =
|
thumbHeight =
|
||||||
style.getInt(context, "Slider.thumbHeight", 14);
|
style.getInt(context, "Slider.thumbHeight", 14);
|
||||||
|
|
||||||
// handle scaling for sizeVarients for special case components. The
|
// handle scaling for sizeVariants for special case components. The
|
||||||
// key "JComponent.sizeVariant" scales for large/small/mini
|
// key "JComponent.sizeVariant" scales for large/small/mini
|
||||||
// components are based on Apples LAF
|
// components are based on Apples LAF
|
||||||
String scaleKey = (String)slider.getClientProperty(
|
String scaleKey = (String)slider.getClientProperty(
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -2192,7 +2192,7 @@ public abstract class AbstractDocument implements Document, Serializable {
|
|||||||
/**
|
/**
|
||||||
* Returns the number of children <code>TreeNode</code>'s
|
* Returns the number of children <code>TreeNode</code>'s
|
||||||
* receiver contains.
|
* receiver contains.
|
||||||
* @return the number of children <code>TreeNodews</code>'s
|
* @return the number of children <code>TreeNode</code>'s
|
||||||
* receiver contains
|
* receiver contains
|
||||||
*/
|
*/
|
||||||
public int getChildCount() {
|
public int getChildCount() {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1998, 2015, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1998, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -51,7 +51,7 @@ public abstract class AbstractWriter {
|
|||||||
private int startOffset = 0;
|
private int startOffset = 0;
|
||||||
private int endOffset = 0;
|
private int endOffset = 0;
|
||||||
// If (indentLevel * indentSpace) becomes >= maxLineLength, this will
|
// If (indentLevel * indentSpace) becomes >= maxLineLength, this will
|
||||||
// get incremened instead of indentLevel to avoid indenting going greater
|
// get incremented instead of indentLevel to avoid indenting going greater
|
||||||
// than line length.
|
// than line length.
|
||||||
private int offsetIndent = 0;
|
private int offsetIndent = 0;
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2022, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -44,7 +44,7 @@ import java.awt.*;
|
|||||||
*
|
*
|
||||||
* <p>While <code>CompositeView</code>
|
* <p>While <code>CompositeView</code>
|
||||||
* does not impose a layout policy on its child <code>View</code>s,
|
* does not impose a layout policy on its child <code>View</code>s,
|
||||||
* it does allow for inseting the child <code>View</code>s
|
* it does allow for insetting the child <code>View</code>s
|
||||||
* it will contain. The insets can be set by either
|
* it will contain. The insets can be set by either
|
||||||
* {@link #setInsets} or {@link #setParagraphInsets}.
|
* {@link #setInsets} or {@link #setParagraphInsets}.
|
||||||
*
|
*
|
||||||
|
@ -252,7 +252,7 @@ public class DefaultCaret extends Rectangle implements Caret, FocusListener, Mou
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the text editor component that this caret is
|
* Gets the text editor component that this caret
|
||||||
* is bound to.
|
* is bound to.
|
||||||
*
|
*
|
||||||
* @return the component
|
* @return the component
|
||||||
@ -1287,12 +1287,12 @@ public class DefaultCaret extends Rectangle implements Caret, FocusListener, Mou
|
|||||||
|
|
||||||
Position.Bias guessBiasForOffset(int offset, Position.Bias lastBias,
|
Position.Bias guessBiasForOffset(int offset, Position.Bias lastBias,
|
||||||
boolean lastLTR) {
|
boolean lastLTR) {
|
||||||
// There is an abiguous case here. That if your model looks like:
|
// There is an ambiguous case here. If your model looks like:
|
||||||
// abAB with the cursor at abB]A (visual representation of
|
// abAB with the cursor at abB]A (visual representation of
|
||||||
// 3 forward) deleting could either become abB] or
|
// 3 forward) deleting could either become abB] or
|
||||||
// ab[B. I'ld actually prefer abB]. But, if I implement that
|
// ab[B. I'd actually prefer abB]. But, if I implement that,
|
||||||
// a delete at abBA] would result in aBA] vs a[BA which I
|
// a delete at abBA] would result in aBA] vs a[BA which, I
|
||||||
// think is totally wrong. To get this right we need to know what
|
// think, is totally wrong. To get this right we need to know what
|
||||||
// was deleted. And we could get this from the bidi structure
|
// was deleted. And we could get this from the bidi structure
|
||||||
// in the change event. So:
|
// in the change event. So:
|
||||||
// PENDING: base this off what was deleted.
|
// PENDING: base this off what was deleted.
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -1570,7 +1570,7 @@ public class DefaultEditorKit extends EditorKit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns adjustsed {@code y} position that indicates the location to scroll to
|
* Returns adjusted {@code y} position that indicates the location to scroll to
|
||||||
* after selecting <code>index</code>.
|
* after selecting <code>index</code>.
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("deprecation")
|
@SuppressWarnings("deprecation")
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2000, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -64,7 +64,7 @@ public class DefaultFormatter extends JFormattedTextField.AbstractFormatter
|
|||||||
/** Indicates if the value being edited must match the mask. */
|
/** Indicates if the value being edited must match the mask. */
|
||||||
private boolean allowsInvalid;
|
private boolean allowsInvalid;
|
||||||
|
|
||||||
/** If true, editing mode is in overwrite (or strikethough). */
|
/** If true, overwrite mode is enabled. */
|
||||||
private boolean overwriteMode;
|
private boolean overwriteMode;
|
||||||
|
|
||||||
/** If true, any time a valid edit happens commitEdit is invoked. */
|
/** If true, any time a valid edit happens commitEdit is invoked. */
|
||||||
@ -159,7 +159,7 @@ public class DefaultFormatter extends JFormattedTextField.AbstractFormatter
|
|||||||
* <code>overwriteMode</code> is true (the default), new characters
|
* <code>overwriteMode</code> is true (the default), new characters
|
||||||
* overwrite existing characters in the model.
|
* overwrite existing characters in the model.
|
||||||
*
|
*
|
||||||
* @param overwriteMode Indicates if overwrite or overstrike mode is used
|
* @param overwriteMode Indicates if overwrite mode is used
|
||||||
*/
|
*/
|
||||||
public void setOverwriteMode(boolean overwriteMode) {
|
public void setOverwriteMode(boolean overwriteMode) {
|
||||||
this.overwriteMode = overwriteMode;
|
this.overwriteMode = overwriteMode;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -2351,7 +2351,7 @@ public class DefaultStyledDocument extends AbstractDocument implements StyledDoc
|
|||||||
* Recreates <code>toDuplicate</code>. This is called when an
|
* Recreates <code>toDuplicate</code>. This is called when an
|
||||||
* element needs to be created as the result of an insertion. This
|
* element needs to be created as the result of an insertion. This
|
||||||
* will recurse and create all the children. This is similar to
|
* will recurse and create all the children. This is similar to
|
||||||
* <code>clone</code>, but deteremines the offsets differently.
|
* <code>clone</code>, but determines the offsets differently.
|
||||||
*/
|
*/
|
||||||
Element recreateFracturedElement(Element parent, Element toDuplicate) {
|
Element recreateFracturedElement(Element parent, Element toDuplicate) {
|
||||||
if(toDuplicate.isLeaf()) {
|
if(toDuplicate.isLeaf()) {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2022, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -467,7 +467,7 @@ public interface Document {
|
|||||||
/**
|
/**
|
||||||
* Inserts a string of content. This will cause a DocumentEvent
|
* Inserts a string of content. This will cause a DocumentEvent
|
||||||
* of type DocumentEvent.EventType.INSERT to be sent to the
|
* of type DocumentEvent.EventType.INSERT to be sent to the
|
||||||
* registered DocumentListers, unless an exception is thrown.
|
* registered DocumentListeners, unless an exception is thrown.
|
||||||
* The DocumentEvent will be delivered by calling the
|
* The DocumentEvent will be delivered by calling the
|
||||||
* insertUpdate method on the DocumentListener.
|
* insertUpdate method on the DocumentListener.
|
||||||
* The offset and length of the generated DocumentEvent
|
* The offset and length of the generated DocumentEvent
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1998, 2021, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1998, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -256,7 +256,7 @@ public class GapContent extends GapVector implements AbstractDocument.Content, S
|
|||||||
if (sortIndex < marks.size()
|
if (sortIndex < marks.size()
|
||||||
&& (m = marks.elementAt(sortIndex)).index == index
|
&& (m = marks.elementAt(sortIndex)).index == index
|
||||||
&& (position = m.getPosition()) != null) {
|
&& (position = m.getPosition()) != null) {
|
||||||
//position references the correct StickyPostition
|
//position references the correct StickyPosition
|
||||||
} else {
|
} else {
|
||||||
position = new StickyPosition();
|
position = new StickyPosition();
|
||||||
m = new MarkData(index,position,queue);
|
m = new MarkData(index,position,queue);
|
||||||
@ -784,7 +784,7 @@ public class GapContent extends GapVector implements AbstractDocument.Content, S
|
|||||||
startIndex = 0;
|
startIndex = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Reset the location of the refenences.
|
// Reset the location of the references.
|
||||||
for(int counter = positions.size() - 1; counter >= 0; counter--) {
|
for(int counter = positions.size() - 1; counter >= 0; counter--) {
|
||||||
UndoPosRef ref = (UndoPosRef) positions.elementAt(counter);
|
UndoPosRef ref = (UndoPosRef) positions.elementAt(counter);
|
||||||
ref.resetLocation(endOffset, g1);
|
ref.resetLocation(endOffset, g1);
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1999, 2015, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1999, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -973,7 +973,7 @@ public class GlyphView extends View implements TabableView, Cloneable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class to hold data needed to justify this GlyphView in a PargraphView.Row
|
* Class to hold data needed to justify this GlyphView in a ParagraphView.Row
|
||||||
*/
|
*/
|
||||||
static class JustificationInfo {
|
static class JustificationInfo {
|
||||||
//justifiable content start
|
//justifiable content start
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2000, 2022, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2000, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -113,7 +113,7 @@ public class InternationalFormatter extends DefaultFormatter {
|
|||||||
private Comparable<?> min;
|
private Comparable<?> min;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <code>InternationalFormatter</code>'s behavior is dicatated by a
|
* <code>InternationalFormatter</code>'s behavior is dictated by a
|
||||||
* <code>AttributedCharacterIterator</code> that is obtained from
|
* <code>AttributedCharacterIterator</code> that is obtained from
|
||||||
* the <code>Format</code>. On every edit, assuming
|
* the <code>Format</code>. On every edit, assuming
|
||||||
* allows invalid is false, the <code>Format</code> instance is invoked
|
* allows invalid is false, the <code>Format</code> instance is invoked
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2022, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -4317,7 +4317,7 @@ public abstract class JTextComponent extends JComponent implements Scrollable, A
|
|||||||
* Action is returned, if not and the KeyStroke represents a
|
* Action is returned, if not and the KeyStroke represents a
|
||||||
* KeyTyped event and the Keymap has a defaultAction,
|
* KeyTyped event and the Keymap has a defaultAction,
|
||||||
* <code>DefaultActionKey</code> is returned.
|
* <code>DefaultActionKey</code> is returned.
|
||||||
* <p>KeymapActionMap is then able to transate the object passed in
|
* <p>KeymapActionMap is then able to translate the object passed in
|
||||||
* to either message the Keymap, or message its default implementation.
|
* to either message the Keymap, or message its default implementation.
|
||||||
*/
|
*/
|
||||||
static class KeymapWrapper extends InputMap {
|
static class KeymapWrapper extends InputMap {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -382,7 +382,7 @@ public final class StringContent implements AbstractDocument.Content, Serializab
|
|||||||
rec.offset = undoLocation;
|
rec.offset = undoLocation;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Location to reset to when resetLocatino is invoked. */
|
/** Location to reset to when resetLocation is invoked. */
|
||||||
protected int undoLocation;
|
protected int undoLocation;
|
||||||
/** Position to reset offset. */
|
/** Position to reset offset. */
|
||||||
protected PosRec rec;
|
protected PosRec rec;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -496,7 +496,7 @@ public class StyleContext implements Serializable, AbstractDocument.AttributeCon
|
|||||||
* behavior of SmallAttributeSet. This can be reimplemented
|
* behavior of SmallAttributeSet. This can be reimplemented
|
||||||
* to return an AttributeSet that provides some sort of
|
* to return an AttributeSet that provides some sort of
|
||||||
* attribute conversion.
|
* attribute conversion.
|
||||||
* @param a The set of attributes to be represented in the
|
* @param a The set of attributes to be represented in
|
||||||
* the compact form.
|
* the compact form.
|
||||||
* @return a compact set of attributes that might be shared
|
* @return a compact set of attributes that might be shared
|
||||||
*/
|
*/
|
||||||
@ -513,7 +513,7 @@ public class StyleContext implements Serializable, AbstractDocument.AttributeCon
|
|||||||
* to return a MutableAttributeSet that provides some sort of
|
* to return a MutableAttributeSet that provides some sort of
|
||||||
* attribute conversion.
|
* attribute conversion.
|
||||||
*
|
*
|
||||||
* @param a The set of attributes to be represented in the
|
* @param a The set of attributes to be represented in
|
||||||
* the larger form.
|
* the larger form.
|
||||||
* @return a large set of attributes that should trade off
|
* @return a large set of attributes that should trade off
|
||||||
* space for time
|
* space for time
|
||||||
@ -535,7 +535,7 @@ public class StyleContext implements Serializable, AbstractDocument.AttributeCon
|
|||||||
* is not found, we create a new set and add it to the pool.
|
* is not found, we create a new set and add it to the pool.
|
||||||
*/
|
*/
|
||||||
AttributeSet getImmutableUniqueSet() {
|
AttributeSet getImmutableUniqueSet() {
|
||||||
// PENDING(prinz) should consider finding a alternative to
|
// PENDING(prinz) should consider finding an alternative to
|
||||||
// generating extra garbage on search key.
|
// generating extra garbage on search key.
|
||||||
SmallAttributeSet key = createSmallAttributeSet(search);
|
SmallAttributeSet key = createSmallAttributeSet(search);
|
||||||
WeakReference<SmallAttributeSet> reference = attributesPool.get(key);
|
WeakReference<SmallAttributeSet> reference = attributesPool.get(key);
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -243,7 +243,7 @@ public class StyledEditorKit extends DefaultEditorKit {
|
|||||||
currentParagraph = doc.getParagraphElement(start);
|
currentParagraph = doc.getParagraphElement(start);
|
||||||
if (currentParagraph.getStartOffset() == start || dot != mark) {
|
if (currentParagraph.getStartOffset() == start || dot != mark) {
|
||||||
// Get the attributes from the character at the selection
|
// Get the attributes from the character at the selection
|
||||||
// if in a different paragrah!
|
// if in a different paragraph!
|
||||||
run = doc.getCharacterElement(start);
|
run = doc.getCharacterElement(start);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -140,7 +140,7 @@ public class Utilities {
|
|||||||
// In addition to the previous method it can extend spaces for
|
// In addition to the previous method it can extend spaces for
|
||||||
// justification.
|
// justification.
|
||||||
//
|
//
|
||||||
// all params are the same as in the preious method except the last
|
// all params are the same as in the previous method except the last
|
||||||
// one:
|
// one:
|
||||||
// @param justificationData justificationData for the row.
|
// @param justificationData justificationData for the row.
|
||||||
// if null not justification is needed
|
// if null not justification is needed
|
||||||
@ -275,7 +275,7 @@ public class Utilities {
|
|||||||
// In addition to the previous method it can extend spaces for
|
// In addition to the previous method it can extend spaces for
|
||||||
// justification.
|
// justification.
|
||||||
//
|
//
|
||||||
// all params are the same as in the preious method except the last
|
// all params are the same as in the previous method except the last
|
||||||
// one:
|
// one:
|
||||||
// @param justificationData justificationData for the row.
|
// @param justificationData justificationData for the row.
|
||||||
// if null not justification is needed
|
// if null not justification is needed
|
||||||
@ -475,7 +475,7 @@ public class Utilities {
|
|||||||
// In addition to the previous method it can extend spaces for
|
// In addition to the previous method it can extend spaces for
|
||||||
// justification.
|
// justification.
|
||||||
//
|
//
|
||||||
// all params are the same as in the preious method except the last
|
// all params are the same as in the previous method except the last
|
||||||
// one:
|
// one:
|
||||||
// @param justificationData justificationData for the row.
|
// @param justificationData justificationData for the row.
|
||||||
// if null not justification is needed
|
// if null not justification is needed
|
||||||
|
@ -1654,7 +1654,7 @@ class AccessibleHTML implements Accessible {
|
|||||||
*
|
*
|
||||||
* @see #getAccessibleParent
|
* @see #getAccessibleParent
|
||||||
* @see #getAccessibleChildrenCount
|
* @see #getAccessibleChildrenCount
|
||||||
* @gsee #getAccessibleChild
|
* @see #getAccessibleChild
|
||||||
*/
|
*/
|
||||||
public int getAccessibleIndexInParent() {
|
public int getAccessibleIndexInParent() {
|
||||||
return elementInfo.getIndexInParent();
|
return elementInfo.getIndexInParent();
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2022, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -1641,7 +1641,7 @@ public class HTMLDocument extends DefaultStyledDocument {
|
|||||||
// e.getElement(index - 1) should represent the newline.
|
// e.getElement(index - 1) should represent the newline.
|
||||||
index--;
|
index--;
|
||||||
if (endE.getParentElement() != e) {
|
if (endE.getParentElement() != e) {
|
||||||
// The hiearchies don't match, we'll have to manually
|
// The hierarchies don't match, we'll have to manually
|
||||||
// recreate the leaf at e.getElement(index - 1)
|
// recreate the leaf at e.getElement(index - 1)
|
||||||
replace(dde, e, index, ++count, start, end, true, true);
|
replace(dde, e, index, ++count, start, end, true, true);
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2022, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -893,7 +893,7 @@ public class ImageView extends View {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Invokes <code>preferenceChanged</code> on the event displatching
|
* Invokes <code>preferenceChanged</code> on the event dispatching
|
||||||
* thread.
|
* thread.
|
||||||
*/
|
*/
|
||||||
private void safePreferenceChanged() {
|
private void safePreferenceChanged() {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1998, 2021, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1998, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -93,7 +93,7 @@ class Map implements Serializable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the AttributeSets representing the differet areas of the Map.
|
* Returns the AttributeSets representing the different areas of the Map.
|
||||||
*/
|
*/
|
||||||
public AttributeSet[] getAreas() {
|
public AttributeSet[] getAreas() {
|
||||||
int numAttributes = (areaAttributes != null) ? areaAttributes.size() :
|
int numAttributes = (areaAttributes != null) ? areaAttributes.size() :
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1998, 2022, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1998, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -928,7 +928,7 @@ class Parser implements DTDConstants {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Parse identifier. Uppercase characters are folded
|
* Parse identifier. Uppercase characters are folded
|
||||||
* to lowercase when lower is true. Returns falsed if
|
* to lowercase when lower is true. Returns false if
|
||||||
* no identifier is found. [55] 346:17
|
* no identifier is found. [55] 346:17
|
||||||
*/
|
*/
|
||||||
boolean parseIdentifier(boolean lower) throws IOException {
|
boolean parseIdentifier(boolean lower) throws IOException {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -348,7 +348,7 @@ public class DefaultTreeModel implements Serializable, TreeModel {
|
|||||||
* must be sorted in ascending order. And removedChildren should be
|
* must be sorted in ascending order. And removedChildren should be
|
||||||
* the array of the children objects that were removed.
|
* the array of the children objects that were removed.
|
||||||
*
|
*
|
||||||
* @param node parent node which childred were removed
|
* @param node parent node from which children were removed
|
||||||
* @param childIndices indexes of removed children
|
* @param childIndices indexes of removed children
|
||||||
* @param removedChildren array of the children objects that were removed
|
* @param removedChildren array of the children objects that were removed
|
||||||
*/
|
*/
|
||||||
@ -362,7 +362,7 @@ public class DefaultTreeModel implements Serializable, TreeModel {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Invoke this method after you've changed how the children identified by
|
* Invoke this method after you've changed how the children identified by
|
||||||
* childIndicies are to be represented in the tree.
|
* childIndices are to be represented in the tree.
|
||||||
*
|
*
|
||||||
* @param node changed node
|
* @param node changed node
|
||||||
* @param childIndices indexes of changed children
|
* @param childIndices indexes of changed children
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -75,7 +75,7 @@ public interface TreeNode
|
|||||||
* If the receiver does not contain <code>node</code>, -1 will be
|
* If the receiver does not contain <code>node</code>, -1 will be
|
||||||
* returned.
|
* returned.
|
||||||
*
|
*
|
||||||
* @param node node to be loked for
|
* @param node node to be looked for
|
||||||
* @return index of specified node
|
* @return index of specified node
|
||||||
*/
|
*/
|
||||||
int getIndex(TreeNode node);
|
int getIndex(TreeNode node);
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -209,7 +209,7 @@ public interface TreeSelectionModel
|
|||||||
* Returns true if the path, <code>path</code>, is in the current
|
* Returns true if the path, <code>path</code>, is in the current
|
||||||
* selection.
|
* selection.
|
||||||
*
|
*
|
||||||
* @param path the path to be loked for
|
* @param path the path to be looked for
|
||||||
* @return whether the {@code path} is in the current selection
|
* @return whether the {@code path} is in the current selection
|
||||||
*/
|
*/
|
||||||
boolean isPathSelected(TreePath path);
|
boolean isPathSelected(TreePath path);
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2005, 2017, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2005, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -66,7 +66,7 @@ import javax.swing.SwingUtilities;
|
|||||||
* <p>
|
* <p>
|
||||||
* Say we want to implement addDirtyRegion(Rectangle rect)
|
* Say we want to implement addDirtyRegion(Rectangle rect)
|
||||||
* which sends this region to the
|
* which sends this region to the
|
||||||
* {@code handleDirtyRegions(List<Rect> regiouns)} on the EDT.
|
* {@code handleDirtyRegions(List<Rect> regions)} on the EDT.
|
||||||
* addDirtyRegions better be accumulated before handling on the EDT.
|
* addDirtyRegions better be accumulated before handling on the EDT.
|
||||||
*
|
*
|
||||||
* <p>
|
* <p>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2003, 2021, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2003, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -78,7 +78,7 @@ public class DefaultLookup {
|
|||||||
}
|
}
|
||||||
else if (lookup == null) {
|
else if (lookup == null) {
|
||||||
// null was passed in, but someone has invoked setDefaultLookup
|
// null was passed in, but someone has invoked setDefaultLookup
|
||||||
// with a non-null value, use an instance of DefautLookup
|
// with a non-null value, use an instance of DefaultLookup
|
||||||
// which will fallback to UIManager.
|
// which will fallback to UIManager.
|
||||||
lookup = new DefaultLookup();
|
lookup = new DefaultLookup();
|
||||||
}
|
}
|
||||||
|
@ -130,8 +130,8 @@ import sun.awt.shell.ShellFolderColumnInfo;
|
|||||||
* this public API.
|
* this public API.
|
||||||
* <p>
|
* <p>
|
||||||
* This component is intended to be used in a subclass of
|
* This component is intended to be used in a subclass of
|
||||||
* javax.swing.plaf.basic.BasicFileChooserUI. It realies heavily on the
|
* javax.swing.plaf.basic.BasicFileChooserUI. It relies heavily on the
|
||||||
* implementation of BasicFileChooserUI, and is intended to be API compatible
|
* implementation of BasicFileChooserUI and is intended to be API compatible
|
||||||
* with earlier implementations of MetalFileChooserUI and WindowsFileChooserUI.
|
* with earlier implementations of MetalFileChooserUI and WindowsFileChooserUI.
|
||||||
*
|
*
|
||||||
* @author Leif Samuelsson
|
* @author Leif Samuelsson
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2013, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -117,7 +117,7 @@ public interface LightweightContent {
|
|||||||
* @param height the logical height of the image
|
* @param height the logical height of the image
|
||||||
* @param linestride the line stride of the pixel buffer
|
* @param linestride the line stride of the pixel buffer
|
||||||
* @param scale the scale factor of the pixel buffer
|
* @param scale the scale factor of the pixel buffer
|
||||||
* @Deprecated replaced by
|
* @deprecated replaced by
|
||||||
* {@link #imageBufferReset(int[],int,int,int,int,int,double,double)}
|
* {@link #imageBufferReset(int[],int,int,int,int,int,double,double)}
|
||||||
*/
|
*/
|
||||||
@Deprecated(since = "9")
|
@Deprecated(since = "9")
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2005, 2014, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2005, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -236,9 +236,9 @@ public class PrintingStatus {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns whether the printng was aborted using this PrintingStatus
|
* Returns whether the printing was aborted using this PrintingStatus
|
||||||
*
|
*
|
||||||
* @return whether the printng was aborted using this PrintingStatus
|
* @return whether the printing was aborted using this PrintingStatus
|
||||||
*/
|
*/
|
||||||
public boolean isAborted() {
|
public boolean isAborted() {
|
||||||
return isAborted.get();
|
return isAborted.get();
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2002, 2021, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2002, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -234,7 +234,7 @@ public class SwingUtilities2 {
|
|||||||
// WARNING WARNING WARNING WARNING WARNING WARNING
|
// WARNING WARNING WARNING WARNING WARNING WARNING
|
||||||
// Many of the following methods are invoked from older API.
|
// Many of the following methods are invoked from older API.
|
||||||
// As this older API was not passed a Component, a null Component may
|
// As this older API was not passed a Component, a null Component may
|
||||||
// now be passsed in. For example, SwingUtilities.computeStringWidth
|
// now be passed in. For example, SwingUtilities.computeStringWidth
|
||||||
// is implemented to call SwingUtilities2.stringWidth, the
|
// is implemented to call SwingUtilities2.stringWidth, the
|
||||||
// SwingUtilities variant does not take a JComponent, as such
|
// SwingUtilities variant does not take a JComponent, as such
|
||||||
// SwingUtilities2.stringWidth can be passed a null Component.
|
// SwingUtilities2.stringWidth can be passed a null Component.
|
||||||
@ -334,7 +334,7 @@ public class SwingUtilities2 {
|
|||||||
* painting. If a Graphics is not available the JComponent method of
|
* painting. If a Graphics is not available the JComponent method of
|
||||||
* the same name should be used.
|
* the same name should be used.
|
||||||
* <p>
|
* <p>
|
||||||
* Callers should pass in a non-null JComonent, the exception
|
* Callers should pass in a non-null JComponent, the exception
|
||||||
* to this is if a JComponent is not readily available at the time of
|
* to this is if a JComponent is not readily available at the time of
|
||||||
* painting.
|
* painting.
|
||||||
* <p>
|
* <p>
|
||||||
@ -342,7 +342,7 @@ public class SwingUtilities2 {
|
|||||||
* Graphics.
|
* Graphics.
|
||||||
*
|
*
|
||||||
* @param c JComponent requesting FontMetrics, may be null
|
* @param c JComponent requesting FontMetrics, may be null
|
||||||
* @param c Graphics Graphics
|
* @param g Graphics
|
||||||
* @param font Font to get FontMetrics for
|
* @param font Font to get FontMetrics for
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("deprecation")
|
@SuppressWarnings("deprecation")
|
||||||
@ -350,7 +350,7 @@ public class SwingUtilities2 {
|
|||||||
Font font) {
|
Font font) {
|
||||||
if (c != null) {
|
if (c != null) {
|
||||||
// Note: We assume that we're using the FontMetrics
|
// Note: We assume that we're using the FontMetrics
|
||||||
// from the widget to layout out text, otherwise we can get
|
// from the widget to lay out text, otherwise we can get
|
||||||
// mismatches when printing.
|
// mismatches when printing.
|
||||||
return c.getFontMetrics(font);
|
return c.getFontMetrics(font);
|
||||||
}
|
}
|
||||||
@ -2187,7 +2187,7 @@ public class SwingUtilities2 {
|
|||||||
/**
|
/**
|
||||||
* Sets the InputEvent.ALT_GRAPH mask on any modifier passed to the function
|
* Sets the InputEvent.ALT_GRAPH mask on any modifier passed to the function
|
||||||
* @param modifier the modifier passed
|
* @param modifier the modifier passed
|
||||||
* @return the modifier retiurned with ALT_GRAPH flag set
|
* @return the modifier returned with ALT_GRAPH flag set
|
||||||
*/
|
*/
|
||||||
public static int setAltGraphMask(int modifier) {
|
public static int setAltGraphMask(int modifier) {
|
||||||
return (modifier | InputEvent.ALT_GRAPH_DOWN_MASK);
|
return (modifier | InputEvent.ALT_GRAPH_DOWN_MASK);
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2005, 2014, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2005, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -57,7 +57,7 @@ public class SortArrowIcon implements Icon, UIResource, Serializable {
|
|||||||
/**
|
/**
|
||||||
* Creates a <code>SortArrowIcon</code>.
|
* Creates a <code>SortArrowIcon</code>.
|
||||||
*
|
*
|
||||||
* @param ascending if true, icon respresenting ascending sort, otherwise
|
* @param ascending if true, icon representing ascending sort, otherwise
|
||||||
* descending
|
* descending
|
||||||
* @param color the color to render the icon
|
* @param color the color to render the icon
|
||||||
*/
|
*/
|
||||||
@ -72,7 +72,7 @@ public class SortArrowIcon implements Icon, UIResource, Serializable {
|
|||||||
/**
|
/**
|
||||||
* Creates a <code>SortArrowIcon</code>.
|
* Creates a <code>SortArrowIcon</code>.
|
||||||
*
|
*
|
||||||
* @param ascending if true, icon respresenting ascending sort, otherwise
|
* @param ascending if true, icon representing ascending sort, otherwise
|
||||||
* descending
|
* descending
|
||||||
* @param colorKey the key used to find color in UIManager
|
* @param colorKey the key used to find color in UIManager
|
||||||
*/
|
*/
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2001, 2018, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2001, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -195,7 +195,7 @@ public class DesktopProperty implements UIDefaults.ActiveValue {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Invalides the current value so that the next invocation of
|
* Invalidates the current value so that the next invocation of
|
||||||
* <code>createValue</code> will ask for the property again.
|
* <code>createValue</code> will ask for the property again.
|
||||||
*/
|
*/
|
||||||
public void invalidate() {
|
public void invalidate() {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2002, 2021, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2002, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -88,7 +88,7 @@ public class DefaultSynthStyle extends SynthStyle implements Cloneable {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a new DefaultSynthStyle that is a copy of the passed in
|
* Creates a new DefaultSynthStyle that is a copy of the passed in
|
||||||
* style. Any StateInfo's of the passed in style are clonsed as well.
|
* style. Any StateInfo's of the passed in style are cloned as well.
|
||||||
*
|
*
|
||||||
* @param style Style to duplicate
|
* @param style Style to duplicate
|
||||||
*/
|
*/
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2003, 2021, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2003, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -721,7 +721,7 @@ public class SynthFileChooserUIImpl extends SynthFileChooserUI {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// DataModel for DirectoryComboxbox
|
// DataModel for DirectoryCombobox
|
||||||
//
|
//
|
||||||
protected DirectoryComboBoxModel createDirectoryComboBoxModel(JFileChooser fc) {
|
protected DirectoryComboBoxModel createDirectoryComboBoxModel(JFileChooser fc) {
|
||||||
return new DirectoryComboBoxModel();
|
return new DirectoryComboBoxModel();
|
||||||
@ -905,7 +905,7 @@ public class SynthFileChooserUIImpl extends SynthFileChooserUI {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// DataModel for Types Comboxbox
|
// DataModel for Types Combobox
|
||||||
//
|
//
|
||||||
protected FilterComboBoxModel createFilterComboBoxModel() {
|
protected FilterComboBoxModel createFilterComboBoxModel() {
|
||||||
return new FilterComboBoxModel();
|
return new FilterComboBoxModel();
|
||||||
@ -942,9 +942,9 @@ public class SynthFileChooserUIImpl extends SynthFileChooserUI {
|
|||||||
|
|
||||||
public Object getSelectedItem() {
|
public Object getSelectedItem() {
|
||||||
// Ensure that the current filter is in the list.
|
// Ensure that the current filter is in the list.
|
||||||
// NOTE: we shouldnt' have to do this, since JFileChooser adds
|
// NOTE: we shouldn't have to do this, since JFileChooser adds
|
||||||
// the filter to the choosable filters list when the filter
|
// the filter to the choosable filters list when the filter
|
||||||
// is set. Lets be paranoid just in case someone overrides
|
// is set. Let's be paranoid just in case someone overrides
|
||||||
// setFileFilter in JFileChooser.
|
// setFileFilter in JFileChooser.
|
||||||
FileFilter currentFilter = getFileChooser().getFileFilter();
|
FileFilter currentFilter = getFileChooser().getFileFilter();
|
||||||
boolean found = false;
|
boolean found = false;
|
||||||
|
@ -198,7 +198,7 @@ public class TextComponentPrintable implements CountingPrintable {
|
|||||||
* Returns frames under the {@code editor}.
|
* Returns frames under the {@code editor}.
|
||||||
* The frames are created if necessary.
|
* The frames are created if necessary.
|
||||||
*
|
*
|
||||||
* @param editor the {@JEditorPane} to find the frames for
|
* @param editor the {@link JEditorPane} to find the frames for
|
||||||
* @return list of all frames
|
* @return list of all frames
|
||||||
*/
|
*/
|
||||||
private static List<JEditorPane> getFrames(final JEditorPane editor) {
|
private static List<JEditorPane> getFrames(final JEditorPane editor) {
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user