Generated by
JDiff

javax.swing.plaf.basic Documentation Differences

This file contains all the changes in documentation in the package javax.swing.plaf.basic as colored differences. Deletions are shown like this, and additions are shown like this.
If no deletions or additions are shown in an entry, the HTML tags will be what has changed. The new HTML tags are shown in the differences. If no documentation existed, and then some was added in a later version, this change is noted in the appropriate class pages of differences, but the change is not shown on this page. Only changes in existing text are shown here. Similarly, documentation which was inherited from another class or interface is not shown here.
Note that an HTML error in the new documentation may cause the display of other documentation changes to be presented incorrectly. For instance, failure to close a <code> tag will cause all subsequent paragraphs to be displayed differently.

Class BasicArrowButton

JButton object that draws a scaled Arrow in one of the cardinal directions.

Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. AAs future release of Swing will provide1.4 support for long term persistencestorage of all JavaBeansTM has been added to the java.beans package. Please see java.beans.XMLEncoder @version 1.19 0223 12/0203/0001 @author David Kloba


Class BasicBorders

Factory object that can vend Borders appropriate for the basic L & F. @version 1.20 0228 12/0203/0001 @author Georges Saab @author Amy Fowler

Class BasicButtonListener

Button Listener @version 1.46 0255 12/0203/0001 @author Jeff Dinkins @author Arnaud Weber (keyboard UI support)

Class BasicButtonUI

BasicButton implementation @version 1.100 02106 12/0203/0001 @author Jeff Dinkins

Class BasicCheckBoxMenuItemUI

BasicCheckboxMenuItem implementation @version 1.49 0251 12/0203/0001 @author Georges Saab @author David Karlton @author Arnaud Weber

Class BasicCheckBoxUI

CheckboxUI implementation for BasicCheckboxUI

Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. AAs future release of Swing will provide1.4 support for long term persistencestorage of all JavaBeansTM has been added to the java.beans package. Please see java.beans.XMLEncoder @version 1.33 0235 12/0203/0001 @author Jeff Dinkins


Class BasicColorChooserUI

Provides the basic look and feel for a JColorChooser.

@version 1.25 0236 12/0203/0001 @author Tom Santos @author Steve Wilson


Class BasicComboBoxEditor

The default editor for editable combo boxes. The editor is implemented as a JTextField. If the text field is used to edit java.lang.Number objects then its constrained to only accept numbers. @version 1.17 0222 12/0203/0001 @author Arnaud Weber @author Mark Davidson

Class BasicComboBoxEditor.UIResource

A subclass of BasicComboBoxEditor that implements UIResource. BasicComboBoxEditor doesn't implement UIResource directly so that applications can safely override the cellRenderer property with BasicListCellRenderer subclasses.

Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. A future releaseAs of Swing will provide1.4 support for long term persistencestorage of all JavaBeansTM has been added to the java.beans package. Please see java.beans.XMLEncoder


Class BasicComboBoxRenderer

ComboBox renderer

Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. AAs future release of Swing will provide1.4 support for long term persistencestorage of all JavaBeansTM has been added to the java.beans package. Please see java.beans.XMLEncoder @version 1.16 0218 12/0203/0001 @author Arnaud Weber


Class BasicComboBoxRenderer.UIResource

A subclass of BasicComboBoxRenderer that implements UIResource. BasicComboBoxRenderer doesn't implement UIResource directly so that applications can safely override the cellRenderer property with BasicListCellRenderer subclasses.

Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. A future releaseAs of Swing will provide1.4 support for long term persistencestorage of all JavaBeansTM has been added to the java.beans package. Please see java.beans.XMLEncoder


Class BasicComboBoxUI

Basic UI implementation for JComboBox. This class

adds and removes components from theThe combo box is a compound JComboBox.component The arrow button and the editor are managed by this objectwhich means that it is an agregate of many simpler components. The popup menuThis is handled byclass creates and BasicComboPopup.manages BasicComboPopup supplies this class with a MouseListener MouseMotionListener and a KeyListenerthe listeners on the combo box and the combo box model. These listeners areupdate the user interface addedin response to the arrowchanges in buttonthe properties and the JComboBoxstate of bythe combo defaultbox. Subclasses

of BasicComboBoxUI should attach the listeners to whichever components theyAll event handling is handled by listener classes created with like.the installListenerscreatexxxListener() is where listenersmethods and internal getclasses. addedYou tocan change the JComboBoxbehavior (andof model).this class by configureEditoroverriding the createxxxListener() ismethods and supplying your whereown event listeners get added toor subclassing from the editorones supplied in this class. configureArrowButton()

is whereFor adding listenersspecific actions getoveride addedinstallKeyboardActions to theadd actions arrowin buttonresponse to KeyStroke bindings. Inner classes forSee the article handlingKeyboard events:Bindings FocusHandlerin ItemHandlerSwing ListDataHandlerat PropertyChangeHandlerThe Swing KeyHandlerConnection. @version 1.103 07149 12/1003/9901 @author Arnaud Weber @author Tom Santos @author Mark Davidson


