Index: ChangeLog =================================================================== RCS file: /cvsroot/classpath/classpath/ChangeLog,v retrieving revision 1.2386.2.67 diff -u -3 -p -u -r1.2386.2.67 ChangeLog --- ChangeLog 25 Jan 2005 12:41:39 -0000 1.2386.2.67 +++ ChangeLog 26 Jan 2005 02:26:23 -0000 @@ -1,3 +1,83 @@ +2005-01-25 Ito Kazumitsu + + * java/text/SimpleDateFormat.java: + (parse): Use offset to set ZONE_OFFSET + rather than the DST_OFFSET, so that + GMT offset timezones change the right + one. + +2005-01-25 Michael Koch + + * javax/swing/DefaultCellRenderer.java: Removed. + +2005-01-25 Michael Koch + + * javax/swing/AbstractButton.java + (fireItemStateChanged): Made protected. + (fireActionPerformed): Likewise. + (fireStateChanged): Likewise. + * javax/swing/DefaultButtonModel.java + (fireItemStateChanged): Likewise. + (fireActionPerformed): Likewise. + (fireStateChanged): Likewise. + * javax/swing/JApplet.java + (JApplet): Removed. + (frameInit): Likewise. + (setRootPane): Made protected. + (createRootPane): Likewise. + * javax/swing/JComponent.java + (getClientProperty): Likewise. + (putClientProperty): Likewise. + * javax/swing/JEditorPane.java + (getContentType): Likewise. + (setContentType): Likewise. + * javax/swing/JFrame.java + (setRootPane): Likewise. + (createRootPane): Likewise. + * javax/swing/JInternalFrame.java + (getFocusCycleRootAncestor): Made final. Added @since tag. + (isFocusCycleRoot): Likewise. + (getWarningString): Made final. + * javax/swing/JScrollBar.java + (changeListener): Removed. + (changeEvent): Likewise. + (createChangeListener): Likewise. + (fireStateChanged): Likewise. + (addChangeListener): Likewise. + (removeChangeListener): Likewise. + (getChangeListeners): Likewise. + * javax/swing/JScrollPane.java + (createViewport): Made protected. + * javax/swing/JViewport.java + (addImpl): Likewise. + (setBorder): New method. + * javax/swing/JWindow.java + (setRootPane): Made protected. + (createRootPane): Likewise. + * javax/swing/plaf/basic/BasicButtonUI.java + (installListeners): Likewise. + (uninstallListeners): Likewise. + * javax/swing/plaf/basic/BasicProgressBarUI.java + (incrementAnimationIndex): Likewise. + * javax/swing/plaf/basic/BasicTabbedPaneUI.java + (createLayoutManager): Likewise. + * javax/swing/table/DefaultTableCellRenderer.java + (firePropertyChange): Likewise. + * javax/swing/table/JTableHeader.java + (AccessibleJTableHeaderEntry.AccessibleJTableHeaderEntry): + New constructor. + * javax/swing/text/PlainDocument.java + (reindex): Made private. + * javax/swing/text/PlainView.java + (drawLine): Made protected. + (getTabSize): Likewise. + * javax/swing/text/View.java + (setSize): Removed. + (preferenceChanged): New method. + (getBreakWeight): Likewise. + (breakView): Likewise. + (getViewIndex): Likewise. + 2005-01-24 Michael Koch * javax/swing/JScrollPane.java Index: java/text/SimpleDateFormat.java =================================================================== RCS file: /cvsroot/classpath/classpath/java/text/SimpleDateFormat.java,v retrieving revision 1.28.2.4 diff -u -3 -p -u -r1.28.2.4 SimpleDateFormat.java --- java/text/SimpleDateFormat.java 23 Jan 2005 02:46:23 -0000 1.28.2.4 +++ java/text/SimpleDateFormat.java 26 Jan 2005 02:26:24 -0000 @@ -840,7 +840,7 @@ public class SimpleDateFormat extends Da // We need a special case for the timezone, because it // uses a different data structure than the other cases. is_numeric = false; - calendar_field = Calendar.DST_OFFSET; + calendar_field = Calendar.ZONE_OFFSET; String[][] zoneStrings = formatData.getZoneStrings(); int zoneCount = zoneStrings.length; int index = pos.getIndex(); @@ -868,8 +868,8 @@ public class SimpleDateFormat extends Da found_zone = true; saw_timezone = true; TimeZone tz = TimeZone.getTimeZone (strings[0]); - calendar.set (Calendar.ZONE_OFFSET, tz.getRawOffset ()); - offset = tz.getDSTSavings(); + calendar.set (Calendar.DST_OFFSET, tz.getDSTSavings()); + offset = tz.getRawOffset (); pos.setIndex(index + strings[k].length()); break; } Index: javax/swing/AbstractButton.java =================================================================== RCS file: /cvsroot/classpath/classpath/javax/swing/AbstractButton.java,v retrieving revision 1.17.2.3 diff -u -3 -p -u -r1.17.2.3 AbstractButton.java --- javax/swing/AbstractButton.java 15 Jan 2005 17:02:20 -0000 1.17.2.3 +++ javax/swing/AbstractButton.java 26 Jan 2005 02:26:25 -0000 @@ -661,7 +661,7 @@ public abstract class AbstractButton ext * * @param e The event signifying that the button's model changed state */ - public void fireItemStateChanged(ItemEvent e) + protected void fireItemStateChanged(ItemEvent e) { e.setSource(this); ItemListener[] listeners = getItemListeners(); @@ -676,7 +676,7 @@ public abstract class AbstractButton ext * * @param e The event signifying that the button's model was clicked */ - public void fireActionPerformed(ActionEvent e) + protected void fireActionPerformed(ActionEvent e) { e.setSource(this); ActionListener[] listeners = getActionListeners(); @@ -689,7 +689,7 @@ public abstract class AbstractButton ext * Calls address@hidden ChangeEvent.stateChanged} on each address@hidden ChangeListener} * in the button's listener list. */ - public void fireStateChanged() + protected void fireStateChanged() { ChangeListener[] listeners = getChangeListeners(); @@ -806,7 +806,7 @@ public abstract class AbstractButton ext public void setRolloverEnabled(boolean r) { if (rollOverEnabled != r) - { + { rollOverEnabled = r; firePropertyChange(ROLLOVER_ENABLED_CHANGED_PROPERTY, !r, r); revalidate(); Index: javax/swing/DefaultButtonModel.java =================================================================== RCS file: /cvsroot/classpath/classpath/javax/swing/DefaultButtonModel.java,v retrieving revision 1.10.2.3 diff -u -3 -p -u -r1.10.2.3 DefaultButtonModel.java --- javax/swing/DefaultButtonModel.java 16 Jan 2005 15:15:13 -0000 1.10.2.3 +++ javax/swing/DefaultButtonModel.java 26 Jan 2005 02:26:25 -0000 @@ -272,7 +272,7 @@ public class DefaultButtonModel implemen * * @param e The ItemEvent to fire */ - public void fireItemStateChanged(ItemEvent e) + protected void fireItemStateChanged(ItemEvent e) { ItemListener[] ll = getItemListeners(); @@ -288,7 +288,7 @@ public class DefaultButtonModel implemen * * @param e The ActionEvent to fire */ - public void fireActionPerformed(ActionEvent e) + protected void fireActionPerformed(ActionEvent e) { ActionListener[] ll = getActionListeners(); @@ -301,7 +301,7 @@ public class DefaultButtonModel implemen * has occurred. This happens in response to the any change to a property * of the model. */ - public void fireStateChanged() + protected void fireStateChanged() { ChangeListener[] ll = getChangeListeners(); Index: javax/swing/JApplet.java =================================================================== RCS file: /cvsroot/classpath/classpath/javax/swing/JApplet.java,v retrieving revision 1.8.2.3 diff -u -3 -p -u -r1.8.2.3 JApplet.java --- javax/swing/JApplet.java 16 Jan 2005 15:15:13 -0000 1.8.2.3 +++ javax/swing/JApplet.java 26 Jan 2005 02:26:25 -0000 @@ -1,5 +1,5 @@ /* JApplet.java -- - Copyright (C) 2002, 2004 Free Software Foundation, Inc. + Copyright (C) 2002, 2004, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -59,16 +59,6 @@ public class JApplet extends Applet public JApplet() { - frameInit(); - } - - public JApplet(String title) - { - frameInit(); - } - - protected void frameInit() - { super.setLayout(new BorderLayout(1, 1)); getRootPane(); // will do set/create } @@ -100,7 +90,7 @@ public class JApplet extends Applet return rootPane; } - public void setRootPane(JRootPane root) + protected void setRootPane(JRootPane root) { if (rootPane != null) remove(rootPane); @@ -109,7 +99,7 @@ public class JApplet extends Applet add(rootPane, BorderLayout.CENTER); } - public JRootPane createRootPane() + protected JRootPane createRootPane() { return new JRootPane(); } Index: javax/swing/JComponent.java =================================================================== RCS file: /cvsroot/classpath/classpath/javax/swing/JComponent.java,v retrieving revision 1.20.2.4 diff -u -3 -p -u -r1.20.2.4 JComponent.java --- javax/swing/JComponent.java 16 Jan 2005 15:15:13 -0000 1.20.2.4 +++ javax/swing/JComponent.java 26 Jan 2005 02:26:26 -0000 @@ -427,7 +427,7 @@ public abstract class JComponent extends * @see #getClientProperties * @see #putClientProperty */ - public Object getClientProperty(Object key) + public final Object getClientProperty(Object key) { return getClientProperties().get(key); } @@ -444,7 +444,7 @@ public abstract class JComponent extends * @see #getClientProperties * @see #getClientProperty */ - public void putClientProperty(Object key, Object value) + public final void putClientProperty(Object key, Object value) { getClientProperties().put(key, value); } Index: javax/swing/JEditorPane.java =================================================================== RCS file: /cvsroot/classpath/classpath/javax/swing/JEditorPane.java,v retrieving revision 1.12.2.2 diff -u -3 -p -u -r1.12.2.2 JEditorPane.java --- javax/swing/JEditorPane.java 16 Jan 2005 15:15:13 -0000 1.12.2.2 +++ javax/swing/JEditorPane.java 26 Jan 2005 02:26:26 -0000 @@ -113,7 +113,7 @@ public class JEditorPane extends JTextCo return null; } - public String getContentType() + public final String getContentType() { return getEditorKit().getContentType(); } @@ -243,7 +243,7 @@ public class JEditorPane extends JTextCo { } - public void setContentType(String type) + public final void setContentType(String type) { if (editorKit != null && editorKit.getContentType().equals(type)) Index: javax/swing/JFrame.java =================================================================== RCS file: /cvsroot/classpath/classpath/javax/swing/JFrame.java,v retrieving revision 1.13.2.2 diff -u -3 -p -u -r1.13.2.2 JFrame.java --- javax/swing/JFrame.java 15 Jan 2005 17:02:20 -0000 1.13.2.2 +++ javax/swing/JFrame.java 26 Jan 2005 02:26:26 -0000 @@ -1,5 +1,5 @@ /* JFrame.java -- - Copyright (C) 2002, 2004 Free Software Foundation, Inc. + Copyright (C) 2002, 2004, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -123,7 +123,7 @@ public class JFrame extends Frame return rootPane; } - public void setRootPane(JRootPane root) + protected void setRootPane(JRootPane root) { if (rootPane != null) remove(rootPane); @@ -132,7 +132,7 @@ public class JFrame extends Frame add(rootPane, BorderLayout.CENTER); } - public JRootPane createRootPane() + protected JRootPane createRootPane() { return new JRootPane(); } Index: javax/swing/JInternalFrame.java =================================================================== RCS file: /cvsroot/classpath/classpath/javax/swing/JInternalFrame.java,v retrieving revision 1.6.2.3 diff -u -3 -p -u -r1.6.2.3 JInternalFrame.java --- javax/swing/JInternalFrame.java 16 Jan 2005 15:15:13 -0000 1.6.2.3 +++ javax/swing/JInternalFrame.java 26 Jan 2005 02:26:26 -0000 @@ -1,5 +1,5 @@ /* JInternalFrame.java -- - Copyright (C) 2002, 2004 Free Software Foundation, Inc. + Copyright (C) 2002, 2004, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -780,9 +780,11 @@ public class JInternalFrame extends JCom * This method returns null because this must always be the root of a focus * traversal. * - * @return null. + * @return always null + * + * @since 1.4 */ - public Container getFocusCycleRootAncestor() + public final Container getFocusCycleRootAncestor() { // as defined. return null; @@ -968,7 +970,7 @@ public class JInternalFrame extends JCom * * @return null. */ - public String getWarningString() + public final String getWarningString() { // as defined. return null; @@ -1019,9 +1021,11 @@ public class JInternalFrame extends JCom /** * This must always return true. * - * @return True + * @return always true + * + * @since 1.4 */ - public boolean isFocusCycleRoot() + public final boolean isFocusCycleRoot() { return true; } Index: javax/swing/JScrollBar.java =================================================================== RCS file: /cvsroot/classpath/classpath/javax/swing/JScrollBar.java,v retrieving revision 1.8.2.1 diff -u -3 -p -u -r1.8.2.1 JScrollBar.java --- javax/swing/JScrollBar.java 15 Jan 2005 17:02:20 -0000 1.8.2.1 +++ javax/swing/JScrollBar.java 26 Jan 2005 02:26:26 -0000 @@ -1,5 +1,5 @@ /* JScrollBar.java -- - Copyright (C) 2002, 2004 Free Software Foundation, Inc. + Copyright (C) 2002, 2004, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -35,6 +35,7 @@ this exception to your version of the li obligated to do so. If you do not wish to do so, delete this exception statement from your version. */ + package javax.swing; import java.awt.Adjustable; @@ -47,11 +48,8 @@ import javax.accessibility.AccessibleCon import javax.accessibility.AccessibleRole; import javax.accessibility.AccessibleStateSet; import javax.accessibility.AccessibleValue; -import javax.swing.event.ChangeEvent; -import javax.swing.event.ChangeListener; import javax.swing.plaf.ScrollBarUI; - /** * The JScrollBar. Two buttons control how the values that the * scroll bar can take. You can also drag the thumb or click the track @@ -178,12 +176,6 @@ public class JScrollBar extends JCompone /** How much the thumb moves when moving in a unit. */ protected int unitIncrement = 1; - /** The ChangeListener that listens to the model. */ - private transient ChangeListener changeListener; - - /** The ChangeEvent that's fired. */ - private transient ChangeEvent changeEvent; - /** * Creates a new horizontal JScrollBar object with a minimum * of 0, a maxmium of 100, a value of 0 and an extent of 10. @@ -223,8 +215,6 @@ public class JScrollBar extends JCompone throw new IllegalArgumentException(orientation + " is not a legal orientation"); this.orientation = orientation; - changeListener = createChangeListener(); - model.addChangeListener(changeListener); updateUI(); } @@ -325,8 +315,6 @@ public class JScrollBar extends JCompone { BoundedRangeModel oldModel = model; model = newModel; - oldModel.removeChangeListener(changeListener); - model.addChangeListener(changeListener); firePropertyChange(MODEL_CHANGED_PROPERTY, oldModel, model); } } @@ -558,70 +546,6 @@ public class JScrollBar extends JCompone } /** - * This method creates a new ChangeListener. - * - * @return A new ChangeListener. - */ - private ChangeListener createChangeListener() - { - return new ChangeListener() - { - public void stateChanged(ChangeEvent e) - { - fireStateChanged(); - } - }; - } - - /** - * This method is called whenever the model fires a ChangeEvent. It should - * propagate the ChangeEvent to its listeners with a new ChangeEvent that - * identifies the scroll bar as the source. - */ - private void fireStateChanged() - { - Object[] changeListeners = listenerList.getListenerList(); - if (changeEvent == null) - changeEvent = new ChangeEvent(this); - for (int i = changeListeners.length - 2; i >= 0; i -= 2) - { - if (changeListeners[i] == ChangeListener.class) - ((ChangeListener) changeListeners[i + 1]).stateChanged(changeEvent); - } - } - - /** - * This method adds a ChangeListener to the scroll bar. - * - * @param listener The listener to add. - */ - public void addChangeListener(ChangeListener listener) - { - listenerList.add(ChangeListener.class, listener); - } - - /** - * This method removes a ChangeListener from the scroll bar. - * - * @param listener The listener to remove. - */ - public void removeChangeListener(ChangeListener listener) - { - listenerList.remove(ChangeListener.class, listener); - } - - /** - * This method returns an array of all ChangeListeners listening to this - * scroll bar. - * - * @return An array of ChangeListeners listening to this scroll bar. - */ - public ChangeListener[] getChangeListeners() - { - return (ChangeListener[]) listenerList.getListeners(ChangeListener.class); - } - - /** * This method adds an AdjustmentListener to the scroll bar. * * @param listener The listener to add. Index: javax/swing/JScrollPane.java =================================================================== RCS file: /cvsroot/classpath/classpath/javax/swing/JScrollPane.java,v retrieving revision 1.12.2.3 diff -u -3 -p -u -r1.12.2.3 JScrollPane.java --- javax/swing/JScrollPane.java 25 Jan 2005 12:41:41 -0000 1.12.2.3 +++ javax/swing/JScrollPane.java 26 Jan 2005 02:26:26 -0000 @@ -588,7 +588,7 @@ public class JScrollPane return new ScrollBar(SwingConstants.VERTICAL); } - public JViewport createViewport() + protected JViewport createViewport() { return new JViewport(); } Index: javax/swing/JViewport.java =================================================================== RCS file: /cvsroot/classpath/classpath/javax/swing/JViewport.java,v retrieving revision 1.10.2.3 diff -u -3 -p -u -r1.10.2.3 JViewport.java --- javax/swing/JViewport.java 16 Jan 2005 02:14:49 -0000 1.10.2.3 +++ javax/swing/JViewport.java 26 Jan 2005 02:26:26 -0000 @@ -1,5 +1,5 @@ /* JViewport.java -- - Copyright (C) 2002, 2004 Free Software Foundation, Inc. + Copyright (C) 2002, 2004, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -45,6 +45,7 @@ import java.awt.Insets; import java.awt.Point; import java.awt.Rectangle; +import javax.swing.border.Border; import javax.swing.event.ChangeEvent; import javax.swing.event.ChangeListener; import javax.swing.plaf.ViewportUI; @@ -281,7 +282,7 @@ public class JViewport extends JComponen fireStateChanged(); } - public void addImpl(Component comp, Object constraints, int index) + protected void addImpl(Component comp, Object constraints, int index) { if (getComponentCount() > 0) remove(getComponents()[0]); @@ -374,4 +375,10 @@ public class JViewport extends JComponen { super.setUI(ui); } + + public final void setBorder(Border border) + { + if (border != null) + throw new IllegalArgumentException(); + } } Index: javax/swing/JWindow.java =================================================================== RCS file: /cvsroot/classpath/classpath/javax/swing/JWindow.java,v retrieving revision 1.11.2.3 diff -u -3 -p -u -r1.11.2.3 JWindow.java --- javax/swing/JWindow.java 25 Jan 2005 12:41:41 -0000 1.11.2.3 +++ javax/swing/JWindow.java 26 Jan 2005 02:26:26 -0000 @@ -129,7 +129,7 @@ public class JWindow extends Window impl return rootPane; } - public void setRootPane(JRootPane root) + protected void setRootPane(JRootPane root) { if (rootPane != null) remove(rootPane); @@ -138,7 +138,7 @@ public class JWindow extends Window impl add(rootPane, BorderLayout.CENTER); } - public JRootPane createRootPane() + protected JRootPane createRootPane() { return new JRootPane(); } Index: javax/swing/plaf/basic/BasicButtonUI.java =================================================================== RCS file: /cvsroot/classpath/classpath/javax/swing/plaf/basic/BasicButtonUI.java,v retrieving revision 1.12.2.3 diff -u -3 -p -u -r1.12.2.3 BasicButtonUI.java --- javax/swing/plaf/basic/BasicButtonUI.java 16 Jan 2005 15:15:13 -0000 1.12.2.3 +++ javax/swing/plaf/basic/BasicButtonUI.java 26 Jan 2005 02:26:27 -0000 @@ -1,5 +1,5 @@ -/* BasicButtonUI.java - Copyright (C) 2002, 2004 Free Software Foundation, Inc. +/* BasicButtonUI.java -- + Copyright (C) 2002, 2004, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -35,6 +35,7 @@ this exception to your version of the li obligated to do so. If you do not wish to do so, delete this exception statement from your version. */ + package javax.swing.plaf.basic; import java.awt.Color; @@ -136,7 +137,7 @@ public class BasicButtonUI extends Butto return new BasicButtonListener(b); } - public void installListeners(AbstractButton b) + protected void installListeners(AbstractButton b) { listener = createButtonListener(b); b.addChangeListener(listener); @@ -146,7 +147,7 @@ public class BasicButtonUI extends Butto b.addMouseMotionListener(listener); } - public void uninstallListeners(AbstractButton b) + protected void uninstallListeners(AbstractButton b) { b.removeChangeListener(listener); b.removePropertyChangeListener(listener); Index: javax/swing/plaf/basic/BasicProgressBarUI.java =================================================================== RCS file: /cvsroot/classpath/classpath/javax/swing/plaf/basic/BasicProgressBarUI.java,v retrieving revision 1.5.2.1 diff -u -3 -p -u -r1.5.2.1 BasicProgressBarUI.java --- javax/swing/plaf/basic/BasicProgressBarUI.java 15 Jan 2005 17:02:21 -0000 1.5.2.1 +++ javax/swing/plaf/basic/BasicProgressBarUI.java 26 Jan 2005 02:26:27 -0000 @@ -1,5 +1,5 @@ /* BasicProgressBarUI.java -- - Copyright (C) 2004 Free Software Foundation, Inc. + Copyright (C) 2004, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -467,7 +467,7 @@ public class BasicProgressBarUI extends /** * This method increments the animation index. */ - public void incrementAnimationIndex() + protected void incrementAnimationIndex() { animationIndex++; //numFrames is like string length, it should be named numFrames or something Index: javax/swing/plaf/basic/BasicTabbedPaneUI.java =================================================================== RCS file: /cvsroot/classpath/classpath/javax/swing/plaf/basic/BasicTabbedPaneUI.java,v retrieving revision 1.10.2.3 diff -u -3 -p -u -r1.10.2.3 BasicTabbedPaneUI.java --- javax/swing/plaf/basic/BasicTabbedPaneUI.java 16 Jan 2005 15:15:13 -0000 1.10.2.3 +++ javax/swing/plaf/basic/BasicTabbedPaneUI.java 26 Jan 2005 02:26:27 -0000 @@ -1,5 +1,5 @@ -/* BasicTabbedPaneUI.java - Copyright (C) 2002, 2004 Free Software Foundation, Inc. +/* BasicTabbedPaneUI.java -- + Copyright (C) 2002, 2004, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -35,6 +35,7 @@ this exception to your version of the li obligated to do so. If you do not wish to do so, delete this exception statement from your version. */ + package javax.swing.plaf.basic; import java.awt.Color; @@ -75,7 +76,6 @@ import javax.swing.plaf.TabbedPaneUI; import javax.swing.plaf.UIResource; import javax.swing.text.View; - /** * This is the Basic Look and Feel's UI delegate for JTabbedPane. */ @@ -1458,7 +1458,7 @@ public class BasicTabbedPaneUI extends T * * @return A layout manager given the tab layout policy. */ - public LayoutManager createLayoutManager() + protected LayoutManager createLayoutManager() { if (tabPane.getTabLayoutPolicy() == JTabbedPane.WRAP_TAB_LAYOUT) return new TabbedPaneLayout(); Index: javax/swing/table/DefaultTableCellRenderer.java =================================================================== RCS file: /cvsroot/classpath/classpath/javax/swing/table/DefaultTableCellRenderer.java,v retrieving revision 1.7.2.2 diff -u -3 -p -u -r1.7.2.2 DefaultTableCellRenderer.java --- javax/swing/table/DefaultTableCellRenderer.java 15 Jan 2005 17:02:21 -0000 1.7.2.2 +++ javax/swing/table/DefaultTableCellRenderer.java 26 Jan 2005 02:26:27 -0000 @@ -1,5 +1,5 @@ /* DefaultTableCellRenderer.java -- - Copyright (C) 2002, 2004 Free Software Foundation, Inc. + Copyright (C) 2002, 2004, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -199,8 +199,8 @@ public class DefaultTableCellRenderer ex *

