summaryrefslogtreecommitdiff
path: root/javax
Commit message (Collapse)AuthorAgeFilesLines
* 2006-05-14 Audrius Meskauskas <AudriusA@Bioinformatics.org>Mark Wielaard2006-05-141-1/+1
| | | | | * javax/swing/tree/DefaultTreeSelectionModel.java (leadRow): Initialise to -1.
* 2006-05-14 Robert Schuster <robertschuster@fsfe.org>Mark Wielaard2006-05-141-9/+19
| | | | | | | | | PR classpath/27595 * javax/swing/text/AbstractDocument.java: (insertString): Flipped if-expression and its blocks. (remove): Dito. (replace): Flipped if-expression and its blocks, added note, invoke insertString and remove instead of insertStringImpl and removeImpl.
* 2006-05-10 Roman Kennke <kennke@aicas.com>Andrew John Hughes2006-05-102-1/+9
| | | | | | | | | | | | | PR classpath/27481 * javax/swing/plaf/basic/BasicInternalFrameUI.java (installDefaults): Set background of content pane to null, if no custom color has been installed by the application yet. 2006-05-10 Roman Kennke <kennke@aicas.com> PR classpath/27481 * javax/swing/JRootPane.java (createContentPane): Don't set background to null.
* 2006-05-09 Robert Schuster <robertschuster@fsfe.org>Andrew John Hughes2006-05-101-2/+29
| | | | | | | | | PR classpath/24216 * javax/swing/text/AbstractDocument.java: (insertString): Added more documentation, added argument check. (remove): Added more documentation. (removeImpl): Added argument check. (replace): Added more documentation, added argument check.
* 2006-05-08 Lillian Angel <langel@redhat.com>Andrew John Hughes2006-05-086-27/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * java/net/URLClassLoader.java (JarURLLoader): Added check to make sure the INDEX.LIST file exists. 2006-05-08 Roman Kennke <kennke@aicas.com> PR classpath/27481 * javax/swing/JRootPane.java (createContentPane): Set background of the content pane to null, so that the content pane inherits its background from the root pane. 2006-05-08 Roman Kennke <kennke@aicas.com> PR classpath/27480 * javax/swing/ButtonGroup.java (add): Check if new button is selected and if so, deselect other buttons in the group. 2006-05-08 Lillian Angel <langel@redhat.com> PR classpath/27444 * java/net/URLClassLoader.java (JarURLLoader): Added code to go through META-INF/INDEX.LIST file to load all jars listed. 2006-05-08 Roman Kennke <kennke@aicas.com> PR classpath/27461 * javax/swing/ImageIcon.java (ImageIcon(URL)): Set description to URL.toString(). 2006-05-08 Roman Kennke <kennke@aicas.com> PR classpath/27482 * javax/swing/JTable.java (IconCellRenderer.getTableCellRendererComponent): Set icon to null when cell value is null. 2006-05-08 Roman Kennke <kennke@aicas.com> PR classpath/27484 * javax/swing/DefaultDesktopManager.java (closeFrame): Don't perform default close action on the frame to prevent endless loop. 2006-05-08 Roman Kennke <kennke@aicas.com> PR classpath/27485 * javax/swing/table/DefaultTableModel.java (addExtraRows): New helper method. (checkSize): New helper method. (setRowCount): Use addExtraRows helper method. (addColumn): Use addExtraRows helper method. (getColumnName): Check and adjust size if necessary using checkSize(). 2006-05-08 Roman Kennke <kennke@aicas.com> PR classpath/27486 * javax/swing/JTable.java (setValueAt): Allow setting values even when table is editable.
* 2006-05-07 Sven de Marothy <sven@physto.se>Andrew John Hughes2006-05-071-4/+8
| | | | | | Fixed PR27463 * javax/swing/plaf/metal/MetalInternalFrameTitlePane.java (propertyChange): Handle FRAME_ICON_PROPERTY property.
* 2006-05-07 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2006-05-071-2/+8
| | | | | | | | | | | | | | | | | | | | PR classpath/27311: * gnu/java/text/StringFormatBuffer.java: (toString()): Implemented so we can see the contents. * java/text/DecimalFormat.java: (formatInternal(double,StringFormatBuffer,FieldPosition)): Don't calculate the exponent when the number is 0 or less. Also, use log10 instead of log now it's available. 2006-05-07 Sven de Marothy <sven@physto.se> Fixed PR27455 * gnu/java/awt/peer/GLightweightPeer.java (mouseEntered): Remove. * java/awt/Component.java (processMouseEvent): Do lightweight cursor handling. * javax/swing/plaf/basic/BasicTableHeaderUI.java (endResizing,mouseMoved): Save and reset original cursor, not the default one.
* 2006-05-07 Roman Kennke <kennke@aicas.com>Andrew John Hughes2006-05-073-22/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gnu/java/awt/java2d/RasterGraphics.java: New file. 2006-05-07 Roman Kennke <kennke@aicas.com> * gnu/java/awt/java2d/AbstractGraphics2D.java (fillShape): Determine user space bounds of shape and feed them into the actual rendering pipeline. (rawSetPixel): Made non-abstract for now. Maybe remove later. (rawSetForeground): Likewise. (getDestinationColorModel): Removed. (getDeviceBounds): Made non-abstract. Provide useful default impl. (rawFillShape): Handle paint context. (fillScanline): Implement painting and compositing. (fillShapeAntialias): Handle paint context. (fillScanlineAA): Implemented preliminary antialiasing based on composite context. Not working yet. (fillScanlineAlpha): Removed. (init): Fetch destination raster. (getDestinationRaster): New abstract method. (updateRaster): New backend method. 2006-05-07 Roman Kennke <kennke@aicas.com> * gnu/java/awt/java2d/AlphaCompositeContext.java (compose): Fixed loops, conditions and logic to make compositing work correctly. 2006-05-05 Roman Kennke <kennke@aicas.com> * java/awt/image/ColorModel.java (getNormalizedComponents): Implemented. 2006-05-05 Roman Kennke <kennke@aicas.com> * javax/swing/plaf/basic/BasicRadioButtonUI.java (paint): Query the button model for it's state, not the button itself. 2006-05-05 Roman Kennke <kennke@aicas.com> * javax/swing/JTable.java (tableChanged): Sync selection model with table model changes. 2006-05-04 Roman Kennke <kennke@aicas.com> * javax/swing/plaf/basic/BasicButtonListener.java (mouseEntered): Fixed conditions for changing states. 2006-05-04 Roman Kennke <kennke@aicas.com> * javax/swing/JOptionPane.java (AccessibleJOptionPane.getAccessibleRole): Implemented method. 2006-05-04 Roman Kennke <kennke@aicas.com> * javax/swing/JLabel.java (AccessibleJLabel.getSelectedText): Return null instead of "". (AccessibleJLabel.getSelectionStart): Added comment why return -1 is correct here. (AccessibleJLabel.getSelectionEnd): Added comment why return -1 is correct here. (AccessibleJLabel.getCharacterAttribute): Added comment about what to do here. (AccessibleJLabel.getCharCount): Added comment about what to do here. (AccessibleJLabel.getCharacterBounds): Tagged as not implemented. (AccessibleJLabel.getIndexAtPoint): Tagged as not implemented. (paramString): Return super.paramString() here, this provides a more meaningful output. 2006-05-04 Roman Kennke <kennke@aicas.com> * javax/swing/JComponent.java (paint): Added null check to avoid NPE when clip == null. 2006-05-04 Roman Kennke <kennke@aicas.com> * javax/swing/AbstractButton.java (addImpl): New method. Installs an OverlayLayout if no other layout has been installed before. (setLayout): New method. Detect if a client app installs a custom layout. 2006-05-04 Roman Kennke <kennke@aicas.com> * javax/swing/table/DefaultTableCellModel.java (noFocusBorder): Fixed width of empty border to 1. (getTableCellRendererComponent): Don't change the colors for focuses cells. Fixed border for focused cells. 2006-05-04 Roman Kennke <kennke@aicas.com> * javax/swing/JTable.java (moveToCellBeingEdited): Adjust bounding box of editing component to exactly cover the grid. * javax/swing/plaf/basic/BasicTableUI.java (paint): Paint grid to the bottom and right of the cells instead of left and top. Adjust bounding box of cells accordingly. * javax/swing/plaf/metal/MetalLookAndFeel.java (initComponentDefaults): Fixed color of JTable selection border. * javax/swing/plaf/metal/OceanTheme.java (addCustomEntriesToTable): Fixed color of JTable selection border.
* 2006-05-04 Lillian Angel <langel@redhat.com>Andrew John Hughes2006-05-071-14/+9
| | | | | | | * javax/swing/JLabel.java (JLabel): Pass in an empty string for the text parameter. (JLabel): Likewise. (JLabel): Likewise.
* 2006-05-05 Roman Kennke <kennke@aicas.com>Roman Kennke2006-05-051-1/+25
| | | | | * javax/swing/JTable.java (tableChanged): Sync selection model with table model changes.
* 2006-05-05 Audrius Meskauskas <AudriusA@Bioinformatics.org>Audrius Meskauskas2006-05-051-3/+7
| | | | | * javax/swing/plaf/basic/BasicTreeUI.java (paint): Return early if there are no visible nodes to paint.
* 2006-05-05 David Gilbert <david.gilbert@object-refinery.com>David Gilbert2006-05-051-9/+8
| | | | | * javax/swing/JOptionPane.java: API doc updates. ----------------------------------------------------------------------
* 2006-05-05 David Gilbert <david.gilbert@object-refinery.com>David Gilbert2006-05-051-5/+19
| | | | | | * javax/swing/JToolBar.java (paramString): Reimplemented. ----------------------------------------------------------------------
* 2006-05-05 David Gilbert <david.gilbert@object-refinery.com>David Gilbert2006-05-051-4/+14
| | | | | | * javax/swing/JScrollBar.java (paramString): Reimplemented. ----------------------------------------------------------------------
* 2006-05-04 Lillian Angel <langel@redhat.com>Lillian Angel2006-05-041-3/+3
| | | | | | | * javax/swing/JLabel.java (JLabel): Pass in an empty string for the text parameter. (JLabel): Likewise. (JLabel): Likewise.
* 2006-05-04 Roman Kennke <kennke@aicas.com>Roman Kennke2006-05-041-6/+5
| | | | | * javax/swing/plaf/basic/BasicButtonListener.java (mouseEntered): Fixed conditions for changing states.
* 2006-05-04 Roman Kennke <kennke@aicas.com>Roman Kennke2006-05-041-3/+4
| | | | | * javax/swing/JOptionPane.java (AccessibleJOptionPane.getAccessibleRole): Implemented method.
* 2006-05-04 Roman Kennke <kennke@aicas.com>Roman Kennke2006-05-041-9/+14
| | | | | | | | | | | | | | | | | * javax/swing/JLabel.java (AccessibleJLabel.getSelectedText): Return null instead of "". (AccessibleJLabel.getSelectionStart): Added comment why return -1 is correct here. (AccessibleJLabel.getSelectionEnd): Added comment why return -1 is correct here. (AccessibleJLabel.getCharacterAttribute): Added comment about what to do here. (AccessibleJLabel.getCharCount): Added comment about what to do here. (AccessibleJLabel.getCharacterBounds): Tagged as not implemented. (AccessibleJLabel.getIndexAtPoint): Tagged as not implemented. (paramString): Return super.paramString() here, this provides a more meaningful output.
* 2006-05-04 Roman Kennke <kennke@aicas.com>Roman Kennke2006-05-041-2/+3
| | | | | * javax/swing/JComponent.java (paint): Added null check to avoid NPE when clip == null.
* 2006-05-04 Roman Kennke <kennke@aicas.com>Roman Kennke2006-05-041-0/+41
| | | | | | | | * javax/swing/AbstractButton.java (addImpl): New method. Installs an OverlayLayout if no other layout has been installed before. (setLayout): New method. Detect if a client app installs a custom layout.
* 2006-05-04 Roman Kennke <kennke@aicas.com>Roman Kennke2006-05-041-8/+8
| | | | | | | * javax/swing/table/DefaultTableCellModel.java (noFocusBorder): Fixed width of empty border to 1. (getTableCellRendererComponent): Don't change the colors for focuses cells. Fixed border for focused cells.
* 2006-05-04 Roman Kennke <kennke@aicas.com>Roman Kennke2006-05-044-16/+32
| | | | | | | | | | | | | * javax/swing/JTable.java (moveToCellBeingEdited): Adjust bounding box of editing component to exactly cover the grid. * javax/swing/plaf/basic/BasicTableUI.java (paint): Paint grid to the bottom and right of the cells instead of left and top. Adjust bounding box of cells accordingly. * javax/swing/plaf/metal/MetalLookAndFeel.java (initComponentDefaults): Fixed color of JTable selection border. * javax/swing/plaf/metal/OceanTheme.java (addCustomEntriesToTable): Fixed color of JTable selection border.
* 2006-05-03 Robert Schuster <robertschuster@fsfe.org>Robert Schuster2006-05-032-0/+9
| | | | | | | | * javax/swing/text/FieldView.java: (adjustAllocation): Added if-block to return null when shape argument is null. * javax/swing/text/PlainView.java: (updateDamage): Added if-block to return early if a is null.
* Fixes PR #27393.Robert Schuster2006-05-033-12/+37
| | | | | | | | | | | | | | | | | | | | 2006-05-03 Robert Schuster <robertschuster@fsfe.org> * javax/swing/plaf/basic/BasicTextUI.java: (changeUpdate): Added note. (removeUpdate): Dito. (insertUpdate): Dito. (damageRange): Added if-block to return early. (modelToView): Added check of getVisibleEditorRect's return value. (getVisibleEditorRect): Return null instead of empty rectangle. * javax/swing/text/DefaultCaret.java: (clearHighlight): Removed if-clause to create a highlight entry if it did not exist before. * javax/swing/text/WrappedPlainView.java: (WrappedLine.modelToView): Throw exception if allocation area is empty, removed 2nd part of if-expression. (WrappedLine.updateDamage): Added more documentation, added check whether allocation area rectangle is null.
* 2006-05-03 Audrius Meskauskas <AudriusA@Bioinformatics.org>Audrius Meskauskas2006-05-031-5/+12
| | | | | * javax/swing/JSplitPane.java (setDividerLocation(int)): Reset to preferred sizes if the argument is negative.
* 2006-05-03 David Gilbert <david.gilbert@object-refinery.com>David Gilbert2006-05-031-4/+94
| | | | * javax/swing/JList.java: Added/updated API docs.
* 2006-05-03 Lillian Angel <langel@redhat.com>Lillian Angel2006-05-033-12/+65
| | | | | | | | | | | | | | * javax/swing/JComponent.java (getRoot): New private function. Gets the root appropriate for painting. If an applet exists as a parent, then it is returned. (paintDoubleBuffered): Changed to use new function. * javax/swing/RepaintManager.java (getRoot): New private function. Gets the root appropriate for painting. If an applet exists as a parent, then it is returned. (getOffscreenBuffer): Changed to use new function. * javax/swing/SwingUtilties.java (getRoot): Reverted last patch to return Window, even if an Applet exists.
* 2006-05-03 Audrius Meskauskas <AudriusA@Bioinformatics.org>Audrius Meskauskas2006-05-031-1/+2
| | | | | * javax/swing/text/WrappedPlainView.java (WrappedLine.modelToView): Do not check pos < currLineEnd if currLineStart == currLineEnd.
* 2006-05-02 Audrius Meskauskas <AudriusA@Bioinformatics.org>Audrius Meskauskas2006-05-023-10/+23
| | | | | | | | | | * javax/swing/ScrollPaneLayout.java (layoutContainer): Return without action if there is no view in the viewport. * javax/swing/text/WrappedPlainView.java (WrappedLine.getPreferredSpan): If metrics == null, update metrics. * javax/swing/tree/DefaultTreeModel.java (constructors): Do not call setRoot, assign the root node directly.
* 2006-05-02 Lillian Angel <langel@redhat.com>Lillian Angel2006-05-021-1/+1
| | | | | | | * javax/swing/SwingUtilities.java (getRoot): Should return the Applet if it exists. Only return the Window if an Applet has not been encountered.
* 2006-05-02 Lillian Angel <langel@redhat.com>Lillian Angel2006-05-021-9/+8
| | | | | | | * javax/swing/SwingUtilities.java (getRoot): Should return the Applet if it exists. Only return the Window if an Applet has not been encountered.
* 2006-05-02 Robert Schuster <robertschuster@fsfe.org>Robert Schuster2006-05-022-6/+4
| | | | | | | * javax/swing/text/JTextComponent.java: (setText): Throw InternalError from catch-block. * javax/swing/text/GapContent.java: (removed): Removed if-expression, changed '>' to '>='.
* 2006-05-02 Robert Schuster <robertschuster@fsfe.org>Robert Schuster2006-05-021-9/+8
| | | | | | | | | | | * javax/swing/text/GapContent.java: (GapContent): Restrict size argument by 2. (insertString): Changed expression from >= to >. (remove): Changed right side of expression to 'length - 1', changed exception message. (getChars): Throw exception if where below 0. (replace): Replaced call to setPositionsInRange() with resetMarksAtZero(), removed note.
* 2006-05-02 Roman Kennke <kennke@aicas.com>Roman Kennke2006-05-021-39/+21
| | | | | | PR 27326 * javax/swing/MenuSelectionManager.java (setSelectedPath): Rewritten.
* 2006-04-30 Roman Kennke <kennke@aicas.com>Roman Kennke2006-04-301-3/+16
| | | | | | | * javax/swing/plaf/basic/BasicTabbedPaneUI.java (lastTabInRun): Fix calculation of the last tab in a run. This has caused painting problems sometimes, making the last tab painted incorrectly.
* 2006-04-30 Audrius Meskauskas <AudriusA@Bioinformatics.org>Audrius Meskauskas2006-04-301-4/+2
| | | | | | PR 27297 * javax/swing/JComponent.java (paintChildrenWithOverlap): Use for and not while to prevent the endless loop.
* 2006-04-29 David Gilbert <david.gilbert@object-refinery.com>David Gilbert2006-04-291-1/+1
| | | | | | * javax/swing/JList.java (paramString): Changed from public to protected. ----------------------------------------------------------------------
* 2006-04-28 Audrius Meskauskas <AudriusA@Bioinformatics.org>Audrius Meskauskas2006-04-282-10/+6
| | | | | | | | | | PR 27296 * javax/swing/ScrollPaneLayout.java (layoutContainer): Decide about scroll bars from the preferred view size, not the current size. * javax/swing/ViewportLayout.java (layoutContainer): Do not change returned preferred size. Do not treat JScrollPane specially.
* 2006-04-28 Sven de Marothy <sven@physto.se>Sven de Marothy2006-04-281-1/+5
| | | | | | * java/awt/image/ReplicateScaleFilter.java: Fix comment. * javax/swing/ProgressMonitor.java (actionPerformed): Avoid divide-by-zero.
* 2006-04-28 Sven de Marothy <sven@physto.se>Sven de Marothy2006-04-282-4/+8
| | | | | * javax/swing/JSpinner.java: Fix default text justification. * javax/swing/plaf/basic/BasicSpinnerUI.java: Fix spinner layout size.
* 2006-04-28 David Gilbert <david.gilbert@object-refinery.com>David Gilbert2006-04-281-1/+17
| | | | | | | * javax/swing/JList.java (getMinSelectionIndex): Return correct value, added API docs, (getMaxSelectionIndex): Added API docs. ----------------------------------------------------------------------
* 2006-04-28 David Gilbert <david.gilbert@object-refinery.com>David Gilbert2006-04-281-42/+78
| | | | | | | | | | | | | | * javax/swing/JList.java (JList(Object[])): Pass new model directly to init(), (JList(Vector)): Likewise, (JList(ListModel)): Renamed argument and updated API docs, (init): Throw IllegalArgumentException for null argument, (setListData(Object[])): Delegate model creation, (setListData(Vector)): Likewise, (createListModel(Object[])): New private method, (createListModel(Vector)): New private method, (paramString): Implemented. ----------------------------------------------------------------------
* Partly fixes PR 27220.Robert Schuster2006-04-281-5/+8
| | | | | | | | 2006-04-28 Robert Schuster <robertschuster@fsfe.org> * javax/swing/text/View.java: (getNextVisualPositionFrom): Call modelToView and viewToModel on parent view.
* Partly fixes PR #27220.Robert Schuster2006-04-282-11/+113
| | | | | | | | | | 2006-04-28 Robert Schuster <robertschuster@fsfe.org> * javax/swing/text/View.java: (getNextVisualPositionFrom): Rewritten. * javax/swing/text/CompositeView.java: (getNextEastWestVisualPositionFrom): Partly implemented. (getNextNorthSouthVisualPositionFrom): Partly implemented.
* 2006-04-28 David Gilbert <david.gilbert@object-refinery.com>David Gilbert2006-04-281-1/+3
| | | | | | * javax/swing/JList.java (setFixedCellHeight): Use correct property name for event. ----------------------------------------------------------------------
* 2006-04-28 Robert Schuster <robertschuster@fsfe.org>Robert Schuster2006-04-281-7/+16
| | | | | | | * javax/swing/text/Utilities.java: (getNextWord): Use codePointAt instead of charAt, added note, changed if-expression, added throwing of exception. (getPreviousWord): Use codePointAt instead of charAt.
* 2006-04-27 Sven de Marothy <sven@physto.se>Sven de Marothy2006-04-271-0/+1
| | | | * javax/swing/JLabel.java (setIcon): Repaint on setting the icon.
* 2006-04-27 Audrius Meskauskas <AudriusA@Bioinformatics.org>Robert Schuster2006-04-271-12/+17
| | | | | | | | * javax/swing/text/Utilities.java: (getTabbedTextOffset): Introduced width variable, rewritten the check which ends the loop. (getBreakLocation): Call getTabbedTextOffset with rounding argument set to false.
* 2006-04-27 Audrius Meskauskas <AudriusA@Bioinformatics.org>Audrius Meskauskas2006-04-276-34/+78
| | | | | | | | | | | | | | | | | | | | * examples/gnu/classpath/examples/swing/TreeDemo.java (createContent): Added root visibility and selection listener demos. * javax/swing/JTree.java (setRootVisible): If false, unselect the root node, if it is selected. * javax/swing/plaf/basic/BasicTreeUI.java (TreeTraverseAction.actionPerformed): Do not select the root if it is not visible. * javax/swing/tree/DefaultTreeSelectionModel.java (removeSelectionPath, removeSelectionPaths): Reset lead to null if the current lead path is removed from selection. * javax/swing/tree/TreePath.java (getParentPath): Cache the parent path. * javax/swing/tree/FixedHeightLayoutCache.java (NodeRecord.getPath): Return the same path regardless is root visible or not. (update): Reduce the identation if the root is not visible. * javax/swing/tree/VariableHeightLayoutCache.java (NodeRecord.getPath): Return the same path regardless is root visible or not. (update): Reduce the identation if the root is not visible.
* 2006-04-26 Audrius Meskauskas <AudriusA@Bioinformatics.orgAudrius Meskauskas2006-04-263-12/+33
| | | | | | | | | | | | | * javax/swing/plaf/basic/BasicTreeUI.java (TreeAction.actionPerformed):Newly obtain the current lead path that must stay visible. (TreeTraverseAction.actionPerformed):Rewritten. * javax/swing/tree/FixedHeightLayoutCache.java (countRows): Do not treat root specially. (setModel): Assume the root node initially expanded. * javax/swing/tree/VariableHeightLayoutCache.java:(countRows): Do not treat root specially. (setModel): Assume the root node initially expanded.