Class BasicComboBoxUI.ComboBoxLayoutManager

This layout manager handles the 'standard' layout of combo boxes. It puts the arrow button to the right and the editor to the left. If there is no editor it still keeps the arrow button to the right. This inner class is marked "public" due to a compiler bug. Thisinner class should be treated as a "protected" inner class. Instantiate it only within subclasses of BasicComboBoxUI.

Class BasicComboBoxUI.FocusHandler

This listener hides the popup when the focus is lost. It also repaints when focus is gained or lost. This inner class is marked "public" due to a compiler bug. Thisinner class should be treated as a "protected" inner class. Instantiate it only within subclasses of BasicComboBoxUI.

Class BasicComboBoxUI.ItemHandler

This listener watches for changes to the selection in the combo box and updates the display of the currently selected item. This inner class is

markedThis "public" due to a compiler bug. Thisinner class should be treated as a "protected" inner class. Instantiate it only within subclasses of BasicComboBoxUI. @see createItemListener


Class BasicComboBoxUI.KeyHandler

This listener checks to see if the key event isn't a navigation key. If it finds a key event that wasn't a navigation key it dispatches it to JComboBox.selectWithKeyChar() so that it can do type-ahead. This inner class is marked "public" due to a compiler bug. Thisinner class should be treated as a "protected" inner class. Instantiate it only within subclasses of BasicComboBoxUI.

Class BasicComboBoxUI.ListDataHandler

This listener watches for changes in the data and revalidatesComboBoxModel. This inner class is

markedThis "public" due to a compiler bug. Thisinner class should be treated as a "protected" inner class. Instantiate it only within subclasses of BasicComboBoxUI. @see createListDataListener


Class BasicComboBoxUI.PropertyChangeHandler

This listener watches for bound properties that have changed in the JComboBox. It looks forcombo the model andbox. editor being

Subclasses swapped-outwhich and updateswish to appropriately.listen It also looks forto combo box property changes inshould call the editable enabled and maximumRowCountsuperclass methods to ensure properties.that This inner class is markedthe combo box ui correctly "public"handles dueproperty tochanges. a compiler

This bug.public Thisinner class should be treated as a "protected" inner class. Instantiate it only within subclasses of BasicComboBoxUI. @see createPropertyChangeListener


Class BasicComboBoxUI, void addEditor()

Adds theThis public method is implementation specific and should be private. do not call or override. To implement a specific editor tocreate a custom ComboBoxEditor the@see createEditor @see javax.swing.JComboBox#setEditor @see javax.swing.ComboBoxEditor
Class BasicComboBoxUI, void configureArrowButton()

Configures the arrow button by addingThis public method is implementation specific listenersand should be private. Do not call or override. @see createArrowButton
Class BasicComboBoxUI, void configureEditor()

Configures the editor by setting itsThis protected method is implementation specific font and addingshould be private. do listenersnot call or override. @see addEditor
Class BasicComboBoxUI, JButton createArrowButton()

Creates the arrowan button. Subclasses can create anywhich button theywill like.be The default behavior of this class is to attach various listeners toused as the control to show or hide the popup portion of the buttoncombo returnedbox. by@return thisa method.button Returns an instance ofwhich represents the popup BasicArrowButton.control
Class BasicComboBoxUI, ComboBoxEditor createEditor()

Creates the default editor that is towill be used in editable combo boxes. This method only gets called ifA default editor will be used aonly if customan editor has not already been installedexplicitly inset with setEditor. @return a ComboBoxEditor used for the JComboBoxcombo box @see javax.swing.JComboBox#setEditor
Class BasicComboBoxUI, FocusListener createFocusListener()

Creates thea FocusListener which focus listener that hideswill be added to the popupcombo whenbox. theIf this method returns null then it focus iswill not lostbe added to the combo box. Returns@return an instance of BasicComboBoxUI$FocusHandler.a FocusListener or null
Class BasicComboBoxUI, ItemListener createItemListener()

Creates the iteman listenerItemListener that watches for updates inwhich will be added to the currentcombo box. If this selection so thatmethod returns null then it canwill not updatebe added to the displaycombo box.

Subclasses may override this method to return instances of their own ItemEvent handlers. Returns@return an instance of BasicComboBoxUI$ItemHandler.an ItemListener or null

Class BasicComboBoxUI, KeyListener createKeyListener()

Creates a KeyListener which will be added to the keycombo box. If this method listener for handlingreturns null then type-aheadit will not be added to the combo box. Returns@return an instance ofKeyListener BasicComboBoxUI$KeyHandler.or null
Class BasicComboBoxUI, LayoutManager createLayoutManager()

Creates the standard combo boxa layout manager that hasfor managing the arrow button tocomponents the right andwhich make up the editor to thecombo leftbox. Returns@return an instance of BasicComboBoxUI$ComboBoxLayoutManager.a layout manager
Class BasicComboBoxUI, ListDataListener createListDataListener()

