| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
* javax/swing/plaf/basic/BasicTreeUI.java
(mouseClicked): Implemented clicking on control icons.
|
|
|
|
|
|
| |
* javax/swing/plaf/basic/BasicTreeUI.java
(mouseClicked): changed to use getPathBounds.
(getPathBounds): Implemented
|
|
|
|
|
|
| |
* javax/swing/plaf/basic/BasicTreeUI.java
(mouseClicked): check if user is clicking within the bounds of the cell.
(getCellLocation): Implemented to return the location of the cell.
|
|
|
|
| |
* javax/swing/plaf/metal/MetalComboBoxIcon.java: new file.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* javax/swing/tree/TreePath.java: added API docs all over,
(TreePath(Object[])): throw IllegalArgumentException for null argument,
(TreePath(TreePath, Object)): throw NullPointerException for null Object,
(equals): test elements using equals(),
(writeObject): removed,
(readObject): removed,
(getPath): return a clone of the path,
(getPathComponent): throw IllegalArgumentException for invalid position,
(isDescendant): reimplemented.
----------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
| |
* javax/swing/plaf/basic/BasicOptionPaneUI.java
(ButtonAreaLayout): Made class static.
(ButtonAreaLayout.setSyncAllWidths): Removed revalidate(). Never
ever revalidate something within a LayoutManager!
(ButtonAreaLayout.setPadding): Likewise.
(ButtonAreaLayout.setCentersChildren): Likewise.
(ButtonAreaLayout.layoutContainer): Don't refer to enclosing
class's instance, this is not allowed in static inner classes.
|
|
|
|
|
|
|
| |
* javax/swing/plaf/metal/MetalCheckBoxIcon.java:
New class. An icon implementation for use in JCheckBoxes.
* javax/swing/plaf/metal/MetalBorders.java
Renamed MetalButtonBorder to ButtonBorder.
|
|
|
|
|
|
| |
* javax/swing/plaf/basic/BasicTextUI.java:
(RootView.removeUpdate): Properly update the caret position after text
has been removed.
|
|
|
|
|
|
|
| |
2005-07-15 Robert Schuster <robertschuster@fsfe.org>
* javax/swing/AbstractButton.java:
(init): Do not change field text if argument text is null.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* javax/swing/AbstractButton.java
(AbstractButton): Directly call init() and updateUI().
(AbstractButton(String, Icon)): Removed. This is not necessary
since we have init(String, Icon) for that purpose.
(getActionCommand): Reverted to previous behaviour: If
actionCommand is set, return this, otherwise return text, even
if text is null.
* javax/swing/JButton.java
(JButton(String, Icon)): Call super() and init(String, Icon)
instead of super(String, Icon).
* javax/swing/JMenuItem.java
(JMenuItem): Call super() instead of super(String, Icon).
(JMenuItem(Icon)): Call this(String, Icon) instead of
super(String, Icon).
(JMenuItem(String)): Call this(String, Icon) instead of
super(String, Icon).
(JMenuItem(Action)): Call super() instead of
super(String, Icon).
(JMenuItem(String, Icon)): Call super() and init(String, Icon)
instead of super(String, Icon).
(JMenuItem(String, int)): Call this(String, Icon) instead of
super(String, Icon).
* javax/swing/JToggleButton.java
(ToggleButtonModel.setPressed): Fire an ActionEvent if button
is released. According to my Mauve tests, it seems that this
is what the JDK does, so do we.
(ToggleButtonModel.setSelected): Removed.
(JToggleButton): Call super() and init(String, Icon) instead
of super(String, Icon).
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2005-07-15 Robert Schuster <robertschuster@fsfe.org>
* javax/swing/tree/DefaultMutableTreeNode.java:
(removeFromParent): Remove child node from parent now.
(preorderEnumeration): Implemented.
(postorderEnumeration): Implemented.
(depthFirstEnumeration): Implemented.
(breadthFirstEnumeration): Implemented.
(nextLeaf): Added TODO doc.
(previousLeaf): Added TODO doc.
|
|
|
|
|
| |
* javax/swing/plaf/basic/BasicTreeUI.java
(paintControlIcons): Changed so root does not have control icon.
|
|
|
|
|
|
|
|
|
|
|
|
| |
* javax/swing/plaf/basic/BasicTreeUI.java
(installUI): Expanded root initially
(paint): call function to paint controls
(paintRecursive): added to indentation when painting to
increase space
(paintControlIcons): Implemented to recursively paint the
control icons.
* javax/swing/tree/DefaultTreeCellRenderer.java
(getTreeCellRendererComponent): reset the font properly
|
|
|
|
|
|
| |
* javax/swing/AbstractButton.java
(getActionCommand): If both the actionCommand and text fields
are null, then return "".
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* examples/gnu/classpath/examples/awt/Demo.java
(TestWindow.parent): Make package private.
* gnu/java/net/protocol/http/HTTPURLConnection.java
(proxyHostname, proxyPort, agent, keepAlive, maxConnections):
Likewise.
* java/text/SimpleDateFormat.java (field, size): Likewise.
* java/util/jar/JarFile.java (readSignatures): Likewise.
* java/util/logging/FileHandler.java (written): Likewise.
* javax/swing/plaf/basic/BasicFileChooserUI.java: Make shared
fields package private.
(closeDialog): Make package private.
(filterEntries): Likewise.
* javax/swing/plaf/basic/BasicPopupMenuUI.java
(mouseInputListener): Likewise.
* javax/swing/plaf/basic/BasicTreeUI.java
(getNextVisibleNode, getPreviousVisibleNode, selectPath): Likewise.
* javax/swing/text/JTextComponent.java (caret, editable): Likewise.
|
|
|
|
|
|
|
|
| |
* javax/swing/AbstractButton.java: Minor doc fixes.
(getActionCommand): Access field directly.
(setActionCommand): Dito.
(fireActionPerformed): Copy ActionEvent instance instead
of reusing it.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* javax/swing/BoundedRangeModel.java:
Added/Fixed interface API documentation.
* javax/swing/ButtonModel.java:
Added/Fixed interface API documentation.
* javax/swing/CellEditor.java:
Added/Fixed interface API documentation.
* javax/swing/ComboBoxEditor.java:
Added/Fixed interface API documentation.
* javax/swing/ComboBoxModel.java:
Added/Fixed interface API documentation.
* javax/swing/Icon.java:
Added/Fixed interface API documentation.
* javax/swing/JComboBox.java
(KeySelectionManager): Added/Fixed interface API documentation.
* javax/swing/ListCellRenderer.java:
Added/Fixed interface API documentation.
* javax/swing/ListModel.java:
Added/Fixed interface API documentation.
* javax/swing/ListSelectionModel.java:
Added/Fixed interface API documentation.
* javax/swing/MenuElement.java:
Added/Fixed interface API documentation.
* javax/swing/MutableComboBoxModel.java:
Added/Fixed interface API documentation.
* javax/swing/Renderer.java:
Added/Fixed interface API documentation.
* javax/swing/RootPaneContainer.java:
Added/Fixed interface API documentation.
* javax/swing/ScrollPaneConstants.java:
Added/Fixed interface API documentation.
* javax/swing/Scrollable.java:
Added/Fixed interface API documentation.
* javax/swing/SingleSelectionModel.java:
Added/Fixed interface API documentation.
* javax/swing/SpinnerModel.java:
Added/Fixed interface API documentation.
* javax/swing/SwingConstants.java:
Added/Fixed interface API documentation.
* javax/swing/UIDefaults.java
(ActiveValue): interface API documentation.
(LazyValue): interface API documentation.
* javax/swing/WindowConstants.java:
Added/Fixed interface API documentation.
* javax/swing/package.html: Fixed package description to be more
a little bit more concise.
|
|
|
|
|
|
|
|
|
| |
* javax/swing/plaf/basic/BasicLookAndFeel.java: Changed font to
match jdk.
* javax/swing/plaf/basic/BasicTreeUI.java: took out unneeded
import statement
* javax/swing/plaf/metal/MetalLookAndFeel.java: Changed
defaults to match jdk.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* javax/swing/plaf/basic/BasicLookAndFeel.java: Changed rowHeight
to the right height. This should be fixed later to something more
reasonable, as opposed to a 'magic' number.
* javax/swing/plaf/basic/BasicTreeUI.java
(paintLeaf): added in code to paint icons properly
(paintNonLeaf): same as above
* javax/swing/plaf/metal/MetalLookAndFeel.java: Changed default
icons to MetalIconFactory icons
* javax/swing/tree/DefaultTreeCellRenderer.java
(getTreeCellRendererComponent): Changed to paint icons separately from
Cell.
|
|
|
|
|
|
|
|
| |
* javax/swing/plaf/basic/BasicListUI.java:
(KeyHandler.keyPressed): Implemented actions for the following key
presses: "ctrl \\", "END", "shift END", "HOME, "shift HOME", "ctrl /",
"ctrl A", "ctrl SPACE", "KP_UP", "KP_DOWN", "shift KP_UP",
"shift KP_DOWN".
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* javax/swing/DefaultButtonModel.java:
(changeState): Removed this helper method.
(setArmed): Replaced call to changeState by code specific to setArmed.
(setEnabled): Likewise, for setEnabled.
(setPressed): Likewise, for setPressed.
(setRollover): Likewise, for setRollover.
(setSelected): Likewise, for setSelected.
* javax/swing/JToggleButton.java:
(ToggleButtonModel.setPressed): Replaced call to super.setPressed with
Toggle-specific code.
(ToggleButtonModel.setSelected): New method. Fire an ActionEvent in
addition to calling super.setSelected.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* javax/accessibility/AccessibleComponent.java: minor API
doc fixes,
* javax/accessibility/AccessibleRelation.java: likewise,
* javax/accessibility/AccessibleRelationSet.java: likewise,
* javax/accessibility/AccessibleResourceBundle.java:
likewise,
* javax/accessibility/AccessibleRole.java: likewise,
* javax/accessibility/AccessibleState.java: likewise,
* javax/accessibility/AccessibleStateSet.java: likewise,
* javax/accessibility/AccessibleText.java: likewise.
----------------------------------------------------------------------
|
|
|
|
|
|
|
| |
* javax/swing/LookAndFeel.java: added API docs all over,
* javax/swing/plaf/metal/DefaultMetalTheme.java: likewise,
* javax/swing/plaf/metal/MetalLookAndFeel.java: likewise,
* javax/swing/plaf/metal/MetalTheme.java: likewise.
|
|
|
|
|
|
| |
* javax/swing/table/TableColumn.java: updated API docs,
* javax/swing/table/TableColumnModel.java: likewise.
----------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* javax/swing/tree/DefaultMutableTreeNode.java: minor API
doc fixes,
* javax/swing/tree/DefaultTreeSelectionModel.java
(addSelectionPath): modified parameter name to match doc
comment,
(addSelectionPaths): likewise,
(removeSelectionPath): likewise,
(removeSelectionPaths): likewise,
(isPathSelected): likewise,
plus other minor API doc fixes all over.
* javax/swing/tree/MutableTreeNode.java: minor API doc
fixes.
----------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
| |
2005-07-13 Robert Schuster <robertschuster@fsfe.org>
* javax/swing/AbstractButton.java: Minimal documentation fixes.
(getActionCommand): Returns button's label when
actionCommand is null.
* javax/swing/JButton.java,
javax/swing/JToggleButton.java: Removed explicit call to
setActionCommand in constructors.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(https://savannah.gnu.org/bugs/?func=detailitem&item_id=13695)
which complains about the paramString() method.
Although the complained about a wrong implementation (read !spec conform) is invalid, I think it is useful to provide properdebugging information here.
2005-07-13 Robert Schuster <robertschuster@fsfe.org>
* javax/swing/JToggleButton.java:
(paramString): Returns value of same method in superclass now.
* javax/swing/JRadioButton.java:
(paramString): Dito.
* javax/swing/JButton.java:
(paramString): Returns value of same method in superclass now,
more verbose information added.
* javax/swing/JCheckBox.java:
(paramString): Dito.
|
|
|
|
|
|
| |
* javax/swing/plaf/basic/BasicMenuItemUI.java:
(paintMenuItem): Replaced incorrect hilighting criteria.
(paintText): Likewise.
|
|
|
|
|
|
|
|
| |
* javax/swing/plaf/basic/BasicTreeUI.java
(paintLeaf): fixed size of selection background to depend on
if icon exists
(paintNonLeaf): fixed size of selection background to depend on
if icon exists
|
|
|
|
|
|
|
|
| |
* javax/swing/DefaultButtonModel.java:
(changeState): If the button is a JToggleButton fire action events
when it changes between (selected/unselected) not when it changes
from pressed to unpressed. Fire action events after firing
ItemStateChanged events.
|
|
|
|
|
|
|
|
|
| |
* javax/swing/JTree.java:
Formatting copyright
* javax/swing/tree/DefaultTreeCellRenderer.java:
Formatting copyright
* javax/swing/tree/DefaultTreeSelectionModel.java:
Formatting copyright
|
|
|
|
|
|
|
| |
* javax/swing/plaf/metal/MetalTreeUI.java
(createUI): Return a different instance of MetalTreeUI for each
JTree. The TreeUI is stateful, so a shared instance would not
work.
|
|
|
|
|
|
| |
* javax/swing/plaf/basic/BasicTreeUI.java
I accidentally introduced revalidate calls for repaint calls.
Reverted.
|
|
|
|
|
| |
* javax/swing/plaf/basic/BasicTreeUI.java
Fixed formatting of the copyright notice.
|
|
|
|
|
|
|
|
|
| |
* javax/swing/plaf/basic/BasicInternalFrameUI.java
(installDefaults): Create border based on defaults in current
LookAndFeel.
* javax/swing/plaf/basic/BasicLookAndFeel.java
(initComponentDefaults): Included border for InternalFrame as
LazyValue.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* javax/swing/plaf/basic/BasicLookAndFeel.java:
Took out icon defaults.
* javax/swing/plaf/basic/BasicTreeUI.java
(installUI): set root to visible
(getCellBounds): took out addition to width since there may not be an icon.
* javax/swing/plaf/metal/MetalLookAndFeel.java:
Added in icon defaults
* lib/Makefile.am:
Fixed so icons are installed for the JTree
For icons to install properly: make sure you rebuild, reconfigure and delete the lib/resources file
|
|
|
|
|
|
|
|
|
|
| |
* javax/swing/plaf/basic/BasicInternalFrameTitlePane.java
Removed ad-hoc icons. Replaced them by
BasicIconFactory.createEmptyFrameIcon just like in the JDK.
(PropertyChangeHandler.propertyChange): Handle change events
for closable, iconifiable and maximizable here.
(createButtons): Recognize if the JInternalFrame is closable,
iconifiable or maximizable.
|
|
|
|
|
| |
* javax/swing/plaf/basic/BasicLookAndFeel.java
(initComponentDefaults): Corrected color values for BasicL&F buttons.
|
|
|
|
|
|
|
|
|
| |
* javax/swing/JMenu.java:
(isSelected): Call super.isSelected() instead of super.isArmed().
* javax/swing/plaf/basic/BasicMenuItemUI.java:
(paintMenuItem): Replaced incorrect selection criteria with call to
isSelected().
(paintText): Likewise.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* examples/gnu/classpath/examples/swing/Demo.java
(mkTreeWorld): Implemented
(mkTabbedPane): added in tab for TreeWorld
* javax/swing/plaf/basic/BasicLookAndFeel.java
Changed default color of text non selection background.
* javax/swing/plaf/basic/BasicTreeUI.java
Removed irrelevant comment
* javax/swing/tree/DefaultTreeCellRenderer.java
(getTreeCellRendererComponent): changed to use background's non
selection default color instead
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* javax/swing/plaf/basic/BasicInternalFrameTitlePane.java
(TitlePaneLayout.layoutContainer): Do not change any state of
the components here (visible/enableActions). This is not the purpose of
a layout manager and can lead to loops. Also correct the layout
to be closer to the layout of the reference implementation.
(TitlePaneLayout.preferredLayoutSize): Return (Integer.MAX_VALUE, 17)
here. That is how high the title pane should be.
(PaneButton): Don't set the border to null.
(createButtons): The buttons are opaque.
(createButtonIcons): Don't create icons in the Basic L&F.
|
|
|
|
|
|
|
|
|
| |
* javax/swing/JApplet.java,
* javax/swing/JDialog.java,
* javax/swing/JFrame.java,
* javax/swing/JWindow.java:
(addImpl): Add to the frame itself if we are in the init
stage, otherwise add to the contentPane.
|
|
|
|
|
| |
(CaretBlinkTimer.actionPerformed): Check that caret != null.
(CaretBlinkTimer.update): Likewise.
|
|
|
|
|
| |
* javax/swing/text/html/parser/ParserDelegator.java (gnuParser.getDTD):
Added comment about 'super'.
|
|
|
|
|
| |
* javax/swing/text/html/parser/ParserDelegator.java (gnuParser.getDTD):
Added explicit field reference.
|
|
|
|
|
|
|
|
| |
* javax/swing/plaf/metal/MetalIconFactory.java
(HorizontalSliderThumbIcon): new inner class,
(VerticalSliderThumbIcon): new inner class,
(getHorizontalSliderThumbIcon): implemented,
(getVerticalSliderThumbIcon): implemented.
|
|
|
|
|
|
| |
* javax/swing/JInternalFrame.java
(addImpl): Add to the frame itself if we are in the init
stage, otherwise add to the contentPane.
|
|
|
|
|
| |
* javax/swing/plaf/basic/BasicLookAndFeel.java
Changed the default row height for the tree.
|
|
|
|
| |
element array containing selectedFile if selectedFiles is null.
|