| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
* javax/swing/tree/DefaultTreeSelectionModel.java (leadRow):
Initialise to -1.
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
| |
Fixed PR27463
* javax/swing/plaf/metal/MetalInternalFrameTitlePane.java
(propertyChange): Handle FRAME_ICON_PROPERTY property.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
| |
* javax/swing/JLabel.java
(JLabel): Pass in an empty string for the text parameter.
(JLabel): Likewise.
(JLabel): Likewise.
|
|
|
|
|
| |
* javax/swing/JTable.java
(tableChanged): Sync selection model with table model changes.
|
|
|
|
|
| |
* javax/swing/plaf/basic/BasicTreeUI.java (paint): Return early
if there are no visible nodes to paint.
|
|
|
|
|
| |
* javax/swing/JOptionPane.java: API doc updates.
----------------------------------------------------------------------
|
|
|
|
|
|
| |
* javax/swing/JToolBar.java
(paramString): Reimplemented.
----------------------------------------------------------------------
|
|
|
|
|
|
| |
* javax/swing/JScrollBar.java
(paramString): Reimplemented.
----------------------------------------------------------------------
|
|
|
|
|
|
|
| |
* javax/swing/JLabel.java
(JLabel): Pass in an empty string for the text parameter.
(JLabel): Likewise.
(JLabel): Likewise.
|
|
|
|
|
| |
* javax/swing/plaf/basic/BasicButtonListener.java
(mouseEntered): Fixed conditions for changing states.
|
|
|
|
|
| |
* javax/swing/JOptionPane.java
(AccessibleJOptionPane.getAccessibleRole): Implemented method.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
| |
* javax/swing/JComponent.java
(paint): Added null check to avoid NPE when clip == null.
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
* javax/swing/JSplitPane.java (setDividerLocation(int)):
Reset to preferred sizes if the argument is negative.
|
|
|
|
| |
* javax/swing/JList.java: Added/updated API docs.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
| |
* javax/swing/text/WrappedPlainView.java (WrappedLine.modelToView):
Do not check pos < currLineEnd if currLineStart == currLineEnd.
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
| |
* javax/swing/SwingUtilities.java
(getRoot): Should return the Applet if it exists.
Only return the Window if an Applet has not been
encountered.
|
|
|
|
|
|
|
| |
* javax/swing/SwingUtilities.java
(getRoot): Should return the Applet if it exists.
Only return the Window if an Applet has not been
encountered.
|
|
|
|
|
|
|
| |
* javax/swing/text/JTextComponent.java:
(setText): Throw InternalError from catch-block.
* javax/swing/text/GapContent.java:
(removed): Removed if-expression, changed '>' to '>='.
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
| |
PR 27326
* javax/swing/MenuSelectionManager.java
(setSelectedPath): Rewritten.
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
| |
PR 27297
* javax/swing/JComponent.java (paintChildrenWithOverlap):
Use for and not while to prevent the endless loop.
|
|
|
|
|
|
| |
* javax/swing/JList.java
(paramString): Changed from public to protected.
----------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
* java/awt/image/ReplicateScaleFilter.java: Fix comment.
* javax/swing/ProgressMonitor.java (actionPerformed):
Avoid divide-by-zero.
|
|
|
|
|
| |
* javax/swing/JSpinner.java: Fix default text justification.
* javax/swing/plaf/basic/BasicSpinnerUI.java: Fix spinner layout size.
|
|
|
|
|
|
|
| |
* javax/swing/JList.java
(getMinSelectionIndex): Return correct value, added API docs,
(getMaxSelectionIndex): Added API docs.
----------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
----------------------------------------------------------------------
|
|
|
|
|
|
|
|
| |
2006-04-28 Robert Schuster <robertschuster@fsfe.org>
* javax/swing/text/View.java:
(getNextVisualPositionFrom): Call modelToView and viewToModel on parent
view.
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
* javax/swing/JList.java
(setFixedCellHeight): Use correct property name for event.
----------------------------------------------------------------------
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
| |
* javax/swing/JLabel.java (setIcon): Repaint on setting the icon.
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|