Creates thea list data listener thatwhich will be added to the ComboBoxModel. If this is used for cachingmethod returns null then it will not be added to the preferredcombo sizesbox model. Returns@return an instance of BasicComboBoxUI$ListDataHandler.a ListDataListener or null
Class BasicComboBoxUI, ComboPopup createPopup()

Creates anthe popup implementationportion of the ComboPopupcombo interfacebox. Returns@return an instance of BasicComboPopup.ComboPopup @see ComboPopup
Class BasicComboBoxUI, PropertyChangeListener createPropertyChangeListener()

Creates a PropertyChangeListener which will be added to the listcombo box. If this method returns null data listener that is used for cachingthen it will not be added to the preferredcombo sizesbox. Returns@return an instance of BasicComboBoxUI$PropertyChangeHandler.a PropertyChangeListener or null
Class BasicComboBoxUI, ListCellRenderer createRenderer()

Creates the default renderer that is towill be used in thea non-editiable combo box. This methodA default onlyrenderer will gets calledused only if a custom renderer has nto alreadynot been installedexplicitly inset with setRenderer. @return a ListCellRender used for the JComboBoxcombo box @see javax.swing.JComboBox#setRenderer
Class BasicComboBoxUI, Dimension getDefaultSize()

Return the default size of an empty display area of the combo box using the current renderer and font. @return the size of an empty display area @see getDisplaySize
Class BasicComboBoxUI, void installComponents()

TheCreates editor and arrowinitializes the components which make up the aggregate combo box. This method button are added tois called as part of the JComboBoxUI installation hereprocess.
Class BasicComboBoxUI, void installListeners()

AttachesCreate and install the listeners tofor the JComboBoxcombo box and JComboBoxModelits model. This method is called when the UI is installed.
Class BasicComboBoxUI, void removeEditor()

Removes the editor from theThis public method is implementation JComboBoxspecific and should be private. Itdo alsonot call or override. calls@see unconfigureEditor()addEditor
Class BasicComboBoxUI, void unconfigureArrowButton()

Unconfigures the arrow button by removingThis public method is implementation specific listenersand should be private. Do not call or override. @see createArrowButton
Class BasicComboBoxUI, void unconfigureEditor()

Unconfigures the editor by removingThis protected method is implementation listenersspecific and should be private. Do not call or override. @see addEditor
Class BasicComboBoxUI, void uninstallComponents()

The editoraggregate and/orcomponents arrow button are removed fromwhich compise the combo box theare unregistered JComboBox hereand uninitialized. This method callsis removeAll()called onas the JComboBox justpart toof make sure thatthe everything gets removedUI uninstallation process.
Class BasicComboBoxUI, void uninstallListeners()

RemovesRemove the installed listeners from the JComboBoxcombo box and JComboBoxModelits model. The number and types of listeners removed and in this method should be the same that was added in installListeners

Class BasicComboPopup

This is ana basic implementation of the ComboPopup interface. It is primarily for use by BasicComboBoxUI and its subclasses. BasicComboPopup extends JPopupMenuThis because most combo boxes use aclass represents the ui for the popup menuportion to displayof the list of possiblecombo selectionsbox. BasicComboBoxUI only requires a ComboPopup so subclasses of BasicComboBoxUI aren't required to use this class.

All event handling is handled by listener classes created with the createxxxListener() methods and internal classes. You can change the behavior of this class by overriding the createxxxListener() methods and supplying your own event listeners or subclassing from the ones supplied in this class. Inner classes for handling events: InvocationMouseHandler InvocationMouseMotionHandler InvocationKeyHandler ListSelectionHandler ListDataHandler ListMouseHandler ListMouseMotionHandler PropertyChangeHandler ItemHandler

Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. A future releaseAs of Swing will provide1.4 support for long term persistencestorage of all JavaBeansTM has been added to the java.beans package. Please see java.beans.XMLEncoder @version 1.32 0267 12/0203/0001 @author Tom Santos @author Mark Davidson


Class BasicComboPopup.InvocationKeyHandler

This listener watches forAs of Java 2 theplatform v 1.4 spacebar being pressedthis class is now obsolete and shows/hidesis only included for backwards API compatibility. Do not instantiate or subclass.

All the popupfunctionality of this class has been included in BasicComboBoxUI ActionMap/InputMap accordinglymethods.


Class BasicComboPopup.InvocationMouseHandler

ThisA listener knowsto howbe andregistered upon the combo box (not its popup whenmenu) to invokehandle mouse events that affect the state of the popup menu. The main purpose of this listener is to make the popup menu appear and disappear. ItThis listener also helps with click-and-drag scenarios by setting the selection if the mouse was released over the list during a drag.

Warning: We recommend that you not create subclasses of this class. If you absolutely must create a subclass be sure to invoke the superclass version of each method. @see BasicComboPopup#createMouseListener


Class BasicComboPopup.ItemHandler

This listener watches for changes into the JComboBox's selection. It updatesin the list accordinglycombo box.

Class BasicComboPopup.ListDataHandler

Keeps theAs of selected1.4 this index in the listclass is now obsolete in-syncdoesn't with the combodo anything and box'sis only included for backwards API compatibility. Do not selectioncall or override.

