Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

javax.swing.beaninfo.* (23)javax.swing.border.* (10)javax.swing.colorchooser.* (8)
javax.swing.event.* (43)javax.swing.filechooser.* (4)javax.swing.plaf.* (179)
javax.swing.table.* (10)javax.swing.text.* (97)javax.swing.tree.* (17)
javax.swing.undo.* (9)

javax.swing: Javadoc index of package javax.swing.


Package Samples:

javax.swing.border
javax.swing.plaf.basic
javax.swing.text.html
javax.swing.text.html.parser
javax.swing.text.rtf
javax.swing.colorchooser
javax.swing.event
javax.swing.filechooser
javax.swing.plaf
javax.swing.plaf.metal
javax.swing.table
javax.swing.text
javax.swing.tree
javax.swing.undo
javax.swing.beaninfo
javax.swing.plaf.multi
javax.swing.plaf.synth

Classes:

AbstractButton: Provides an abstract implementation of common button behaviour, data model and look & feel. This class is supposed to serve as a base class for several kinds of buttons with similar but non-identical semantics: toggle buttons (radio buttons and checkboxes), simple push buttons, menu items, etc. Buttons have many properties, some of which are stored in this class while others are delegated to the button's model. The following properties are available: Property Stored in Bound? action button no actionCommand model no borderPainted button yes contentAreaFilled button yes disabledIcon button yes ...
JList: This class is a facade over three separate objects: ListModel , ListSelectionModel and javax.swing.plaf.ListUI . The facade represents a unified "list" concept, with independently replacable (possibly client-provided) models for its contents and its current selection. In addition, each element in the list is rendered via a strategy class ListCellRenderer . Lists have many properties, some of which are stored in this class while others are delegated to the list's model or selection. The following properties are available: Property Stored in Bound? accessibleContext list no anchorSelectionIndex selection ...
JLayeredPane: A container that adds depth to the usual Container semantics. Each child component of a Layered Pane is placed within one of several layers. JLayeredPane defines a set of standard layers. The pre-defined sets are (in the order from button to top): DEFAULT_LAYER 55 The layer where most of the normal components are placed. This is the bottommost layer. PALETTE_LAYER 55 Palette windows are placed in this layer. MODAL_LAYER 55 The layer where internal modal dialog windows are placed. POPUP_LAYER 55 The layer for popup menus DRAG_LAYER 55 Components that are beeing dragged are temporarily placed in ...
StateEdit: A helper class, making it easy to support undo and redo. The following example shows how to use this class. Foo foo; // class Foo implements StateEditable StateEdit edit; edit = new StateEdit(foo, "Name Change"); foo.setName("Jane Doe"); edit.end(); undoManager.addEdit(edit); If Foo ’s implementation of StateEditable considers the name as part of the editable state, the user can now choose “Undo Name Change” or “Redo Name Change” from the respective menu. No further undo support is needed from the application. The following explains what happens in the example. ...
UndoManager: A manager for providing an application’s undo/redo functionality. Tyipcally, an application will create only one single instance of UndoManager. When the user performs an undoable action, for instance changing the color of an object from green to blue, the application registers an UndoableEdit object with the UndoManager . To implement the “undo” and “redo” menu commands, the application invokes the UndoManager’s undo() 55 and redo() 55 methods. The human-readable text of these menu commands is provided by getUndoPresentationName() 55 and getRedoPresentationName() ...
JSlider: A visual component that allows selection of a value within a range by adjusting a thumb in a track. The values for the minimum, maximum, extent and value are stored in a DefaultBoundedRangeModel . A JSlider component has the following properties: Property Stored in Bound? extent model no inverted slider yes labelTable slider yes majorTickSpacing slider yes maximum model yes minimum model yes minorTickSpacing slider yes model slider yes orientation slider yes paintLabels slider yes paintTicks slider yes snapToTicks slider yes value model no valueIsAdjusting model no The various behavioural aspects ...
BasicSliderUI: BasicSliderUI.java This is the UI delegate in the Basic look and feel that paints JSliders. The UI delegate keeps track of 6 rectangles that place the various parts of the JSlider inside the component. The rectangles are organized as follows: +-------------------------------------------------------+ The space between the contentRect and the focusRect are the FocusInsets. The space between the focusRect and the component bounds is the insetCache which are the component's insets. The top of the thumb is the top of the contentRect. The trackRect has to be as tall as the thumb. The trackRect and tickRect ...
ComponentUI: The abstract base class for all delegates that provide the pluggable look and feel for Swing components. User applications should not need to access this class; it is internal to Swing and the look-and-feel implementations. Components such as javax.swing.JSlider do not directly implement operations related to the look and feel of the user interface, such as painting or layout. Instead, they use a delegate object for all such tasks. In the case of JSlider , the user interface would be provided by some concrete subclass of SliderUI . Soon after its creation, a ComponentUI will be sent an installUI(javax.swing.JComponent) ...
JViewport: _ +-------------------------------+ ...........Y1 \ | view | . \ | (this component's child) | . > VY | | . / = Y2-Y1 | +------------------------------+ ....Y2_/ | | viewport | | . | | (this component) | | . | | | | . | | | | . | | | | . | | | | . | +------------------------------+ ....Y3 | | . | . | . . | . | . . +---------.---------------------+ ...........Y4 . . . . . . . . . . . . X1.......X2.....................X3.......X4 \____ ___/ \/ VX = X2-X1 A viewport is, like all swing components, located at some position in the swing component tree; that location is exactly the same as any other components: ...
JScrollPane: A component that embeds another component and enables it to be scrolled both in horizontal and vertical direction. Property Stored in Bound? columnHeader scrollPane yes columnHeaderView columnHeader no componentOrientation scrollPane yes horizontalScrollBar scrollPane yes horizontalScrollBarPolicy scrollPane yes layout scrollPane yes rowHeader scrollPane yes rowHeaderView rowHeader no validateRoot scrollPane no verticalScrollBar scrollPane yes verticalScrollBarPolicy scrollPane yes viewport scrollPane yes viewportBorder scrollPane yes viewportBorderBounds scrollPane no viewportView viewport no ...
JTextArea: The JTextArea component provides a multi-line area for displaying and editing plain text. The component is designed to act as a lightweight replacement for the heavyweight java.awt.TextArea component, which provides similar functionality using native widgets. This component has additional functionality to the AWT class. It follows the same design pattern as seen in other text components, such as JTextField , JTextPane and JEditorPane , and embodied in JTextComponent . These classes separate the text (the model) from its appearance within the onscreen component (the view). The text is held within ...
ButtonGroup: Logically groups a set of buttons, so that only one of the buttons in a ButtonGroup can be selected at the same time. If one button in a ButtonGroup is selected, all other buttons are automatically deselected. While ButtonGroup can be used for all buttons that are derived from AbstractButton , it is normally only used for JRadioButton s, JRadioButtonMenuItem s and JToggleButton s. You could use it for JCheckBox es, but for the sake of usability this is strongly discouraged because the common expectation of checkboxes is that the user is allowed to make multiple selections. It makes no sense to ...
JPopupMenu: JPopupMenu is a container that is used to display popup menu's menu items. By default JPopupMenu is a lightweight container, however if it is the case that JPopupMenu's bounds are outside of main window, then heawyweight container will be used to display menu items. It is also possible to change JPopupMenu's default behavior and set JPopupMenu to always use heavyweight container. JPopupMenu can be displayed anywhere; it is a floating free popup menu. However before JPopupMenu is diplayed, its invoker property should be set. JPopupMenu's invoker is a component relative to which popup menu is displayed. ...
EventListenerList: A utility class for keeping track of java.util.EventListener s. Example for using this class: import java.util.EventListener; import javax.swing.event.EventListenerList; class Foo { protected final EventListenerList listeners = new EventListenerList(); protected BarClosedEvent barClosedEvent = null; public void addBarListener(BarListener l) { listeners. add (BarListener.class, l); } public void removeBarListener(BarListener l) { listeners. remove (BarListener.class, l); } protected void fireBarClosedEvent() { Object[] l = listeners. getListenerList() ; for (int i = l.length - 2; i >= 0; i -= 2) ...
DocumentParser: A simple error-tolerant HTML parser that uses a DTD document to access data on the possible tokens, arguments and syntax. The parser reads an HTML content from a Reader and calls various notifying methods (which should be overridden in a subclass) when tags or data are encountered. Some HTML elements need no opening or closing tags. The task of this parser is to invoke the tag handling methods also when the tags are not explicitly specified and must be supposed using information, stored in the DTD. For example, parsing the document <table><tr><td>a<td>b<td>c</tr> ...
OverlayLayout: A layout manager that lays out the components of a container one over another. The components take as much space as is available in the container, but not more than specified by their maximum size. The overall layout is mainly affected by the components alignmentX and alignmentY properties. All components are aligned, so that their alignment points (for either direction) are placed in one line (the baseline for this direction). For example: An X alignment of 0.0 means that the component's alignment point is at it's left edge, an X alignment of 0.5 means that the alignment point is in the middle, ...
JProgressBar: The ProgressBar is a widget that displays in two modes. In determinate mode, it displays fills a percentage of its bar based on its current value. In indeterminate mode, it creates box and bounces it between its bounds. JProgressBars have the following properties: Property Stored in Bound? borderPainted progressBar yes changeListeners progressBar no indeterminate progressBar yes maximum model no minimum model no model progressBar no orientation progressBar yes percentComplete progressBar no string progressBar yes stringPainted progressBar yes value model no
DTD: Representation or the SGML DTD document. Provides basis for describing a syntax of the HTML documents. The fields of this class are NOT initialized in constructor. You need to do this separately before passing this data structure to the HTML parser. The subclasses with the fields, pre- initialized, for example, for HTML 4.01, can be available only between the implementation specific classes ( for example, gnu.javax.swing.text.html.parser.HTML_401F in this implementation). If you need more information about SGML DTD documents, the author suggests to read SGML tutorial on http://www.w3.org/TR/WD-html40-970708/intro/sgmltut.html ...
AsyncBoxView: A View implementation that lays out its child views in a box, either vertically or horizontally. The difference to BoxView is that the layout is performed in an asynchronous manner. This helps to keep the eventqueue free from non-GUI related tasks. This view is currently not used in standard text components. In order to use it you would have to implement a special EditorKit with a ViewFactory that returns this view. For example: static class AsyncEditorKit extends StyledEditorKit implements ViewFactory { public View create(Element el) { if (el.getName().equals(AbstractDocument.SectionElementName)) ...
Parser: A simple error-tolerant HTML parser that uses a DTD document to access data on the possible tokens, arguments and syntax. The parser reads an HTML content from a Reader and calls various notifying methods (which should be overridden in a subclass) when tags or data are encountered. Some HTML elements need no opening or closing tags. The task of this parser is to invoke the tag handling methods also when the tags are not explicitly specified and must be supposed using information, stored in the DTD. For example, parsing the document <table><tr><td>a<td>b<td>c</tr> ...
DefaultButtonModel: The default implementation of ButtonModel . The purpose of this class is to model the dynamic state of an abstract button. The concrete button type holding this state may be a a "toggle" button (checkbox, radio button) or a "push" button (menu button, button). If the model is disabled, only the "selected" property can be changed. An attempt to change the "armed", "rollover" or "pressed" properties while the model is disabled will be blocked. Any successful (non-blocked) change to the model's properties will trigger the firing of a ChangeEvent. Any change to the "selected" property will trigger ...
FormView: A View that renders HTML form elements like buttons and input fields. This is implemented as a javax.swing.text.ComponentView that creates different Swing component depending on the type and setting of the different form elements. Namely, this view creates the following components: Element type Swing component input, button JButton input, checkbox JButton input, image JButton input, password JButton input, radio JButton input, reset JButton input, submit JButton input, text JButton select, size > 1 or with multiple attribute JList in JScrollPane select, size unspecified or == 1 JComboBox textarea, ...
JEditorPane: A powerful text editor component that can handle different types of content. The JEditorPane text component is driven by an instance of javax.swing.text.EditorKit . The editor kit is responsible for providing a default javax.swing.text.Document implementation, a mechanism for loading and saving documents of its supported content type and providing a set of Action s for manipulating the content. By default the following content types are supported: text/plain : Plain text, handled by javax.swing.text.DefaultEditorKit . text/html : HTML 4.0 styled text, handled by javax.swing.text.html.HTMLEditorKit ...

Home | Contact Us | Privacy Policy | Terms of Service