summaryrefslogtreecommitdiff
path: root/javax
Commit message (Collapse)AuthorAgeFilesLines
* 2005-07-15 Lillian Angel <langel@redhat.com>libgcj-import-20050715Lillian Angel2005-07-151-8/+16
| | | | | * javax/swing/plaf/basic/BasicTreeUI.java (mouseClicked): Implemented clicking on control icons.
* 2005-07-15 Lillian Angel <langel@redhat.com>Lillian Angel2005-07-151-9/+10
| | | | | | * javax/swing/plaf/basic/BasicTreeUI.java (mouseClicked): changed to use getPathBounds. (getPathBounds): Implemented
* 2005-07-15 Lillian Angel <langel@redhat.com>Lillian Angel2005-07-151-16/+53
| | | | | | * 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.
* 2005-07-15 David Gilbert <david.gilbert@object-refinery.com>David Gilbert2005-07-151-0/+100
| | | | * javax/swing/plaf/metal/MetalComboBoxIcon.java: new file.
* 2005-07-15 David Gilbert <david.gilbert@object-refinery.com>David Gilbert2005-07-151-107/+105
| | | | | | | | | | | | | * 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. ----------------------------------------------------------------------
* 2005-07-15 Roman Kennke <roman@kennke.org>Roman Kennke2005-07-151-6/+2
| | | | | | | | | | | * 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.
* 2005-07-15 Roman Kennke <roman@kennke.org>Roman Kennke2005-07-152-4/+140
| | | | | | | * 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.
* 2005-07-15 Anthony Balkissoon <abalkiss@redhat.com>Anthony Balkissoon2005-07-151-1/+1
| | | | | | * javax/swing/plaf/basic/BasicTextUI.java: (RootView.removeUpdate): Properly update the caret position after text has been removed.
* The final fix for today to achieve maximum JDK-like Swing behavior. :)Robert Schuster2005-07-151-1/+7
| | | | | | | 2005-07-15 Robert Schuster <robertschuster@fsfe.org> * javax/swing/AbstractButton.java: (init): Do not change field text if argument text is null.
* 2005-07-15 Roman Kennke <roman@kennke.org>Roman Kennke2005-07-154-38/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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).
* Fixes bug #13777.Robert Schuster2005-07-151-5/+163
| | | | | | | | | | | | | 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.
* 2005-07-14 Lillian Angel <langel@redhat.com>Lillian Angel2005-07-141-3/+5
| | | | | * javax/swing/plaf/basic/BasicTreeUI.java (paintControlIcons): Changed so root does not have control icon.
* 2005-07-14 Lillian Angel <langel@redhat.com>Lillian Angel2005-07-142-6/+72
| | | | | | | | | | | | * 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
* 2005-07-14 Roman Kennke <roman@kennke.org>Roman Kennke2005-07-141-2/+6
| | | | | | * javax/swing/AbstractButton.java (getActionCommand): If both the actionCommand and text fields are null, then return "".
* 2005-07-14 Mark Wielaard <mark@klomp.org>Mark Wielaard2005-07-134-43/+38
| | | | | | | | | | | | | | | | | | | | * 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.
* 2005-07-14 Robert Schuster <robertschuster@fsfe.org>Robert Schuster2005-07-131-8/+16
| | | | | | | | * javax/swing/AbstractButton.java: Minor doc fixes. (getActionCommand): Access field directly. (setActionCommand): Dito. (fireActionPerformed): Copy ActionEvent instance instead of reusing it.
* Slight Change to last patch. Forgot to change a default.Lillian Angel2005-07-131-4/+4
|
* 2005-07-13 Roman Kennke <roman@kennke.org>Roman Kennke2005-07-1322-34/+85
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* 2005-07-13 Lillian Angel <langel@redhat.com>iLillian Angel2005-07-133-4/+19
| | | | | | | | | * 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.
* 2005-07-13 Lillian Angel <langel@redhat.com>Lillian Angel2005-07-134-58/+105
| | | | | | | | | | | | | | * 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.
* 2005-07-13 Anthony Balkissoon <abalkiss@redhat.com>Anthony Balkissoon2005-07-131-5/+53
| | | | | | | | * 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".
* 2005-07-13 Anthony Balkissoon <abalkiss@redhat.com>Anthony Balkissoon2005-07-132-70/+123
| | | | | | | | | | | | | | | * 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.
* 2005-07-13 David Gilbert <david.gilbert@object-refinery.com>David Gilbert2005-07-138-12/+22
| | | | | | | | | | | | | | * 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. ----------------------------------------------------------------------
* 2005-07-13 David Gilbert <david.gilbert@object-refinery.com>David Gilbert2005-07-134-8/+725
| | | | | | | * 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.
* 2005-07-13 David Gilbert <david.gilbert@object-refinery.com>David Gilbert2005-07-132-59/+99
| | | | | | * javax/swing/table/TableColumn.java: updated API docs, * javax/swing/table/TableColumnModel.java: likewise. ----------------------------------------------------------------------
* 2005-07-13 David Gilbert <david.gilbert@object-refinery.com>David Gilbert2005-07-133-53/+53
| | | | | | | | | | | | | | | | * 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. ----------------------------------------------------------------------
* Fixes bug #13691.Robert Schuster2005-07-133-5/+8
| | | | | | | | | | | 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.
* This fixes the part of Bug #13695 ↵Robert Schuster2005-07-134-6/+13
| | | | | | | | | | | | | | | | | | | | (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.
* 2005-07-12 Anthony Balkissoon <abalkiss@redhat.com>Anthony Balkissoon2005-07-121-2/+4
| | | | | | * javax/swing/plaf/basic/BasicMenuItemUI.java: (paintMenuItem): Replaced incorrect hilighting criteria. (paintText): Likewise.
* 2005-07-12 Lillian Angel <langel@redhat.com>Lillian Angel2005-07-121-10/+21
| | | | | | | | * 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
* 2005-07-12 Anthony Balkissoon <abalkiss@redhat.com>Anthony Balkissoon2005-07-121-1/+14
| | | | | | | | * 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.
* 2005-07-12 Lillian Angel <langel@redhat.com>Lillian Angel2005-07-123-101/+108
| | | | | | | | | * javax/swing/JTree.java: Formatting copyright * javax/swing/tree/DefaultTreeCellRenderer.java: Formatting copyright * javax/swing/tree/DefaultTreeSelectionModel.java: Formatting copyright
* 2005-07-12 Roman Kennke <roman@kennke.org>Roman Kennke2005-07-121-5/+17
| | | | | | | * 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.
* 2005-07-12 Roman Kennke <roman@kennke.org>Roman Kennke2005-07-121-3/+3
| | | | | | * javax/swing/plaf/basic/BasicTreeUI.java I accidentally introduced revalidate calls for repaint calls. Reverted.
* 2005-07-12 Roman Kennke <roman@kennke.org>Roman Kennke2005-07-121-37/+40
| | | | | * javax/swing/plaf/basic/BasicTreeUI.java Fixed formatting of the copyright notice.
* 2005-07-12 Roman Kennke <roman@kennke.org>Roman Kennke2005-07-122-9/+33
| | | | | | | | | * 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.
* 2005-07-12 Lillian Angel <langel@redhat.com>Lillian Angel2005-07-123-16/+15
| | | | | | | | | | | | | | * 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
* 2005-07-12 Roman Kennke <roman@kennke.org>Roman Kennke2005-07-121-104/+32
| | | | | | | | | | * 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.
* 2005-07-12 Roman Kennke <roman@kennke.org>Roman Kennke2005-07-121-6/+6
| | | | | * javax/swing/plaf/basic/BasicLookAndFeel.java (initComponentDefaults): Corrected color values for BasicL&F buttons.
* 2005-07-12 Anthony Balkissoon <abalkiss@redhat.com>Anthony Balkissoon2005-07-122-14/+10
| | | | | | | | | * 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.
* 2005-07-11 Lillian Angel <langel@redhat.com>Lillian Angel2005-07-123-3/+3
| | | | | | | | | | | | | * 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
* 2005-07-12 Roman Kennke <roman@kennke.org>Roman Kennke2005-07-121-61/+20
| | | | | | | | | | | | | * 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.
* 2005-07-12 Anthony Balkissoon <abalkiss@redhat.com>Anthony Balkissoon2005-07-124-8/+8
| | | | | | | | | * 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.
* * javax/swing/text/JTextComponent.javaMark Wielaard2005-07-121-6/+12
| | | | | (CaretBlinkTimer.actionPerformed): Check that caret != null. (CaretBlinkTimer.update): Likewise.
* 2005-07-12 Audrius Meskauskas <AudriusA@Bioinformatics.org>Audrius Meskauskas2005-07-121-0/+2
| | | | | * javax/swing/text/html/parser/ParserDelegator.java (gnuParser.getDTD): Added comment about 'super'.
* 2005-07-12 Audrius Meskauskas <AudriusA@Bioinformatics.org>Audrius Meskauskas2005-07-111-1/+1
| | | | | * javax/swing/text/html/parser/ParserDelegator.java (gnuParser.getDTD): Added explicit field reference.
* 2005-07-11 David Gilbert <david.gilbert@object-refinery.com>David Gilbert2005-07-111-0/+221
| | | | | | | | * javax/swing/plaf/metal/MetalIconFactory.java (HorizontalSliderThumbIcon): new inner class, (VerticalSliderThumbIcon): new inner class, (getHorizontalSliderThumbIcon): implemented, (getVerticalSliderThumbIcon): implemented.
* 2005-07-11 Roman Kennke <roman@kennke.org>Roman Kennke2005-07-111-3/+4
| | | | | | * javax/swing/JInternalFrame.java (addImpl): Add to the frame itself if we are in the init stage, otherwise add to the contentPane.
* 2005-07-11 Lillian Angel <langel@redhat.com>Lillian Angel2005-07-111-1/+1
| | | | | * javax/swing/plaf/basic/BasicLookAndFeel.java Changed the default row height for the tree.
* * javax/swing/JFileChooser.java (getSelectedFiles): Return an oneMark Wielaard2005-07-111-1/+5
| | | | element array containing selectedFile if selectedFiles is null.