The functionality has been migrated into ItemHandler. @see createItemListener


Class BasicComboPopup.ListSelectionHandler

This listener watchesAs of Java for2 platform v 1.4 this changes in theclass is now listobsolete doesn'st do selectionanything and reportsis only included for backwards API compatibility. them to the combo boxDo not call or override.

Class BasicComboPopup.PropertyChangeHandler

This listener watches for bound propertyproperties changesthat have changed in JComboBoxthe combo box. If the model or

Subclasses which wish theto listen to combo rendererbox property changes should call the superclass methods to ensure that the combo popup hidescorrectly handles property itselfchanges. @see createPropertyChangeListener


Class BasicComboPopup, void configureList()

CalledConfigures the list which is used to configurehold the listcombo box items in the popup. This method is called when the UI class is created. by@see createList().
Class BasicComboPopup, void configurePopup()

Called to configure this JPopupMenuConfigures the popup portion of (BasicComboPopupthe combo box. This method is acalled when the UI class is JPopupMenu)created.
Class BasicComboPopup, void configureScroller()

CalledConfigures tothe scrollable portion configurewhich holds the JScrollPanelist createdwithin the combo box popup. byThis createScroller()method is called when the UI class is created.
Class BasicComboPopup, ItemListener createItemListener()

Creates an itemItemListener listener that watches for changeswhich will be added to in the selectedcombo box. If this method returns null then item init will not be added to the JComboBoxcombo box.

Subclasses may override this method to return instances of their own ItemEvent handlers. Returns@return an instance of BasicComboPopup$ItemHandler.an ItemListener or null

Class BasicComboPopup, KeyListener createKeyListener()

Creates the key listener that is returned bywill be added ComboPopup.getKeyListener()to the combo box. ReturnsIf this method returns null then it an instance ofwill not be BasicComboPopup$InvocationKeyHandleradded to the combo box. @return a KeyListener or null
Class BasicComboPopup, JList createList()

Creates the JList that is used in the popup to display the items in the combo box model. This method is called when the UI class is created. @return a JList used to display the combo box items
Class BasicComboPopup, ListDataListener createListDataListener()

Creates a list data listener that watches for inserted andwhich will be added to removedthe ComboBoxModel. If this method returns null then it will items fromnot be added to the combo box model. @return an instance of a ListDataListener or null
Class BasicComboPopup, MouseListener createListMouseListener()

Creates a mouse listener that watches for mouse events in the popup's list. ReturnsIf this method returns null then it will not be added to the combo box. @return an instance of BasicComboPopup$ListMouseHandler.a MouseListener or null
Class BasicComboPopup, MouseMotionListener createListMouseMotionListener()

Creates a mouse motion listener that watches for mouse motion events in the popup's list. ReturnsIf this method returns null then it will not be added to the combo box. @return an instance of BasicComboPopup$ListMouseMotionHandler.a MouseMotionListener or null
Class BasicComboPopup, ListSelectionListener createListSelectionListener()

Creates a list selection listener that watches for selection changes in the popup's list. ReturnsIf this method returns null then it will not be added to the popup list. @return an instance of BasicComboPopup$ListSelectionHandler.a ListSelectionListener or null
Class BasicComboPopup, MouseListener createMouseListener()

Creates the mousea listener that is returned bywill watch for ComboPopup.getMouseListener()mouse-press and release events on the combo box. ReturnsWarning: When overriding this method make an instance ofsure to maintain BasicComboPopup$InvocationMouseHandlerthe existing behavior. @return a MouseListener which will be added to the combo box or null
Class BasicComboPopup, MouseMotionListener createMouseMotionListener()

Creates the mouse motion listener that is returned bywhich will be added ComboPopup.getMouseMotionListener()to the combo box. ReturnsWarning: When overriding an instance ofthis method make BasicComboPopup$InvocationMouseMotionListenersure to maintain the existing behavior. @return a MouseMotionListener which will be added to the combo box or null
Class BasicComboPopup, PropertyChangeListener createPropertyChangeListener()

Creates a propertyPropertyChangeListener change listener that watches for changes inwhich will be added to the combo thebox. If this method returns null then bound properties init will not be added to the JComboBoxcombo box. Returns@return an instance of BasicComboPopup$PropertyChangeHandler.a PropertyChangeListener or null
Class BasicComboPopup, JScrollPane createScroller()

Creates the JScrollPane that is usedscroll pane which houses in the popup to hold thescrollable list.
Class BasicComboPopup, KeyListener getKeyListener()

Implementation of ComboPopup.getKeyListener(). @return a KeyListener or null @see ComboPopup#getKeyListener
Class BasicComboPopup, MouseListener getMouseListener()

Implementation of ComboPopup.getMouseListener(). @return a MouseListener or null @see ComboPopup#getMouseListener
Class BasicComboPopup, MouseMotionListener getMouseMotionListener()

Implementation of ComboPopup.getMouseMotionListener(). @return a MouseMotionListener or null @see ComboPopup#getMouseMotionListener
Class BasicComboPopup, void installListListeners()