This method needs to be overridden in a subclass to actually * do something.

*/ - public void firePropertyChange(String propertyName, Object oldValue, - Object newValue) + protected void firePropertyChange(String propertyName, Object oldValue, + Object newValue) { // Does nothing. } Index: javax/swing/table/JTableHeader.java =================================================================== RCS file: /cvsroot/classpath/classpath/javax/swing/table/JTableHeader.java,v retrieving revision 1.4.2.3 diff -u -3 -p -u -r1.4.2.3 JTableHeader.java --- javax/swing/table/JTableHeader.java 21 Jan 2005 02:16:36 -0000 1.4.2.3 +++ javax/swing/table/JTableHeader.java 26 Jan 2005 02:26:28 -0000 @@ -70,6 +70,11 @@ public class JTableHeader extends JCompo protected class AccessibleJTableHeaderEntry extends AccessibleContext implements Accessible, AccessibleComponent { + public AccessibleJTableHeaderEntry(int c, JTableHeader p, JTable t) + { + throw new Error("not implemented"); + } + public void addFocusListener(FocusListener l) { throw new Error("not implemented"); Index: javax/swing/text/PlainDocument.java =================================================================== RCS file: /cvsroot/classpath/classpath/javax/swing/text/PlainDocument.java,v retrieving revision 1.4.2.2 diff -u -3 -p -u -r1.4.2.2 PlainDocument.java --- javax/swing/text/PlainDocument.java 16 Jan 2005 15:15:13 -0000 1.4.2.2 +++ javax/swing/text/PlainDocument.java 26 Jan 2005 02:26:28 -0000 @@ -62,7 +62,7 @@ public class PlainDocument extends Abstr rootElement = createDefaultRoot(); } - protected void reindex() + private void reindex() { Element[] lines; try Index: javax/swing/text/PlainView.java =================================================================== RCS file: /cvsroot/classpath/classpath/javax/swing/text/PlainView.java,v retrieving revision 1.1.2.2 diff -u -3 -p -u -r1.1.2.2 PlainView.java --- javax/swing/text/PlainView.java 22 Jan 2005 02:20:02 -0000 1.1.2.2 +++ javax/swing/text/PlainView.java 26 Jan 2005 02:26:28 -0000 @@ -117,7 +117,7 @@ public class PlainView extends View return rect; } - public void drawLine(int lineIndex, Graphics g, int x, int y) + protected void drawLine(int lineIndex, Graphics g, int x, int y) { try { @@ -176,7 +176,7 @@ public class PlainView extends View } } - public int getTabSize() + protected int getTabSize() { return 8; } Index: javax/swing/text/View.java =================================================================== RCS file: /cvsroot/classpath/classpath/javax/swing/text/View.java,v retrieving revision 1.6.2.3 diff -u -3 -p -u -r1.6.2.3 View.java --- javax/swing/text/View.java 25 Jan 2005 12:41:41 -0000 1.6.2.3 +++ javax/swing/text/View.java 26 Jan 2005 02:26:28 -0000 @@ -80,12 +80,6 @@ public abstract class View implements Sw return parent; } - public void setSize(int w, int h) - { - width = w; - height = h; - } - public Container getContainer() { View parent = getParent(); @@ -242,5 +236,29 @@ public abstract class View implements Sw { return getContainer().getGraphics(); } + + public void preferenceChanged(View child, boolean width, boolean height) + { + if (parent != null) + parent.preferenceChanged(this, width, height); + } + + public int getBreakWeight(int axis, float pos, float len) + { + return BadBreakWeight; + } + + public View breakView(int axis, int offset, float pos, float len) + { + return this; + } + + /** + * @since 1.3 + */ + public int getViewIndex(int pos, Position.Bias b) + { + return -1; + } }