|
Generated by JDiff |
||||||||
| PREV PACKAGE NEXT PACKAGE FRAMES NO FRAMES | |||||||||
This file contains all the changes in documentation in the packagejavax.swing.plaf.basicas colored differences. Deletions are shownlike 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.
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.
AAsfuture releaseofSwing will provide1.4 support for long termpersistencestorage of all JavaBeansTM has been added to thejava.beanspackage. Please see java.beans.XMLEncoder @version 1.19 0223 12/0203/0001 @author David Kloba
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
Button Listener @version 1.46 0255 12/0203/0001 @author Jeff Dinkins @author Arnaud Weber (keyboard UI support)
BasicButton implementation @version 1.100 02106 12/0203/0001 @author Jeff Dinkins
BasicCheckboxMenuItem implementation @version 1.49 0251 12/0203/0001 @author Georges Saab @author David Karlton @author Arnaud Weber
CheckboxUI implementation for BasicCheckboxUIWarning: 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.
AAsfuture releaseofSwing will provide1.4 support for long termpersistencestorage of all JavaBeansTM has been added to thejava.beanspackage. Please see java.beans.XMLEncoder @version 1.33 0235 12/0203/0001 @author Jeff Dinkins
Provides the basic look and feel for a JColorChooser.@version 1.
25 0236 12/0203/0001 @author Tom Santos @author Steve Wilson
The default editor for editable combo boxes. The editor is implemented as a JTextField. If the text field is used to editjava.lang.Numberobjects then its constrained to only accept numbers. @version 1.17 0222 12/0203/0001 @author Arnaud Weber @author Mark Davidson
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 ofSwing will provide1.4 support for long termpersistencestorage of all JavaBeansTM has been added to thejava.beanspackage. Please see java.beans.XMLEncoder
ComboBox rendererWarning: 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.
AAsfuture releaseofSwing will provide1.4 support for long termpersistencestorage of all JavaBeansTM has been added to thejava.beanspackage. Please see java.beans.XMLEncoder @version 1.16 0218 12/0203/0001 @author Arnaud Weber
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 ofSwing will provide1.4 support for long termpersistencestorage of all JavaBeansTM has been added to thejava.beanspackage. Please see java.beans.XMLEncoder
Basic UI implementation for JComboBox.This class
adds and removes components from theThe combo box is a compoundJComboBox.componentThe arrow button and the editor are managed by this objectwhich means that it is an agregate of many simpler components.The popup menuThisis handled byclass creates andBasicComboPopup.managesBasicComboPopup supplies this class with a MouseListener MouseMotionListener and a KeyListenerthe listeners on the combo box and the combo box model. These listenersareupdate the user interfaceaddedin response tothe arrowchanges inbuttonthe properties andthe JComboBoxstate ofbythe combodefaultbox.Subclasses
of BasicComboBoxUI should attach the listeners to whichever components theyAll event handling is handled by listener classes created withlike.theinstallListenerscreatexxxListener()is where listenersmethods and internalgetclasses.addedYoutocan change theJComboBoxbehavior(andofmodel).this class byconfigureEditoroverriding thecreatexxxListener()ismethods and supplying yourwhereown event listenersget added toor subclassing from theeditorones supplied in this class.configureArrowButton()
is whereFor addinglistenersspecific actionsgetoverideaddedinstallKeyboardActionstotheadd actionsarrowinbuttonresponse to KeyStroke bindings.Inner classes forSee the articlehandlingKeyboardevents:BindingsFocusHandlerinItemHandlerSwingListDataHandleratPropertyChangeHandlerThe SwingKeyHandlerConnection. @version 1.103 07149 12/1003/9901 @author Arnaud Weber @author Tom Santos @author Mark Davidson
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. Thisinner class is marked "public" due to acompiler bug. Thisinner class should be treated asa "protected" inner class. Instantiate it only within subclasses ofBasicComboBoxUI.
This listener hides the popup when the focus is lost. It also repaints when focus is gained or lost. Thisinner class is marked "public" due to acompiler bug. Thisinner class should be treated asa "protected" inner class. Instantiate it only within subclasses ofBasicComboBoxUI.
This listener watches for changes to the selection in the combo boxand updates the display of the currently selected item.This inner class is
markedThis"public" due to acompiler bug. Thisinner class should be treated asa "protected" inner class. Instantiate it only within subclasses ofBasicComboBoxUI. @see createItemListener
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. Thisinner class is marked "public" due to acompiler bug. Thisinner class should be treated asa "protected" inner class. Instantiate it only within subclasses ofBasicComboBoxUI.
This listener watches for changes in thedata and revalidatesComboBoxModel.This inner class is
markedThis"public" due to acompiler bug. Thisinner class should be treated asa "protected" inner class. Instantiate it only within subclasses ofBasicComboBoxUI. @see createListDataListener
This listener watches for bound properties that have changed in theJComboBox. It looks forcombothe model andbox.editor beingSubclasses
swapped-outwhichand updateswish toappropriately.listenIt also looks forto combo box property changesinshould call theeditable enabled and maximumRowCountsuperclass methods to ensureproperties.thatThis inner class is markedthe combo box ui correctly"public"handlesduepropertytochanges.a compilerThis
bug.publicThisinner class should be treated asa "protected" inner class. Instantiate it only within subclasses ofBasicComboBoxUI. @see createPropertyChangeListener
Class BasicComboBoxUI, void configureArrowButton()Adds theThis public method is implementation specific and should be private. do not call or override. To implement a specific editortocreate a customComboBoxEditorthe@see createEditor @see javax.swing.JComboBox#setEditor @see javax.swing.ComboBoxEditor
Class BasicComboBoxUI, void configureEditor()Configures the arrow button by addingThis public method is implementation specificlistenersand should be private. Do not call or override. @see createArrowButton
Class BasicComboBoxUI, JButton createArrowButton()Configures the editor by setting itsThis protected method is implementation specificfontandaddingshould be private. dolistenersnot call or override. @see addEditor
CreatesClass BasicComboBoxUI, ComboBoxEditor createEditor()the arrowan button. Subclasses can createanywhichbutton theywilllike.beThe default behavior of this class is to attach various listeners toused as the control to show or hide the popup portion of thebuttoncomboreturnedbox.by@returnthisamethod.buttonReturns an instance ofwhich represents the popupBasicArrowButton.control
Creates the default editor thatClass BasicComboBoxUI, FocusListener createFocusListener()is towill be used in editable combo boxes.This method only gets called ifA default editor will be usedaonly ifcustoman editor has notalreadybeeninstalledexplicitlyinset withsetEditor. @return aComboBoxEditorused for theJComboBoxcombo box @see javax.swing.JComboBox#setEditor
CreatesClass BasicComboBoxUI, ItemListener createItemListener()theaFocusListenerwhichfocus listener that hideswill be added to thepopupcombowhenbox.theIf this method returns null then itfocus iswill notlostbe added to the combo box.Returns@return an instance ofBasicComboBoxUI$FocusHandler.aFocusListeneror null
CreatesClass BasicComboBoxUI, KeyListener createKeyListener()the itemanlistenerItemListenerthat watches for updates inwhich will be added to thecurrentcombo box. If thisselection so thatmethod returns null then itcanwill notupdatebe added to thedisplaycombo box.Subclasses may override this method to return instances of their own ItemEvent handlers
.Returns@return an instance ofBasicComboBoxUI$ItemHandler.anItemListeneror null
Creates aClass BasicComboBoxUI, LayoutManager createLayoutManager()KeyListenerwhich will be added to thekeycombo box. If this methodlistener for handlingreturns null thentype-aheadit will not be added to the combo box.Returns@return an instanceofKeyListenerBasicComboBoxUI$KeyHandler.or null
CreatesClass BasicComboBoxUI, ListDataListener createListDataListener()the standard combo boxa layout managerthat hasfor managing thearrow button tocomponentsthe right andwhich make up theeditor to thecomboleftbox.Returns@return an instance ofBasicComboBoxUI$ComboBoxLayoutManager.a layout manager
CreatesClass BasicComboBoxUI, ComboPopup createPopup()thea list data listenerthatwhich will be added to theComboBoxModel. If thisis used for cachingmethod returns null then it will not be added to thepreferredcombosizesbox model.Returns@return an instance ofBasicComboBoxUI$ListDataHandler.aListDataListeneror null
CreatesClass BasicComboBoxUI, PropertyChangeListener createPropertyChangeListener()anthe popupimplementationportion of theComboPopupcombointerfacebox.Returns@return an instance ofBasicComboPopup.ComboPopup@see ComboPopup
Creates aClass BasicComboBoxUI, ListCellRenderer createRenderer()PropertyChangeListenerwhich will be added to thelistcombo box. If this method returns nulldata listener that is used for cachingthen it will not be added to thepreferredcombosizesbox.Returns@return an instance ofBasicComboBoxUI$PropertyChangeHandler.aPropertyChangeListeneror null
Creates the default renderer thatClass BasicComboBoxUI, Dimension getDefaultSize()is towill be used inthea non-editiable combo box.This methodA defaultonlyrenderer willgets calledused only if acustomrenderer hasnto alreadynot beeninstalledexplicitlyinset withsetRenderer. @return aListCellRenderused for theJComboBoxcombo box @see javax.swing.JComboBox#setRenderer
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 getDisplaySizeClass BasicComboBoxUI, void installComponents()
Class BasicComboBoxUI, void installListeners()TheCreateseditorandarrowinitializes the components which make up the aggregate combo box. This methodbutton are added tois called as part of theJComboBoxUI installationhereprocess.
Class BasicComboBoxUI, void removeEditor()AttachesCreate and install the listenerstofor theJComboBoxcombo box andJComboBoxModelits model. This method is called when the UI is installed.
Class BasicComboBoxUI, void unconfigureArrowButton()Removes the editor from theThis public method is implementationJComboBoxspecific and should be private.Itdoalsonot call or override.calls@seeunconfigureEditor()addEditor
Class BasicComboBoxUI, void unconfigureEditor()Unconfigures the arrow button by removingThis public method is implementation specificlistenersand should be private. Do not call or override. @see createArrowButton
Class BasicComboBoxUI, void uninstallComponents()Unconfigures the editor by removingThis protected method is implementationlistenersspecific and should be private. Do not call or override. @see addEditor
TheClass BasicComboBoxUI, void uninstallListeners()editoraggregateand/orcomponentsarrow button are removed fromwhich compise the combo boxtheare unregisteredJComboBox hereand uninitialized. This methodcallsisremoveAll()calledonasthe JComboBox justparttoofmake sure thattheeverything gets removedUI uninstallation process.
RemovesRemove the installed listeners from theJComboBoxcombo box andJComboBoxModelits model. The number and types of listeners removed and in this method should be the same that was added ininstallListeners
This isana basic implementation of theComboPopupinterface.It is primarily for use by BasicComboBoxUI and its subclasses. BasicComboPopup extends JPopupMenuThisbecause most combo boxes use aclass represents the ui for the popupmenuportionto displayof thelist of possiblecomboselectionsbox.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 thecreatexxxListener()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 ItemHandlerWarning: 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 ofSwing will provide1.4 support for long termpersistencestorage of all JavaBeansTM has been added to thejava.beanspackage. Please see java.beans.XMLEncoder @version 1.32 0267 12/0203/0001 @author Tom Santos @author Mark Davidson
This listener watches forAs of Java 2theplatform v 1.4spacebar being pressedthis class is now obsolete andshows/hidesis only included for backwards API compatibility. Do not instantiate or subclass.All
thepopupfunctionality of this class has been included in BasicComboBoxUI ActionMap/InputMapaccordinglymethods.
ThisA listenerknowstohowbeandregistered upon the combo box (not its popupwhenmenu) toinvokehandle 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
This listener watches for changesinto theJComboBox'sselection.It updatesin thelist accordinglycombo box.
Keeps theAs ofselected1.4 thisindex in the listclass is now obsoletein-syncdoesn'twith the combodo anything andbox'sis only included for backwards API compatibility. Do notselectioncall or override.The functionality has been migrated into
. @see createItemListenerItemHandler
This listener watchesAs of Javafor2 platform v 1.4 thischanges in theclass is nowlistobsolete doesn'st doselectionanything andreportsis only included for backwards API compatibility.them to the combo boxDo not call or override.
This listener watches for boundpropertypropertieschangesthat have changed inJComboBoxthe combo box.If the model orSubclasses which wish
theto listen to comborendererbox property changes should call the superclass methods to ensure that the combo popuphidescorrectly handles propertyitselfchanges. @see createPropertyChangeListener
Class BasicComboPopup, void configurePopup()CalledConfigures the list which is used toconfigurehold thelistcombo box items in the popup. This method is called when the UI class is created.by@see createList().
Class BasicComboPopup, void configureScroller()Called to configure this JPopupMenuConfigures the popup portion of(BasicComboPopupthe combo box. This method isacalled when the UI class isJPopupMenu)created.
Class BasicComboPopup, ItemListener createItemListener()CalledConfigurestothe scrollable portionconfigurewhich holds theJScrollPanelistcreatedwithin the combo box popup.byThiscreateScroller()method is called when the UI class is created.
Creates anClass BasicComboPopup, KeyListener createKeyListener()itemItemListenerlistener that watches for changeswhich will be added tointheselectedcombo box. If this method returns null thenitem init will not be added to theJComboBoxcombo box.Subclasses may override this method to return instances of their own ItemEvent handlers
.Returns@return an instance ofBasicComboPopup$ItemHandler.anItemListeneror null
Creates the key listener thatClass BasicComboPopup, JList createList()is returned bywill be addedComboPopup.getKeyListener()to the combo box.ReturnsIf this method returns null then itan instance ofwill not beBasicComboPopup$InvocationKeyHandleradded to the combo box. @return aKeyListeneror null
Creates the JListClass BasicComboPopup, ListDataListener createListDataListener()that isused in the popup to display the items in the combo box model. This method is called when the UI class is created. @return aJListused to display the combo box items
Creates a list data listenerClass BasicComboPopup, MouseListener createListMouseListener()that watches for inserted andwhich will be added toremovedtheComboBoxModel. If this method returns null then it willitems fromnot be added to the combo box model. @return an instance of aListDataListeneror null
Creates a mouse listener that watches for mouse events in the popup's list.Class BasicComboPopup, MouseMotionListener createListMouseMotionListener()ReturnsIf this method returns null then it will not be added to the combo box. @return an instance ofBasicComboPopup$ListMouseHandler.aMouseListeneror null
Creates a mouse motion listener that watches for mouse motion events in the popup's list.Class BasicComboPopup, ListSelectionListener createListSelectionListener()ReturnsIf this method returns null then it will not be added to the combo box. @return an instance ofBasicComboPopup$ListMouseMotionHandler.aMouseMotionListeneror null
Creates a list selection listener that watches for selection changes in the popup's list.Class BasicComboPopup, MouseListener createMouseListener()ReturnsIf this method returns null then it will not be added to the popup list. @return an instance ofBasicComboPopup$ListSelectionHandler.aListSelectionListeneror null
CreatesClass BasicComboPopup, MouseMotionListener createMouseMotionListener()the mousea listener thatis returned bywill watch forComboPopup.getMouseListener()mouse-press and release events on the combo box.ReturnsWarning: When overriding this method makean instance ofsure to maintainBasicComboPopup$InvocationMouseHandlerthe existing behavior. @return aMouseListenerwhich will be added to the combo box or null
Creates the mouse motion listenerClass BasicComboPopup, PropertyChangeListener createPropertyChangeListener()that is returned bywhich will be addedComboPopup.getMouseMotionListener()to the combo box.ReturnsWarning: When overridingan instance ofthis method makeBasicComboPopup$InvocationMouseMotionListenersure to maintain the existing behavior. @return aMouseMotionListenerwhich will be added to the combo box or null
Creates aClass BasicComboPopup, JScrollPane createScroller()propertyPropertyChangeListenerchange listener that watches for changes inwhich will be added to the combothebox. If this method returns null thenbound properties init will not be added to theJComboBoxcombo box.Returns@return an instance ofBasicComboPopup$PropertyChangeHandler.aPropertyChangeListeneror null
Creates theClass BasicComboPopup, KeyListener getKeyListener()JScrollPane that is usedscroll pane which housesinthepopup to hold thescrollable list.
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()Class BasicComboPopup, void startAutoScrolling(int)CalledAddsby configureList() to addthenecessarylisteners to the list control.
Called byThis protectedBasicComboPopup$InvocationMouseMotionHandlermethodto handleis implementationauto-specificscrolling theand shouldlistbe private. do not call or override.
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
Basic L&F for a desktop. @version 1.Class BasicDesktopPaneUI, KeyStroke closeKey36 0244 12/0203/0001 @author Steve Wilson
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 ofClass BasicDesktopPaneUI, KeyStroke maximizeKeyJDK version1.3.
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 ofClass BasicDesktopPaneUI, KeyStroke minimizeKeyJDK version1.3.
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 ofClass BasicDesktopPaneUI, KeyStroke navigateKeyJDK version1.3.
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 ofClass BasicDesktopPaneUI, KeyStroke navigateKey2JDK version1.3.
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 ofJDK version1.3.
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.
AAsfuture releaseofSwing will provide1.4 support for long termpersistencestorage of all JavaBeansTM has been added to thejava.beanspackage. Please see java.beans.XMLEncoder @author Timothy Prinzing @version 1.24 0428 12/0603/0001
Invoked whenThe JList used for representing themousefiles is created by subclasses but the selection is monitored in this class. The TransferHandler installed in the JFileChooser is also installed in the fileenterslist as it is used as the actual transfer source. The list is updated on acomponentmouse enter to reflect the current data transfer state of the file chooser.
Draw a string with the graphicsgat location (x y) just likeg.drawStringwould. The first()occurenceoccurrence ofunderlineCharin text will be underlined. The matching algorithm is not case sensitive.
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
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.
AAsfuture releaseofSwing will provide1.4 support for long termpersistencestorage of all JavaBeansTM has been added to thejava.beanspackage. Please see java.beans.XMLEncoder @version 1.22 0225 12/0203/0001 @author David Kloba @author Georges Saab
The class that manages a basic title barWarning: 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.
AAsfuture releaseofSwing will provide1.4 support for long termpersistencestorage of all JavaBeansTM has been added to thejava.beanspackage. Please see java.beans.XMLEncoder @version 1.33 0241 01/0218/0001 @author David Kloba @author Steve Wilson
A basic L&F implementation of JInternalFrame. @version 1.75 0397 12/1303/01 @author David Kloba @author Rich Schiavi
Class BasicInternalFrameUI.GlassPaneDispatcher, void mouseReleased(MouseEvent)IgnoreForward the mouseDraggedeventsevent to the underlying child container. @see #mousePressed
IgnoreForward the mouseReleasedeventsevent to the underlying child container. @see #mousePressed
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 necessarymouseHandlersmousetohandlerscurrentPaneonnewPaneand adds it to the frame. Reverse process for thenewPanecurrentPane.
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
A Windows L&F implementation of ListUI.@version 1.
54 0287 12/0203/0001 @author Hans Muller @author Philip Milne
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.
AAsfuture releaseofSwing will provide1.4 support for long termpersistencestorage of all JavaBeansTM has been added to thejava.beanspackage. Please see java.beans.XMLEncoder @see JList#getModel @see #maybeUpdateLayoutState @see #createListDataListener @see #installUI
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.
AAsfuture releaseofSwing will provide1.4 support for long termpersistencestorage of all JavaBeansTM has been added to thejava.beanspackage. Please see java.beans.XMLEncoder @see #createListSelectionListener @see #getCellBounds @see #installUI
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.
AAsfuture releaseofSwing will provide1.4 support for long termpersistencestorage of all JavaBeansTM has been added to thejava.beanspackage. Please see java.beans.XMLEncoder @see #createMouseInputListener @see #installKeyboardActions @see #installUI
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.
AAsfuture releaseofSwing will provide1.4 support for long termpersistencestorage of all JavaBeansTM has been added to thejava.beanspackage. Please see java.beans.XMLEncoder @see #maybeUpdateLayoutState @see #createPropertyChangeListener @see #installUI
@Class BasicListUI, Dimension getMinimumSize(JComponent)returns Thereturn the preferred size.@see #getPreferredSize
@Class BasicListUI, Dimension getPreferredSize(JComponent)returns Thereturn the preferred size.@see #getPreferredSize
The preferredSize ofClass BasicListUI, void installKeyboardActions()athe list depends upon the layout orientation.The above specifies the raw preferred
Layout Orientation Preferred 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
theJList(width / max cell width) with at least one column. The preferred height then becomeshorizontalmodel 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.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 theInsetsare determined fromlist.getInsets(). @param c The JList component. @return The total size of the list.
Class BasicListUI, int locationToIndex(JList, Point)RegisterRegisterskeyboard actions fortheup and down arrow keys. The actions just call outkeyboardto protected methodsbindings on thesubclassesJListthatwant to override or extend keyboard behavior should considerthejustBasicListUIoverriding those methodsis associated with. This method is called at installUI() time. @see #selectPreviousIndex @see #selectNextIndex @see #installUI
Convert a point inClass BasicListUI, void selectNextIndex()JListcoordinates 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 andgetCellBounds. Returns -1 if the model is empty. @return The index of the cell at location or -1. @see ListUI#locationToIndex
Selected the previous row and force it to be visible.Class BasicListUI, void selectPreviousIndex()Called by the KeyEvent.VK_DOWN keyboard action. @see #installKeyboardActions@see JList#ensureIndexIsVisible
Selected the previous row and force it to be visible.Class BasicListUI, void uninstallDefaults()Called by the KeyEvent.VK_UP keyboard action. @see #installKeyboardActions@see JList#ensureIndexIsVisible
Set the JList properties that haven't been explicitlyClass BasicListUI, void uninstallKeyboardActions()overridenoverridden to null. A property is considered overridden if its current value is not a UIResource. @see #installDefaults @see #uninstallUI @see CellRendererPane
UnregisterUnregisters keyboard actionsforinstalledthe up and downfromarrow 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
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.
AAsfuture releaseofSwing will provide1.4 support for long termpersistencestorage of all JavaBeansTM has been added to thejava.beanspackage. Please see java.beans.XMLEncoder @version 1.160 06203 12/1403/01 @author unattributed
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
BasicMenuItem implementation @version 1.101 04115 12/0503/0001 @author Georges Saab @author David Karlton @author Arnaud Weber @author Fredrik Lagerblad
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
Provides the basic look and feel for aJOptionPane.BasicMessagePaneUIprovides a means to place an icon message and buttons into aContainer.TheGenerally the layout will look like:
------------------ | i | message | | c | message | | o | message | | n | message | ------------------ | buttons | |________________|icon is an instance ofIconthat iswrapedwrapped inside aJLabel. The message is an opaque object and is tested for the following: if the message is aComponentit is added to theContainerif it is anIconit is wrapped inside aJLabeland added to theContainerotherwise it is wrapped inside aJLabel.The above layout is used when the option pane's
.ComponentOrientationproperty is horizontal left-to-right. The layout will be adjusted appropriately for other orientationsThe
Containermessage 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
ButtonAreaLayoutacts similiarbehaves in a similar manner toFlowLayout. It lays out all components from left to right. IfsyncAllWidthsis 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.
Creates and returns a ContainerClass BasicOptionPaneUI, Icon getIcon()containincontaining the buttons. The buttons are created by callinggetButtons.
Returns the icon from the JOptionPane theClass BasicOptionPaneUI, Dimension getMinimumOptionPaneSize()recieverreceiver is providing the look and feel for or the default icon as returned fromgetDefaultIcon.
Returns the minimum size the option pane should be. Primarily provided for subclassersClass BasicOptionPaneUI, Dimension getPreferredSize(JComponent)wishinwishing to offer a different minimum size.
IfClass BasicOptionPaneUI, void installUI(JComponent)cis theJOptionPanetherecieverreceiver is contained in the preferred size that is returned is the maximum of the preferred size of theLayoutManagerfor theJOptionPaneandgetMinimumOptionPaneSize.
Installs theClass BasicOptionPaneUI, JOptionPane optionPanerecieverreceiver as the L&F for the passed inJOptionPane.
JOptionPanethat therecieverreceiver is providing the look and feel for.
BasicPanel implementation @version 1.6 027 12/0203/0001 @author Steve Wilson
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
A Basic L&F implementation of PopupMenuSeparatorUI. This implementation is a "combined" view/controller. @version 1.8 029 12/0203/0001 @author Jeff Shapiro
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
A Basic L&F implementation of ProgressBarUI. @version 1.Class BasicProgressBarUI, Color getSelectionBackground()45 0258 12/0203/0001 @author Michael C. Albers @author Kathy Walrath
The "selectionBackground" is the color of the text when it isClass BasicProgressBarUI, Color getSelectionForeground()drawnpainted over an unfilled area of the progress bar.
The "selectionForeground" is the color of the text when it isClass BasicProgressBarUI, Point getStringPlacement(Graphics, String, int, int, int, int)drawnpainted over a filled area of the progress bar.
Designate the place where the progress string will beClass BasicProgressBarUI, void paint(Graphics, JComponent)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.
All purposeDelegates paintingpaint 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 finetopaint youroneprogressofbar. Naturally override this iftwoyoumethods:arepaintDeterminatemaking a circularorsemi-circular progress barpaintIndeterminate.
BasicRadioButtonMenuItem implementation @version 1.41 0243 12/0203/0001 @author Georges Saab @author David Karlton
RadioButtonUI implementation for BasicRadioButtonUI @version 1.61 0264 12/0203/0001 @author Jeff Dinkins
Basic implementation of RootPaneUI there is one shared between all JRootPane instances. @version 1.3 026 12/0203/0001 @author Scott Violet
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
Listener for scrolling eventsintiatedinitiated in theScrollPane.
Set the models value to the position of the thumb's top/leftof Vertical scrollbar or thethumbleft/right of Horizontal scrollbar in left-to-right/right-to-left scrollbar relative to the origin of the track.
A verticalClass BasicScrollBarUI, Dimension getPreferredSize(JComponent)scrollbarsscrollbar's minimum width is the largest minimum width of the (nonnull) 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
minimumSizeis only computed oncesubequentsubsequent calls to this method just return a cached size.T@param cThetheJScrollBarthat's delegating this method to us.@returnThethe minimum size of aBasicbasicJScrollBar@see #getMaximumSize @see #getPreferredSize.
A verticalClass BasicScrollBarUI, Rectangle getTrackBounds()scrollbarsscrollbar's preferred width is the maximum of preferred widths of the (nonnull) 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
preferredSizeis only computed oncesubequentsubsequent calls to this method just return a cached size.T@param cThetheJScrollBarthat's delegating this method to us.@returnThethe preferred size of a Basic JScrollBar.@see #getMaximumSize @see #getMinimumSize
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 islayedlaid 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
A default L&F implementation of ScrollPaneUI. @version 1.Class BasicScrollPaneUI, PropertyChangeListener createPropertyChangeListener()52 0263 12/0203/0001 @author Hans Muller
Creates an instance of PropertyChangeListener that's added to the JScrollPane by installUI(). Subclasses can override this method to return a