CalledAdds by configureList() to add the necessary listeners to the list control.
Class BasicComboPopup, void startAutoScrolling(int)

Called byThis protected BasicComboPopup$InvocationMouseMotionHandlermethod to handleis implementation auto-specific scrolling theand should listbe private. do not call or override.

Class BasicDesktopIconUI

Basic L&F for a minimized window on a desktop. @version 1.27 0230 12/0203/0001 @author David Kloba @author Steve Wilson @author Rich Schiavi

Class BasicDesktopPaneUI

Basic L&F for a desktop. @version 1.36 0244 12/0203/0001 @author Steve Wilson
Class BasicDesktopPaneUI, KeyStroke closeKey

As of Java 2 platform v1.3 this previously undocumented field is no longer used. Key bindings are now defined by the LookAndFeel please refer to the key bindings specification for further details. @deprecated As of JDK version 1.3.
Class BasicDesktopPaneUI, KeyStroke maximizeKey

As of Java 2 platform v1.3 this previously undocumented field is no longer used. Key bindings are now defined by the LookAndFeel please refer to the key bindings specification for further details. @deprecated As of JDK version 1.3.
Class BasicDesktopPaneUI, KeyStroke minimizeKey

As of Java 2 platform v1.3 this previously undocumented field is no longer used. Key bindings are now defined by the LookAndFeel please refer to the key bindings specification for further details. @deprecated As of JDK version 1.3.
Class BasicDesktopPaneUI, KeyStroke navigateKey

As of Java 2 platform v1.3 this previously undocumented field is no longer used. Key bindings are now defined by the LookAndFeel please refer to the key bindings specification for further details. @deprecated As of JDK version 1.3.
Class BasicDesktopPaneUI, KeyStroke navigateKey2

As of Java 2 platform v1.3 this previously undocumented field is no longer used. Key bindings are now defined by the LookAndFeel please refer to the key bindings specification for further details. @deprecated As of JDK version 1.3.

Class BasicEditorPaneUI

Provides the look and feel for a JEditorPane.

Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. AAs future release of Swing will provide1.4 support for long term persistencestorage of all JavaBeansTM has been added to the java.beans package. Please see java.beans.XMLEncoder @author Timothy Prinzing @version 1.24 0428 12/0603/0001


Class BasicFileChooserUI.DoubleClickListener, void mouseEntered(MouseEvent)

Invoked whenThe JList used for representing the mousefiles is created by subclasses but the selection is monitored in this class. The TransferHandler installed in the JFileChooser is also installed in the file enterslist as it is used as the actual transfer source. The list is updated on a componentmouse enter to reflect the current data transfer state of the file chooser.

Class BasicGraphicsUtils, void drawString(Graphics, String, int, int, int)

Draw a string with the graphics g at location (x y) just like g.drawString() would. The first occurenceoccurrence of underlineChar in text will be underlined. The matching algorithm is not case sensitive.

Class BasicHTML

Support for providing html views for the swing components. This translates a simple html string to a javax.swing.text.View implementation that can render the html and provide the necessary layout semantics. @author Timothy Prinzing @version 1.11 0216 12/0203/0001

Class BasicIconFactory

Factory object that can vend Icons appropriate for the basic L & F.

Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. AAs future release of Swing will provide1.4 support for long term persistencestorage of all JavaBeansTM has been added to the java.beans package. Please see java.beans.XMLEncoder @version 1.22 0225 12/0203/0001 @author David Kloba @author Georges Saab


Class BasicInternalFrameTitlePane

The class that manages a basic title bar

Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. AAs future release of Swing will provide1.4 support for long term persistencestorage of all JavaBeansTM has been added to the java.beans package. Please see java.beans.XMLEncoder @version 1.33 0241 01/0218/0001 @author David Kloba @author Steve Wilson


Class BasicInternalFrameUI

A basic L&F implementation of JInternalFrame. @version 1.75 0397 12/1303/01 @author David Kloba @author Rich Schiavi

Class BasicInternalFrameUI.GlassPaneDispatcher, void mouseDragged(MouseEvent)

IgnoreForward the mouseDragged eventsevent to the underlying child container. @see #mousePressed
Class BasicInternalFrameUI.GlassPaneDispatcher, void mouseReleased(MouseEvent)

IgnoreForward the mouseReleased eventsevent to the underlying child container. @see #mousePressed

Class BasicInternalFrameUI, void closeFrame(JInternalFrame)

This method is called when the user wants to close the frame. The playCloseSound Action is fired. This action is delegated to the desktopManager.
Class BasicInternalFrameUI, void deiconifyFrame(JInternalFrame)

This method is called when the user wants to deiconify the frame. The playRestoreUpSound Action is fired. This action is delegated to the desktopManager.
Class BasicInternalFrameUI, void iconifyFrame(JInternalFrame)

This method is called when the user wants to iconify the frame. The playMinimizeSound Action is fired. This action is delegated to the desktopManager.
Class BasicInternalFrameUI, void maximizeFrame(JInternalFrame)

