| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
| |
* javax/swing/JEditorPane.java
(PlainEditorKit): New inner class.
(createDefaultEditorKit): Return an instance of PlainEditorKit.
* javax/swing/JTextPane.java
(insertComponent): Implemented previously stubbed method.
(insertIcon): Implemented previously stubbed method.
|
|
|
|
|
|
|
| |
* javax/swing/BasicEditorPaneUI.java
(create): Removed unneeded method.
* javax/swing/BasicTextPaneUI.java
(create): Removed unneeded method.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* java/awt/Container.java
(Container): Added comment.
(remove): Only call removeNotify if removed component is still
showing.
(paintComponents): Call paint() instead of super.paint().
(AccessibleContainerHandler.AccessibleContainerHandler): Added
comment.
(LightweightDispatcher.acquireComponentForMouseEvent):
Don't special case MOUSE_RELEASED events. They should be
dispatched unmodified just as MOUSE_PRESSED.
(LightweightDispatcher.handleEvent): Also clean up the pressCount
after a MOUSE_
|
|
|
|
|
| |
* javax/swing/text/BoxView.java:
(modelToView): New API method.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fixes PR classpath/PR24721
* javax/swing/text/BoxView.java
(getViewAtPoint): Added check in to return the last view, if one exists and
the point was not contained in the rectangle. This is what the JDK does.
* javax/swing/text/CompositeView.java
(viewToModel): Fixed API documentation. Added check to make sure
x and y are greater than 0. Otherwise, 0 is returned.
* javax/swing/text/DefaultCaret.java
(moveDot): Added check to match API specs.
(setDot): Likewise.
* javax/swing/text/GlyphView.java
(viewToModel): Removed assert. This is not needed here. The point does not
need to be in the rectangle.
|
|
|
|
|
|
|
|
|
|
|
| |
Reported by Roman Schnider <schnider@aicas.com>:
* java/awt/Component.java
(reshape): Removed unused statement.
(repaint()): Don't forward to parent when not showing.
(repaint(int)): Don't forward to parent when not showing.
(repaint(int,int,int,int)): Don't forward to parent when not showing.
(repaint(float,int,int,int,int)): Don't forward to parent when not
showing.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* javax/swing/text/AbstractDocument.java
(LeafElement.getName): If super.getName() returns something
non-null, then return that instead of ContentElementName.
* javax/swing/text/ComponentView.java
(comp): New field.
(getAlignment): Implemented previously stubbed method.
(getComponent): Implemented previously stubbed method.
(getMaximumSpan): Implemented previously stubbed method.
(getMinimumSpan): Implemented previously stubbed method.
(getPreferredSpan): Implemented previously stubbed method.
(modelToView): Implemented previously stubbed method.
(paint): Implemented previously stubbed method.
(setParent): Implemented previously stubbed method.
(setSize): Removed unneeded method.
(viewToModel): Implemented previously stubbed method.
* javax/swing/text/FlowView.java
(insertUpdate): Forward this event to the logical view.
* javax/swing/text/IconView.java
(paint): Implemented previously stubbed method.
(getPreferredSpan): Implemented previously stubbed method.
(modelToView): Implemented previously stubbed method.
(viewToModel): Implemented previously stubbed method.
* javax/swing/text/ParagraphView.java
(firstLineIndent): New field.
(justification): New field.
(lineSpacing): New field.
(tabSet): New field.
(changedUpdate): New method.
(setPropertiesFromAttributes): New method.
(setFirstLineIndent): New method.
(setJustification): New method.
(setLineSpacing): New method.
(getLayoutView): New method.
(getLayoutViewCount): New method.
(getTabSet): New method.
|
|
|
|
|
| |
* javax/swing/plaf/basic/BasicEditorPaneUI.java:
(create): Create new WrappedPlainView instance instead of PlainView.
|
|
|
|
|
|
|
|
| |
PR 24911
* classpath/examples/Makefile.am
(EXAMPLE_JAVA_FILES): Extended by /*/*/*.java and /*/*/*/*.java.
(READMES): New category.
(ALL_EXAMPLE_FILES): Extended by READMES category.
|
|
|
|
|
|
| |
* gnu/java/net/protocol/jar/Connection.java (getHeaderField):
Implemented.
(getLastModified): Implemented.
|
|
|
|
| |
* java/net/URLClassLoader.java: Reindented.
|
| |
|
|
|
|
|
|
|
|
|
| |
* javax/swing/JApplet.java
(paramString): Returns super.paramString() instead of a meaningless
'JFrame'.
* javax/swing/JPanel.java
(paramString): Returns super.paramString() instead of a meaningless
'JPanel'.
|
|
|
|
|
|
| |
* javax/swing/plaf/basic/BasicButtonUI.java
(installDefaults): Don't handle the Button.rollover property here,
this is Metal specific and is handled in MetalButtonUI.
|
|
|
|
|
| |
* javax/swing/JList.java
(locationToIndex): Clarified API comment.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* javax/swing/tree/DefaultTreeCellEditor.java
(DefaultTreeCellEditor): Replaced
UIManager.getLookAndFeelDefaults().getXXX() with UIManager.getXXX().
(createTreeCellEditor): Replaced
UIManager.getLookAndFeelDefaults().getXXX() with UIManager.getXXX().
* javax/swing/tree/DefaultTreeCellRenderer.java
(DefaultTreeCellRenderer): Replaced
UIManager.getLookAndFeelDefaults().getXXX() with UIManager.getXXX().
(getDefaultOpenIcon): Replaced
UIManager.getLookAndFeelDefaults().getXXX() with UIManager.getXXX().
(getDefaultClosedIcon): Replaced
UIManager.getLookAndFeelDefaults().getXXX() with UIManager.getXXX().
(getDefaultLeafIcon): Replaced
UIManager.getLookAndFeelDefaults().getXXX() with UIManager.getXXX().
(getTreeCellRendererComponent): Replaced
UIManager.getLookAndFeelDefaults().getXXX() with UIManager.getXXX().w
(paint): Replaced UIManager.getLookAndFeelDefaults().getXXX()
with UIManager.getXXX().
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/net/protocol/file/Connection.java (unquote): New
method.
(connect): Unquote filename.
* gnu/java/net/protocol/jar/Connection.java (get): Likewise.
* java/net/URL.java (URL): If the file part of a spec is absolute,
ignore the file part of its context.
|
|
|
|
|
| |
* examples/gnu/classpath/examples/CORBA/swing/README.html:
Added note about the build.
|
|
|
|
|
| |
* javax/swing/JSplitPane.java: Reformatted file.
* javax/swing/plaf/basic/BasicSplitPaneUI.java: Reformatted file.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* javax/swing/JSplitPane.java:
(JSplitPane<init>): This is a "demo" constructor, should create two
new JButtons, one with label "left button" and the other with label
"right button."
(setLeftComponent): Do not create JButtons here. A null argument is
taken to mean remove the current component.
(setRightComponent): Likewise.
* javax/swing/plaf/basic/BasicSplitPaneUI:
(setDividerLocation): Check that right component is not null before
trying to get its preferred size.
(startDragging): Avoid NPE by checking that left and right components
are not null.
|
| |
|
|
|
|
|
|
| |
* javax/swing/ToolTipManager.java
(mouseEntered): No need to start the insideTimer here,
already called showTip.
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fixes PR classpath/<PR24763>
* javax/swing/ToolTipManager.java
(mouseEntered): showTip should be called if exitTimer is running.
This means that the mouse has exited and re-entered a component
in less than 500ms.
(mouseExited): If enterTimer is not running, the exitTimer should
be started no matter what.
(showTip): Should not show tool tip if the currentComponent is
not showing.
|
|
|
|
|
|
|
|
|
|
| |
2005-11-16 Lillian Angel <langel@redhat.com>
Fixes PR classpath/<PR23557> and PR classpath/<PR24099>
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
(Java_gnu_java_awt_peer_gtk_GdkGraphics2D_gdkDrawDrawable):
Added check to determine if dst->drawable or src->drawable
are actually drawable. If not, return.
|
|
|
|
|
|
|
| |
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
(Java_gnu_java_awt_peer_gtk_GdkGraphics2D_gdkDrawDrawable):
Added check to determine if dst->drawable or src->drawable
are actually drawable. If not, return.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* javax/swing/plaf/metal/MetalBorders.java
(ButtonBorder.paintBorder): Special case the OceanTheme.
(ButtonBorder.paintOceanThemeBorder): New method.
* javax/swing/plaf/metal/MetalButtonUI.java
(installDefaults): Set the rollover flag here. Don't set a special
border for rollover buttons.
(uninstallDefaults): Reset the rollover flag.
(update): Only paint gradient when button is enabled and not pressed.
* javax/swing/plaf/metal/MetalButtonUI.java
(getCurrentTheme): New method.
|
|
|
|
|
| |
* java/io/FilePermission.java (implies): Correct the sense
in which action checks are applied.
|
|
|
|
|
|
|
| |
* AUTHORS: Added myself.
* javax/swing/KeyboardManager.java: Changed @author tag to match the
other ones I have.
* javax/swing/text/WrappedPlainView.java: Likewise.
|
|
|
|
|
|
| |
* java/security/ProtectionDomain.java (toString): Use
gnu.classpath.SystemProperties to read line.separator
without security manager check.
|
|
|
|
|
|
|
|
| |
* java/awt/image/MemoryImageSource.java
(startProduction): If animated, imageComplete should
be called with the SINGLEFRAMEDONE flag, meaning the
single frame is complete, but there are more frames
to follow.
|
|
|
|
|
| |
* javax/swing/text/PlainDocument.java:
(insertString): Null check fixes PR 24890.
|
|
|
|
|
|
| |
* javax/swing/plaf/basic/BasicTreeUI.java
(paintVerticalPartOfLeg): Added a check to prevent
ArrayOutOfBoundsException.
|
|
|
|
|
|
|
|
|
|
|
|
| |
* javax/swing/plaf/basic/BasicInternalFrameTitlePane.java
(paintTitleBackground): Only paint background if component is
opaque.
* javax/swing/plaf/metal/MetalInternalFrameTitlePane.java
(paintPalette): Added gradient painting.
(paintComponent): Added gradient painting.
* javax/swing/plaf/metal/OceanTheme.java
(addCustomEntriesToTable): Added gradient for
InternalFrama.activeTitleGradient.
|
|
|
|
|
|
|
|
| |
* javax/swing/ToolTipManager.java:
Removed unneeded fields.
(showTip): Re-implemented to use PopupFactory.
(hideTip): Likewise.
(adjustLocation): Fixed location.
|
|
|
|
|
|
|
| |
* javax/swing/text/PlainDocument.java:
(insertUpdate): The very first new element added doesn't start at the
start of the event, it starts at the start offset of the Element that
contains the start of the event.
|
|
|
|
|
| |
* javax/swing/plaf/basic/BasicMenuItemUI.java
(paintMenuItem): Always call paintBackground().
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/awt/peer/gtk/GtkDialogPeer.java
(create): Since popups were changed to be JWindowPopups,
this code should be done in GtkWindowPeer. Code is not
needed.
* gnu/java/awt/peer/gtk/GtkWindowPeer.java
(create): If window is not focusable, it should not take
the focus away from any other window. Therefore, its
type should be set to GDK_WINDOW_TYPE_HINT_MENU.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* javax/swing/plaf/metal/MetalButtonUI.java
(update): New method. Paints the gradient.
* javax/swing/plaf/metal/MetalCheckBoxIcon.java
(paintIcon): Paint gradient.
* javax/swing/plaf/metal/MetalIconFactory.java
(RadioButtonIcon.paintIcon): Paint gradient.
* javax/swing/plaf/metal/MetalLookAndFeel.java
(initClassDefaults): Added MetalMenuBarUI.
* javax/swing/plaf/metal/MetalMenuBarUI.java: New file.
* javax/swing/plaf/metal/MetalToggleButtonUI.java
(update): New method. Paints the gradient.
* javax/swing/plaf/metal/OceanTheme.java
(addCustomEntriesToTable): Added all the gradients.
|
|
|
|
|
|
|
| |
* javax/swing/JMenu.java
(JMenu()): Set opaque flag to false.
(JMenu(String)): Likewise.
(JMenu(Action)): Likewise.
|
|
|
|
|
|
|
|
|
|
|
|
| |
* javax/swing/plaf/basic/BasicListUI.java
(getRowHeight): Adjusted to deal correctly with fixed cell heights.
(convertYRoRow): Likewise.
* javax/swing/plaf/basic/BasicMenuItemUI.java
(installDefaults): Don't make the menu item opaque here.
(paintBackground): Moved background painting code from
paintMenuItem() to this method.
(paintMenuItem): Moved background painting to paintBackground().
(installDefaults): Don't set opaque flag here.
|
|
|
|
|
|
|
| |
* javax/swing/plaf/metal/MetalUtils.java
(paintGradient): New utility method(s).
(paintHorizontalGradient): New utility method.
(paintVerticalGradient): New utility method.
|
|
|
|
|
|
|
| |
* javax/swing/JComponent.java
(paintDoubleBuffered): Put paint() call inside a try-finally
block to correctly recover the double-buffering flag when
an exception is thrown inside the paint() call.
|
|
|
|
|
|
|
| |
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
(Java_gnu_java_awt_peer_gtk_GtkWindowPeer_gtkWindowSetResizable):
Needed to set allow_shrink to the same value as resizable. Other-
wise, it is always set to false.
|
|
|
|
|
| |
* javax/swing/plaf/basic/BasicTreeUI.java
(paint): Added check to prevent NPE.
|
|
|
|
|
|
| |
* javax/swing/JComponent.java:
(removeNotify): Unregister WHEN_IN_FOCUSED_WINDOW bindings from the
KeyboardManager.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* javax/swing/plaf/basic/BasicLookAndFeel.java
(initComponentDefaults): Default rowHeight for tree's should
be 0. This is Sun and IBM's default.
* javax/swing/plaf/metal/MetalLookAndFeel.java
(initComponentDefaults): Default rowHeight for tree's should
e 0. This is Sun and IBM's default.
* javax/swing/plaf/basic/BasicTreeUI.java:
Added a default rowHeight field.
(setRowHeight): Set the rowHeight to the class default if parameter
is 0. Tree row height should never be set to 0. 20 is the minimum.
(installDefaults): fixed call to tree.setRowHeight
(shouldPaintExpandControl): Added to check to prevent NPE.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* examples/gnu/classpath/examples/CORBA/swing/README.html,
examples/gnu/classpath/examples/CORBA/swing/x5/CanvasWorld.java,
examples/gnu/classpath/examples/CORBA/swing/x5/ChatConstants.java,
examples/gnu/classpath/examples/CORBA/swing/x5/ClientFrame.java,
examples/gnu/classpath/examples/CORBA/swing/x5/Demo.java,
examples/gnu/classpath/examples/CORBA/swing/x5/GameManager.java,
examples/gnu/classpath/examples/CORBA/swing/x5/GameManagerImpl.java,
examples/gnu/classpath/examples/CORBA/swing/x5/IorReader.java,
examples/gnu/classpath/examples/CORBA/swing/x5/OrbStarter.java,
examples/gnu/classpath/examples/CORBA/swing/x5/Player.java,
examples/gnu/classpath/examples/CORBA/swing/x5/PlayerImpl.java,
examples/gnu/classpath/examples/CORBA/swing/x5/PlayingDesk.java,
examples/gnu/classpath/examples/CORBA/swing/x5/State.java,
examples/gnu/classpath/examples/CORBA/swing/x5/X5Server.java,
examples/gnu/classpath/examples/CORBA/swing/x5/_GameManagerImpl_Tie.java,
examples/gnu/classpath/examples/CORBA/swing/x5/_GameManager_Stub.java,
examples/gnu/classpath/examples/CORBA/swing/x5/_PlayerImpl_Tie.java,
examples/gnu/classpath/examples/CORBA/swing/x5/_Player_Stub.java:
New files.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* javax/swing/UIManager.java
(userUIDefaults): New field.
(get(Object)): Respect the user UI settings.
(get(Object,Locale)): Respect the user UI settings.
(getBoolean(Object)): Call get() instead of
getLookAndFeelDefaults().get() in order to respect the user UI
settings.
(getBoolean(Object,Locale)): Call get() instead of
getLookAndFeelDefaults().get() in order to respect the user UI
settings.
(getBorder(Object)): Call get() instead of
getLookAndFeelDefaults().get() in order to respect the user UI
settings.
(getBorder(Object,Locale)): Call get() instead of
getLookAndFeelDefaults().get() in order to respect the user UI
settings.
(getColor(Object)): Call get() instead of
getLookAndFeelDefaults().get() in order to respect the user UI
settings.
(getColor(Object,Locale)): Call get() instead of
getLookAndFeelDefaults().get() in order to respect the user UI
settings.
(getDimension(Object)): Call get() instead of
getLookAndFeelDefaults().get() in order to respect the user UI
settings.
(getDimension(Object,Locale)): Call get() instead of
getLookAndFeelDefaults().get() in order to respect the user UI
settings.
(getFont(Object)): Call get() instead of
getLookAndFeelDefaults().get() in order to respect the user UI
settings.
(getFont(Object,Locale)): Call get() instead of
getLookAndFeelDefaults().get() in order to respect the user UI
settings.
(getIcon(Object)): Call get() instead of
getLookAndFeelDefaults().get() in order to respect the user UI
settings.
(getIcon(Object,Locale)): Call get() instead of
getLookAndFeelDefaults().get() in order to respect the user UI
settings.
(getInsets(Object)): Call get() instead of
getLookAndFeelDefaults().getInsets() in order to respect the user UI
settings.
(getInsets(Object,Locale)): Call get() instead of
getLookAndFeelDefaults().getInsets() in order to respect the user UI
settings.
(getInt(Object)): Call get() instead of
getLookAndFeelDefaults().get() in order to respect the user UI
settings.
(getInt(Object,Locale)): Call get() instead of
getLookAndFeelDefaults().get() in order to respect the user UI
settings.
(getString(Object)): Call get() instead of
getLookAndFeelDefaults().get() in order to respect the user UI
settings.
(getString(Object,Locale)): Call get() instead of
getLookAndFeelDefaults().get() in order to respect the user UI
settings.
(getUI(JComponent)): Respect the user UI settings.
(put): Put key/value into user UI settings.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* javax/swing/plaf/metal/MetalBorders.java
(OptionDialogBorder.paintBorder): Replaced
UIManager.getLookAndFeelDefaults().get() with UIManager.get().
* javax/swing/plaf/metal/MetalButtonUI.java
(MetalButtonUI): Replaced UIManager.getLookAndFeelDefaults().get()
with UIManager.get().
* javax/swing/plaf/metal/MetalInternalFrameTitlePane.java
(installDefaults): Replaced UIManager.getLookAndFeelDefaults().get()
with UIManager.get().
* javax/swing/plaf/metal/MetalLabelUI.java
(paintDisabledText): Replaced UIManager.getLookAndFeelDefaults().get()
with UIManager.get().
* javax/swing/plaf/metal/MetalRadioButtonUI.java
(installDefaults): Replaced UIManager.getLookAndFeelDefaults().get()
with UIManager.get().
* javax/swing/plaf/metal/MetalScrollBarUI.java
(createDecreaseButton): Replaced
UIManager.getLookAndFeelDefaults().get() with UIManager.get().
(createIncreaseButton): Replaced
UIManager.getLookAndFeelDefaults().get() with UIManager.get().
(paintThumbHorizontal): Replaced
UIManager.getLookAndFeelDefaults().get() with UIManager.get().
(paintThumbVertical): Replaced
UIManager.getLookAndFeelDefaults().get() with UIManager.get().
* javax/swing/plaf/metal/MetalSplitPaneUI.java
(createDefaultDivider): Replaced
UIManager.getLookAndFeelDefaults().get() with UIManager.get().
* javax/swing/plaf/metal/MetalToggleButtonUI.java
(installDefaults): Replaced UIManager.getLookAndFeelDefaults().get()
with UIManager.get().
* javax/swing/plaf/metal/MetalToolTipUI.java
(MetalToolTipUI): Replaced UIManager.getLookAndFeelDefaults().get()
with UIManager.get().
* javax/swing/plaf/metal/MetalTreeUI.java
Removed all listener fields.
(installUI): Removed initialization and call super.installUI()
instead.
(uninstallUI): Removed initialization and call super.uninstallUI()
instead.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2005-11-15 Lillian Angel <langel@redhat.com>
* gnu/java/awt/peer/gtk/GtkComponentPeer.java:
Code written by Sven de Marothy.
(gtkWindowGetLocationOnScreen): Added declaration
for native function.
(getLocationOnScreen): Changed to handle 2 different cases.
If the component is a window, gtkWindowGetLocationOnScreen is
called; otherwise, gtkWidetGetLocationOnScreen.
* include/gnu_java_awt_peer_gtk_GtkComponentPeer.h:
Added signature for new function Java_gnu_java_awt_peer_
gtk_GtkComponentPeer_gtkWindowGetLocationOnScreen.
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
(Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetGetLocationOnScreen):
Implemented.
|