This method is called when the user wants to maximize the frame. The playMaximizeSound Action is fired. This action is delegated to the desktopManager.
Class BasicInternalFrameUI, void minimizeFrame(JInternalFrame)

This method is called when the user wants to minimize the frame. The playRestoreDownSound Action is fired. This action is delegated to the desktopManager.
Class BasicInternalFrameUI, void replacePane(JComponent, JComponent)

AddsInstalls necessary mouseHandlersmouse tohandlers currentPaneon newPane and adds it to the frame. Reverse process for the newPanecurrentPane.

Class BasicLabelUI

A Windows L&F implementation of LabelUI. This implementation is completely static i.e. there's only one UIView implementation that's shared by all JLabel objects. @version 1.69 0276 12/0203/0001 @author Hans Muller

Class BasicListUI

A Windows L&F implementation of ListUI.

@version 1.54 0287 12/0203/0001 @author Hans Muller @author Philip Milne


Class BasicListUI.ListDataHandler

The ListDataListener that's added to the JLists model at installUI time and whenever the JList.model property changes.

Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. AAs future release of Swing will provide1.4 support for long term persistencestorage of all JavaBeansTM has been added to the java.beans package. Please see java.beans.XMLEncoder @see JList#getModel @see #maybeUpdateLayoutState @see #createListDataListener @see #installUI


Class BasicListUI.ListSelectionHandler

The ListSelectionListener that's added to the JLists selection model at installUI time and whenever the JList.selectionModel property changes. When the selection changes we repaint the affected rows.

Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. AAs future release of Swing will provide1.4 support for long term persistencestorage of all JavaBeansTM has been added to the java.beans package. Please see java.beans.XMLEncoder @see #createListSelectionListener @see #getCellBounds @see #installUI


Class BasicListUI.MouseInputHandler

Mouse input and focus handling for JList. An instance of this class is added to the appropriate java.awt.Component lists at installUI() time. Note keyboard input is handled with JComponent KeyboardActions see installKeyboardActions().

Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. AAs future release of Swing will provide1.4 support for long term persistencestorage of all JavaBeansTM has been added to the java.beans package. Please see java.beans.XMLEncoder @see #createMouseInputListener @see #installKeyboardActions @see #installUI


Class BasicListUI.PropertyChangeHandler

The PropertyChangeListener that's added to the JList at installUI time. When the value of a JList property that affects layout changes we set a bit in updateLayoutStateNeeded. If the JLists model changes we additionally remove our listeners from the old model. Likewise for the JList selectionModel.

Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. AAs future release of Swing will provide1.4 support for long term persistencestorage of all JavaBeansTM has been added to the java.beans package. Please see java.beans.XMLEncoder @see #maybeUpdateLayoutState @see #createPropertyChangeListener @see #installUI


Class BasicListUI, Dimension getMaximumSize(JComponent)

@returns Thereturn the preferred size. @see #getPreferredSize
Class BasicListUI, Dimension getMinimumSize(JComponent)

@returns Thereturn the preferred size. @see #getPreferredSize
Class BasicListUI, Dimension getPreferredSize(JComponent)

The preferredSize of athe list depends upon the layout orientation.
Layout OrientationPreferred Size
JList.VERTICAL The preferredSize of the list is total height of the rows and the maximum width of the cells. If JList.fixedCellHeight is specified then the total height of the rows is just (cellVerticalMargins + fixedCellHeight) * model.getSize() where rowVerticalMargins is the space we allocate for drawing the yellow focus outline. Similarly if JListfixedCellWidthfixedCellWidth is specified then we just use that.
JList.VERTICAL_WRAP If the visible row count is greater than zero the preferredHeight is the maximum cell height * visibleRowCount. If the visible row count is < 0 the preferred height is either the current height of the list or the maximum cell height whichever is bigger. The preferred width is than the maximum cell width * number of columns needed. Where the number of columns needs is list.height / max cell height. Max cell height is either the fixed cell height or is determined by iterating through all the cells to find the maximum height from the ListCellRenderer.
JList.HORIZONTAL_WRAP If the visible row count is greater than zero the preferredHeight is the maximum cell height * adjustedRowCount. Where visibleRowCount is used to determine the number of columns. Because this lays out horizontally the number of rows is then determined from the column count. For plusexample lets say you have a model with 10 items and the visible row count is 8. The number of columns needed to display this is 2 but you no longer need 8 rows to display this you only need 5 thus the adjustedRowCount is 5.

If the visible row count is < 0 the preferred height is dictated by the number of columns which will be as many as can fit in the width of the JList (width / max cell width) with at least one column. The preferred height then becomes the horizontalmodel size / number of columns * maximum cell height. Max cell height is either the fixed cell height or is determined by iterating through all the cells to find the maximum height from the ListCellRenderer.

The above specifies the raw preferred
marginswidth and height. The resulting preferred width is the above width + insets.left + insets.right and the resulting preferred height is the above height + insets.top + insets.bottom. Where the Insets are determined from list.getInsets(). @param c The JList component. @return The total size of the list.
Class BasicListUI, void installKeyboardActions()

RegisterRegisters keyboard actions for the up and down arrow keys. The actions just call outkeyboard to protected methodsbindings on the subclassesJList that want to override or extend keyboard behavior should considerthe justBasicListUI overriding those methodsis associated with. This method is called at installUI() time. @see #selectPreviousIndex @see #selectNextIndex @see #installUI
Class BasicListUI, int locationToIndex(JList, Point)

Convert a point in JList coordinates to the closest index of the cell at that location. To determine if the cell actually contains the specified location use a combination of this method and getCellBounds. Returns -1 if the model is empty. @return The index of the cell at location or -1. @see ListUI#locationToIndex
Class BasicListUI, void selectNextIndex()

Selected the previous row and force it to be visible. Called by the KeyEvent.VK_DOWN keyboard action. @see #installKeyboardActions @see JList#ensureIndexIsVisible
Class BasicListUI, void selectPreviousIndex()

Selected the previous row and force it to be visible. Called by the KeyEvent.VK_UP keyboard action. @see #installKeyboardActions @see JList#ensureIndexIsVisible
Class BasicListUI, void uninstallDefaults()

Set the JList properties that haven't been explicitly overridenoverridden to null. A property is considered overridden if its current value is not a UIResource. @see #installDefaults @see #uninstallUI @see CellRendererPane
Class BasicListUI, void uninstallKeyboardActions()

UnregisterUnregisters keyboard actions forinstalled the up and downfrom arrow keysinstallKeyboardActions. This method is called at uninstallUI() time - subclassess should ensure that all of the keyboard actions registered at installUI time are removed here. @see #selectPreviousIndex @see #selectNextIndex @see #installUI

Class BasicLookAndFeel

Implements the a standard base LookAndFeel class from which standard desktop LookAndFeel classes (JLF Mac Windows etc.) can be derived. This class cannot be instantiated directly however the UI classes "Basic" defines can be.

Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. AAs future release of Swing will provide1.4 support for long term persistencestorage of all JavaBeansTM has been added to the java.beans package. Please see java.beans.XMLEncoder @version 1.160 06203 12/1403/01 @author unattributed


Class BasicMenuBarUI

A default L&F implementation of MenuBarUI. This implementation is a "combined" view/controller. @version 1.74 0276 12/0203/0001 @author Georges Saab @author David Karlton @author Arnaud Weber

Class BasicMenuItemUI

BasicMenuItem implementation @version 1.101 04115 12/0503/0001 @author Georges Saab @author David Karlton @author Arnaud Weber @author Fredrik Lagerblad

Class BasicMenuUI

A default L&F implementation of MenuUI. This implementation is a "combined" view/controller. @version 1.131 02141 12/0903/01 @author Georges Saab @author David Karlton @author Arnaud Weber

Class BasicOptionPaneUI

Provides the basic look and feel for a JOptionPane. BasicMessagePaneUI provides a means to place an icon message and buttons into a Container. TheGenerally the layout will look like:

 ------------------ | i | message | | c | message | | o | message | | n | message | ------------------ | buttons | |________________| 
icon is an instance of Icon that is wrapedwrapped inside a JLabel. The message is an opaque object and is tested for the following: if the message is a Component it is added to the Container if it is an Icon it is wrapped inside a JLabel and added to the Container otherwise it is wrapped inside a JLabel.

The above layout is used when the option pane's ComponentOrientation property is horizontal left-to-right. The layout will be adjusted appropriately for other orientations.

The Container message icon and buttons are all determined from abstract methods. @version 1.36 0253 12/0203/0001 @author James Gosling @author Scott Violet @author Amy Fowler


Class BasicOptionPaneUI.ButtonAreaLayout

ButtonAreaLayout acts similiarbehaves in a similar manner to FlowLayout. It lays out all components from left to right. If syncAllWidths is true the widths of each component will be set to the largest preferred size width. This inner class is marked "public" due to a compiler bug. This class should be treated as a "protected" inner class. Instantiate it only within subclasses of BasicOptionPaneUI.

Class BasicOptionPaneUI, Container createButtonArea()

Creates and returns a Container containincontaining the buttons. The buttons are created by calling getButtons.
Class BasicOptionPaneUI, Icon getIcon()

Returns the icon from the JOptionPane the recieverreceiver is providing the look and feel for or the default icon as returned from getDefaultIcon.
Class BasicOptionPaneUI, Dimension getMinimumOptionPaneSize()

Returns the minimum size the option pane should be. Primarily provided for subclassers wishinwishing to offer a different minimum size.
Class BasicOptionPaneUI, Dimension getPreferredSize(JComponent)

If c is the JOptionPane the recieverreceiver is contained in the preferred size that is returned is the maximum of the preferred size of the LayoutManager for the JOptionPane and getMinimumOptionPaneSize.
Class BasicOptionPaneUI, void installUI(JComponent)

Installs the recieverreceiver as the L&F for the passed in JOptionPane.
Class BasicOptionPaneUI, JOptionPane optionPane

JOptionPane that the recieverreceiver is providing the look and feel for.

Class BasicPanelUI

BasicPanel implementation @version 1.6 027 12/0203/0001 @author Steve Wilson

Class BasicPasswordFieldUI

Provides the Windows look and feel for a password field. The only difference from the standard text field is that the view of the text is simply a string of the echo character as specified in JPasswordField rather than the real text contained in the field. @author Timothy Prinzing @version 1.26 0227 12/0203/0001

Class BasicPopupMenuSeparatorUI

A Basic L&F implementation of PopupMenuSeparatorUI. This implementation is a "combined" view/controller. @version 1.8 029 12/0203/0001 @author Jeff Shapiro

Class BasicPopupMenuUI

A Windows L&F implementation of PopupMenuUI. This implementation is a "combined" view/controller. @version 1.71 1187 12/2703/0001 @author Georges Saab @author David Karlton @author Arnaud Weber

Class BasicProgressBarUI

A Basic L&F implementation of ProgressBarUI. @version 1.45 0258 12/0203/0001 @author Michael C. Albers @author Kathy Walrath
Class BasicProgressBarUI, Color getSelectionBackground()

The "selectionBackground" is the color of the text when it is drawnpainted over an unfilled area of the progress bar.
Class BasicProgressBarUI, Color getSelectionForeground()

The "selectionForeground" is the color of the text when it is drawnpainted over a filled area of the progress bar.
Class BasicProgressBarUI, Point getStringPlacement(Graphics, String, int, int, int, int)

Designate the place where the progress string will be drawnpainted. This implementation places it at the center of the progress bar (in both x and y). Override this if you want to right left top or bottom align the progress string or if you need to nudge it around for any reason.
Class BasicProgressBarUI, void paint(Graphics, JComponent)

All purposeDelegates painting paint method that should do the right thing for almost all linear progress bars. By setting a few values in the defaults table things should work just fine to paint yourone progressof bar. Naturally override this iftwo youmethods: arepaintDeterminate making a circular or semi-circular progress barpaintIndeterminate.

Class BasicRadioButtonMenuItemUI

BasicRadioButtonMenuItem implementation @version 1.41 0243 12/0203/0001 @author Georges Saab @author David Karlton

Class BasicRadioButtonUI

RadioButtonUI implementation for BasicRadioButtonUI @version 1.61 0264 12/0203/0001 @author Jeff Dinkins

Class BasicRootPaneUI

Basic implementation of RootPaneUI there is one shared between all JRootPane instances. @version 1.3 026 12/0203/0001 @author Scott Violet

Class BasicScrollBarUI

Implementation of ScrollBarUI for the Basic Look and Feel @version 1.57 0270 12/0203/0001 @author Rich Schiavi @author David Kloba @author Hans Muller

Class BasicScrollBarUI.ScrollListener

Listener for scrolling events intiatedinitiated in the ScrollPane.

Class BasicScrollBarUI.TrackListener, void mouseDragged(MouseEvent)

Set the models value to the position of the thumb's top/left of Vertical scrollbar or the thumbleft/right of Horizontal scrollbar in left-to-right/right-to-left scrollbar relative to the origin of the track.

Class BasicScrollBarUI, Dimension getMinimumSize(JComponent)

A vertical scrollbarsscrollbar's minimum width is the largest minimum width of the (non null) increment/decrement buttons and the minimum width of the thumb. The minimum height is the sum of the minimum heights of the same parts. The basis for the preferred size of a horizontal scrollbar is similar.

The minimumSize is only computed once subequentsubsequent calls to this method just return a cached size. T @param c Thethe JScrollBar that's delegating this method to us. @return Thethe minimum size of a Basicbasic JScrollBar. @see #getMaximumSize @see #getPreferredSize

Class BasicScrollBarUI, Dimension getPreferredSize(JComponent)

A vertical scrollbarsscrollbar's preferred width is the maximum of preferred widths of the (non null) increment/decrement buttons and the minimum width of the thumb. The preferred height is the sum of the preferred heights of the same parts. The basis for the preferred size of a horizontal scrollbar is similar.

The preferredSize is only computed once subequentsubsequent calls to this method just return a cached size. T @param c Thethe JScrollBar that's delegating this method to us. @return Thethe preferred size of a Basic JScrollBar. @see #getMaximumSize @see #getMinimumSize

Class BasicScrollBarUI, Rectangle getTrackBounds()

ReturnReturns the current bounds of the track i.e. the space in between the increment and decrement buttons less the insets. The value returned by this method is updated each time the scrollbar is layedlaid out (validated).

Warning : the value returned by this method should not be be modified it's a reference to the actual rectangle not a copy. @return Thethe current bounds of the scrollbar track. @see #layoutContainer


Class BasicScrollPaneUI

A default L&F implementation of ScrollPaneUI. @version 1.52 0263 12/0203/0001 @author Hans Muller
Class BasicScrollPaneUI, PropertyChangeListener createPropertyChangeListener()

Creates an instance of PropertyChangeListener that's added to the JScrollPane by installUI(). Subclasses can override this method to return a