OSDN Git Service

2004-09-22 Andreas Tobler <a.tobler@schweiz.ch>
[pf3gnuchains/gcc-fork.git] / libjava / ChangeLog
1 2004-09-22  Andreas Tobler  <a.tobler@schweiz.ch>
2
3         * Makefile.am (lib_org_ietf_jgss_la_DEPENDENCIES): Add missing
4         dependencies.
5         (lib_org_ietf_jgss_la_LIBADD): Likewise.
6         * Makefile.in: Regenerated.
7
8 2004-09-22  Andreas Tobler  <a.tobler@schweiz.ch>
9
10         * configure.ac: Introduce AC_C_BIGENDIAN_CROSS for WORDS_BIGENDIAN.
11         * configure: Regenerate.
12         * include/config.h.in: Likewise.
13         * jni/gtk-peer/gtkpeer.h (SWAPU32): Introduce macro to swap pixels.
14         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkImagePainter.c: Moved SWAPU32
15         macro to gtkpeer.h.
16         * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
17         (Java_gnu_java_awt_peer_gtk_GdkGraphics2D_getImagePixels): Convert
18         pixels from  0xBBGGRRAA to 0xAARRGGBB only on Little Endian
19         architectures.
20         * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c (area_updated):
21         Likewise.
22
23 2004-09-22  Tom Tromey  <tromey@redhat.com>
24
25         PR libgcj/14446:
26         * java/util/zip/GZIPInputStream.java (read): Avoid sign extension
27         when comparing CRCs.
28         * java/util/zip/InflaterInputStream.java (onebytebuffer): New
29         field.
30         (read()): New overload.
31
32 2004-09-21  Tom Tromey  <tromey@redhat.com>
33
34         * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA):
35         Indentation fix.
36
37 2004-09-21  Michael Koch  <konqueror@gmx.de>
38
39         * java/net/Socket.java
40         (getLocalAddress): Return InetAddress.ANY_IF if not bound yet.
41
42 2004-09-21  Casey Marshall  <csm@gnu.org>
43
44         * javax/crypto/MacSpi.java (clone): Provide meaningful
45         implementation.
46
47 2004-09-21  Tom Tromey  <tromey@redhat.com>
48
49         PR libgcj/16869:
50         * Makefile.in: Rebuilt.
51         * Makefile.am (MOSTLYCLEANFILES): Removed.
52         (mostlyclean-local): Remove header files.
53
54 2004-09-21  Casey Marshall  <csm@gnu.org>
55
56         * java/security/cert/X509CRLSelector.java:
57         (match): remove unreachable try-catch clauses.
58         Reported by: Dalibor Topic <robilad@kaffe.org>
59
60 2004-09-21  Mark Wielaard  <mark@klomp.org>
61
62         * java/util/TreeMap.java (root): Don't initialize.
63         (TreeMap(Comparator)): Call fabricateTree(0).
64         (fabricateTree): Initialize root and size when count is 0.
65
66 2004-09-21  Sven de Marothy <sven@physto.se>
67
68         * java/nio/ByteBuffer.java (hashCode): Implemented.
69         * java/nio/CharBuffer.java: Likewise.
70         * java/nio/DoubleBuffer.java: Likewise.
71         * java/nio/FloatBuffer.java: Likewise.
72         * java/nio/LongBuffer.java: Likewise.
73         * java/nio/IntBuffer.java: Likewise.
74         * java/nio/ShortBuffer.java: Likewise.
75
76 2004-09-21  Andreas Tobler  <a.tobler@schweiz.ch>
77
78         * javax/security/auth/x500/X500Principal.java: Fix some merge glitches.
79
80 2004-09-21  Michael Koch  <konqueror@gmx.de>
81
82         * javax/net/ssl/SSLServerSocket.java:
83         Removed comment about "Do not edit this file, it's generated.".
84
85 2004-09-21  Andreas Tobler  <a.tobler@schweiz.ch>
86
87         Import the big Crypto/Jessie/Security merge from Classpath.
88
89         * Makefile.am: Add imported files.
90         * Makefile.in: Regenerate.
91
92         2004-08-14  Casey Marshall <csm@gnu.org>
93
94         The Big Crypto Merge of 2004.
95
96         * javax/security/auth/x500/X500Principal.java: Replaced with GNU
97         Crypto's version.
98
99         Files imported from GNU Crypto.
100         * javax/crypto/BadPaddingException.java
101         * javax/crypto/Cipher.java
102         * javax/crypto/CipherInputStream.java
103         * javax/crypto/CipherOutputStream.java
104         * javax/crypto/CipherSpi.java
105         * javax/crypto/EncryptedPrivateKeyInfo.java
106         * javax/crypto/ExemptionMechanism.java
107         * javax/crypto/ExemptionMechanismException.java
108         * javax/crypto/ExemptionMechanismSpi.java
109         * javax/crypto/IllegalBlockSizeException.java
110         * javax/crypto/KeyAgreement.java
111         * javax/crypto/KeyAgreementSpi.java
112         * javax/crypto/KeyGenerator.java
113         * javax/crypto/KeyGeneratorSpi.java
114         * javax/crypto/Mac.java
115         * javax/crypto/MacSpi.java
116         * javax/crypto/Makefile.am
117         * javax/crypto/NoSuchPaddingException.java
118         * javax/crypto/NullCipher.java
119         * javax/crypto/NullCipherImpl.java
120         * javax/crypto/SealedObject.java
121         * javax/crypto/SecretKey.java
122         * javax/crypto/SecretKeyFactory.java
123         * javax/crypto/SecretKeyFactorySpi.java
124         * javax/crypto/ShortBufferException.java
125         * javax/crypto/interfaces/DHKey.java
126         * javax/crypto/interfaces/DHPrivateKey.java
127         * javax/crypto/interfaces/DHPublicKey.java
128         * javax/crypto/interfaces/PBEKey.java
129         * javax/crypto/spec/DESKeySpec.java
130         * javax/crypto/spec/DESedeKeySpec.java
131         * javax/crypto/spec/DHGenParameterSpec.java
132         * javax/crypto/spec/DHParameterSpec.java
133         * javax/crypto/spec/DHPrivateKeySpec.java
134         * javax/crypto/spec/DHPublicKeySpec.java
135         * javax/crypto/spec/IvParameterSpec.java
136         * javax/crypto/spec/PBEKeySpec.java
137         * javax/crypto/spec/PBEParameterSpec.java
138         * javax/crypto/spec/RC2ParameterSpec.java
139         * javax/crypto/spec/RC5ParameterSpec.java
140         * javax/crypto/spec/SecretKeySpec.java
141         * javax/security/auth/AuthPermission.java
142         * javax/security/auth/DestroyFailedException.java
143         * javax/security/auth/Destroyable.java
144         * javax/security/auth/Policy.java
145         * javax/security/auth/PrivateCredentialPermission.java
146         * javax/security/auth/RefreshFailedException.java
147         * javax/security/auth/Refreshable.java
148         * javax/security/auth/Subject.java
149         * javax/security/auth/SubjectDomainCombiner.java
150         * javax/security/auth/callback/Callback.java
151         * javax/security/auth/callback/CallbackHandler.java
152         * javax/security/auth/callback/ChoiceCallback.java
153         * javax/security/auth/callback/ConfirmationCallback.java
154         * javax/security/auth/callback/LanguageCallback.java
155         * javax/security/auth/callback/NameCallback.java
156         * javax/security/auth/callback/PasswordCallback.java
157         * javax/security/auth/callback/TextInputCallback.java
158         * javax/security/auth/callback/TextOutputCallback.java
159         * javax/security/auth/callback/UnsupportedCallbackException.java
160         * javax/security/auth/login/AccountExpiredException.java
161         * javax/security/auth/login/AppConfigurationEntry.java
162         * javax/security/auth/login/Configuration.java
163         * javax/security/auth/login/CredentialExpiredException.java
164         * javax/security/auth/login/FailedLoginException.java
165         * javax/security/auth/login/LoginContext.java
166         * javax/security/auth/login/LoginException.java
167         * javax/security/auth/login/NullConfiguration.java
168         * javax/security/auth/x500/X500PrivateCredential.java
169         * javax/security/sasl/AuthenticationException.java
170         * javax/security/sasl/AuthorizeCallback.java
171         * javax/security/sasl/RealmCallback.java
172         * javax/security/sasl/RealmChoiceCallback.java
173         * javax/security/sasl/Sasl.java
174         * javax/security/sasl/SaslClient.java
175         * javax/security/sasl/SaslClientFactory.java
176         * javax/security/sasl/SaslException.java
177         * javax/security/sasl/SaslServer.java
178         * javax/security/sasl/SaslServerFactory.java
179         * org/ietf/jgss/ChannelBinding.java
180         * org/ietf/jgss/GSSContext.java
181         * org/ietf/jgss/GSSCredential.java
182         * org/ietf/jgss/GSSException.java
183         * org/ietf/jgss/GSSManager.java
184         * org/ietf/jgss/GSSName.java
185         * org/ietf/jgss/MessageProp.java
186         * org/ietf/jgss/Oid.java
187         * org/ietf/jgss/MessagesBundle.properties
188
189         Files imported from Jessie <http://www.nongnu.org/jessie/>
190         * javax/net/ServerSocketFactory.java
191         * javax/net/SocketFactory.java
192         * javax/net/VanillaServerSocketFactory.java
193         * javax/net/VanillaSocketFactory.java
194         * javax/net/ssl/HandshakeCompletedEvent.java
195         * javax/net/ssl/HandshakeCompletedListener.java
196         * javax/net/ssl/HostnameVerifier.java
197         * javax/net/ssl/HttpsURLConnection.java
198         * javax/net/ssl/KeyManager.java
199         * javax/net/ssl/KeyManagerFactory.java
200         * javax/net/ssl/KeyManagerFactorySpi.java
201         * javax/net/ssl/ManagerFactoryParameters.java
202         * javax/net/ssl/SSLContext.java
203         * javax/net/ssl/SSLContextSpi.java
204         * javax/net/ssl/SSLException.java
205         * javax/net/ssl/SSLHandshakeException.java
206         * javax/net/ssl/SSLKeyException.java
207         * javax/net/ssl/SSLPeerUnverifiedException.java
208         * javax/net/ssl/SSLPermission.java
209         * javax/net/ssl/SSLProtocolException.java
210         * javax/net/ssl/SSLServerSocket.java
211         * javax/net/ssl/SSLServerSocketFactory.java
212         * javax/net/ssl/SSLSession.java
213         * javax/net/ssl/SSLSessionBindingEvent.java
214         * javax/net/ssl/SSLSessionBindingListener.java
215         * javax/net/ssl/SSLSessionContext.java
216         * javax/net/ssl/SSLSocket.java
217         * javax/net/ssl/SSLSocketFactory.java
218         * javax/net/ssl/TrivialHostnameVerifier.java
219         * javax/net/ssl/TrustManager.java
220         * javax/net/ssl/TrustManagerFactory.java
221         * javax/net/ssl/TrustManagerFactorySpi.java
222         * javax/net/ssl/X509KeyManager.java
223         * javax/net/ssl/X509TrustManager.java
224         * javax/security/cert/Certificate.java
225         * javax/security/cert/CertificateEncodingException.java
226         * javax/security/cert/CertificateException.java
227         * javax/security/cert/CertificateExpiredException.java
228         * javax/security/cert/CertificateNotYetValidException.java
229         * javax/security/cert/CertificateParsingException.java
230         * javax/security/cert/X509CertBridge.java
231         * javax/security/cert/X509Certificate.java
232
233         2004-08-20  Casey Marshall  <csm@gnu.org>
234
235         * java/security/cert/X509CRLSelector.java: New file.
236         * java/security/cert/X509CertSelector.java: New file.
237
238 2004-09-15  Michael Koch  <konqueror@gmx.de>
239
240         * gnu/java/net/protocol/file/Handler.java
241         (openConnection): Don't throw exception if host part for file: URI is
242         present. setURL() keeps file: protocol if ftp: protocol is not
243         available.
244
245 2004-09-14  Richard Henderson  <rth@redhat.com>
246
247         * java/lang/natPosixProcess.cc (waitForSignal): Ignore return
248         value of sigsuspend.
249
250 2004-09-12  Tom Tromey  <tromey@redhat.com>
251
252         * javax/naming/CompoundName.java (CompoundName): Don't check for
253         separator in "flat" case.
254
255 2004-09-12  Michael Koch  <konqueror@gmx.de>
256
257         * libltdl/configure.ac: Fixed AM_INIT_AUTOMAKE usage and replaces
258         AM_CONFIG_HEADER by AC_CONFIG_FILES.
259         * libltdl/Makefile.in, libltdl/aclocal.m4, libltdl/configure:
260         Regenerate.
261
262 2004-09-11  Mohan Embar  <gnustuff@thisiscool.com>
263
264         PR libgcj/14751
265         * win32-threads.cc (_Jv_ThreadInitData): Zero out thread
266         handle in newly-allocated _Jv_Thread_t.
267         (_Jv_ThreadDestroyData): Close thread handle.
268         (_Jv_ThreadStart): Remove obsolete comment.
269         Store handle of newly-created thread in _Jv_Thread_t.
270         * include/win32-threads.h: #define WIN32_LEAN_AND_MEAN
271         before including <windows.h>
272         #define _Jv_HaveCondDestroy
273
274 2004-09-11  Mohan Embar  <gnustuff@thisiscool.com>
275
276         * java/lang/natThread.cc (finalize_native): Destroy
277         join conditional variable and mutex if these destroy
278         operations are supported.
279
280 2004-09-10  Dalibor Topic <robilad@kaffe.org>
281
282         * gnu/java/net/protocol/file/Connection.java (permission): New field.
283         (DEFAULT_PERMISSION): New constant.
284         (Connection): Create a FilePermission with permission to read file.
285
286 2004-09-10  Michael Koch  <konqueror@gmx.de>
287
288         * gnu/java/net/protocol/file/Connection.java
289         (getLastModified): Moved around.
290         (getPermission): Return stored permission.
291
292 2004-09-10  Michael Koch  <konqueror@gmx.de>
293
294         * Makefile.in: Regenerate.
295
296 2004-09-10  Michael Koch  <konqueror@gmx.de>
297
298         * Makefile.am: Reverted accidently commited stuff.
299         * configure: Regenerated.
300
301 2004-09-10  Michael Koch  <konqueror@gmx.de>
302
303         * gnu/java/net/protocol/file/Connection.java
304         (lineSeparator): Made non-final.
305         (static): Removed.
306         (connect): Initialize lineSeparator lazily. Use ByteArrayInputStream
307         instead of StringBufferInputStream.
308
309 2004-09-10  Michael Koch  <konqueror@gmx.de>
310
311         * gnu/java/net/protocol/file/Connection.java
312         (connect): Handle file is a directory case.
313
314 2004-09-10  Michael Koch  <konqueror@gmx.de>
315
316         * Makefile.am
317         (xlib_includes): Removed.
318         (AM_CPPFLAGS): Renamed from INCLUDES.
319         (lib_gnu_awt_xlib_la_CPPFLAGS): New automake variable.
320         * Makefile.in: Regenerate.
321
322 2004-09-09  Michael Koch  <konqueror@gmx.de>
323
324         * java/security/ProtectionDomain.java,
325         * java/util/PropertyPermissionCollection.java:
326         Fixed javadocs all over.
327
328 2004-09-09  Sven de Marothy  <sven@physto.se>
329
330         Patch from David Gilbert <david.gilbert@object-refinery.com>
331         * java/lang/Comparable.java: Fixed documentation errors.
332         * java/util/Arrays.java: Likewise.
333
334 2004-09-09  Andrew John Hughes  <gnu_andrew@member.fsf.org>
335
336         * java/net/Inet4Address.java
337         (Inet4Address): Added comment to serialization UID.
338         * java/text/Format.java
339         (Format): Added comment to serialization UID.
340
341 2004-09-09  Michael Koch  <konqueror@gmx.de>
342
343         * java/lang/System.java
344         (err): Fixed javadoci to point to setErr() and not setOut().
345
346 2004-09-09  Jeroen Frijters  <jeroen@frijters.net>
347
348         (normalizePath): Added special case for windows systems.
349
350 2004-09-09  Michael Koch  <konqueror@gmx.de>
351
352         * java/io/File.java
353         (dupSeparator): Made private.
354         (File(URI)): New constructor.
355         (getParentFile): Fixed javadoc.
356         (createTempFile): Reformated.
357         (setReadOnly): Added comment.
358         (deleteOnExit): Merged javadoc with classpath version.
359
360 2004-09-09  Michael Koch  <konqueror@gmx.de>
361
362         * Makefile.am: Don't try to include deps.mk.
363         * Makefile.in: Regenerated.
364
365 2004-09-08  Bryce McKinlay  <mckinlay@redhat.com>
366
367         * configure.ac (AC_CONFIG_COMMANDS): Don't create subdirectories and
368         .d files.
369         * configure: Rebuilt.
370
371 2004-09-04  Mohan Embar  <gnustuff@thisiscool.com>
372
373         * java/net/natNetworkInterfaceWin32.cc (getRealNetworkInterfaces):
374         Changed pfn from static local to local.
375
376 2004-09-03  Bryce McKinlay  <mckinlay@redhat.com>
377             H.J. Lu  <hongjiu.lu@intel.com>
378
379         PR libgcj/17290
380         * Makefile.am (GCJCOMPILE): Remove definition.
381         (AM_CFLAGS): Add -fclasspath and -fbootclasspath flags.
382         Use LTGCJCOMPILE, not GCJCOMPILE, to build .lo targets.
383         * Makefile.in: Rebuilt.
384
385 2004-09-03  Kelley Cook  <kcook@gcc.gnu.org>
386
387         * configure.ac (enable-gc-debug): Update help for new syntax.
388         * configure: Regenerate.
389
390 2004-09-03  David Daney  <ddaney@avtrex.com>
391
392         * include/mips-signal.h: Update copyright.
393
394 2004-09-03  David Daney  <ddaney@avtrex.com>
395
396         * configure.host: Use -fno-use-divide-subroutine for mips*-*-linux*.
397         * include/mips-signal.h: Added HANDLE_FPE support.
398         
399 2004-08-31  Michael Koch  <konqueror@gmx.de>
400
401         * javax/swing/plaf/basic/BasicTextAreaUI.java
402         (create): New method.
403         * javax/swing/text/DefaultHighlighter.java
404         (DefaultHighlightPainter.debugRect): Removed.
405         * javax/swing/text/StyleContext.java
406         (DEFAULT_STYLE): New field.
407
408 2004-08-31  Michael Koch  <konqueror@gmx.de>
409
410         * javax/swing/plaf/basic/BasicLookAndFeel.java
411         (initComponentDefaults): Add keybindings for selection.backward and
412         selection-forward for text components.
413         * javax/swing/plaf/basic/BasicTextUI.java
414         (paintSafely): Paint highlight only when something is actually
415         selected.
416         * javax/swing/text/DefaultCaret.java
417         (handleHighlight): New method.
418         (setSelectionVisible): Don't do anything when nothing changes.
419         Handle highlight.
420         (moveDot): Reimplemented. Handle highlight.
421         (setDot): Set mark too. Handle highlight.
422         (getSelectionPainter): New method.
423         * javax/swing/text/DefaultEditorKit.java
424         (defaultActions): Added new actions for text selection.
425         * javax/swing/text/DefaultHighlighter.java
426         (DefaultHighlightPainter): New inner class.
427         (DefaultPainter): New field.
428         (paint): Implemented.
429         * javax/swing/text/PlainView.java
430         (paint): Don't draw background here again.
431         * javax/swing/text/Utilities.java
432         (getTabbedTextWidth): Use width of ' ' instead of 'm' for tabsize.
433         (drawTabbedText): Likewise.
434
435 2004-08-31  Graydon Hoare  <graydon@redhat.com>
436
437         * javax/swing/JComponent.java
438         (resetKeyboardActions): Add null checks.
439
440 2004-08-31  Graydon Hoare  <graydon@redhat.com>
441
442         * javax/swing/DefaultButtonModel.java:
443         Skip group notification when no group is set.
444
445 2004-08-31  Graydon Hoare  <graydon@redhat.com>
446
447         * javax/swing/JColorChooser.java: 
448         Make a couple inner classes static, for jikes.
449
450 2004-08-31  Michael Koch  <konqueror@gmx.de>
451
452         * javax/swing/plaf/basic/BasicTextUI.java
453         (RottView.modelToView): New method.
454         (UpdateHandler): Renamed from EventHandler.
455         (updateHandler): Renamed from eventHandler.
456         (modelToView): Implemented.
457         * javax/swing/text/AbstractDocument.java
458         (BranchElement.getElement): Return null for non-existing indeces.
459         (BranchElement.getElementIndex): Return 0 in some corner cases.
460         * javax/swing/text/FieldView.java
461         (modelToView): New method.
462         * javax/swing/text/PlainView.java
463         (modelToView): Made public.
464
465 2004-08-31  Kim Ho  <kho@redhat.com>
466
467         * Makefile.am: New files.
468         * Makefile.in: Regenerate.
469         * gcj/Makefile.in: Regenerate.
470         * include/Makefile.in: Regenerate.
471         * java/awt/Color.java: Fix documentation.
472         (RGBtoHSB): Use floats for conversions.
473         * javax/swing/ButtonGroup.java: Run Jalopy.
474         (setSelected): Reimplement.
475         * javax/swing/DefaultButtonModel.java: Run Jalopy.
476         (changeState): Let ButtonGroup know that the button 
477         is changing state.
478         * javax/swing/JColorChooser.java: Implement.
479         * javax/swing/JLabel.java: Run Jalopy.
480         * javax/swing/JSpinner.java: Run Jalopy.
481         (setValue): New method.
482         * javax/swing/JTabbedPane.java: Run Jalopy.
483         (removeTabAt): Call correct remove method.
484         * javax/swing/SpinnerNumberModel.java: Run Jalopy.
485         (getPreviousValue): Compare minimum value.
486         * javax/swing/Timer.java: Run Jalopy.
487         (run): Comment out println.
488         * javax/swing/ToolTipManager.java:
489         (mouseMoved): Get new tooltip text for location.
490         * javax/swing/colorchooser/AbstractColorChooserPanel.java:
491         Jalopy and Javadoc.
492         * javax/swing/colorchooser/ColorChooserComponentFactory.java:
493         Implement.
494         * javax/swing/colorchooser/DefaultColorSelectionModel.java:
495         Run Jalopy.
496         (setSelectedColor): Fire ChangeEvent.
497         * javax/swing/colorchooser/DefaultHSBChooserPanel.java:
498         New file. Implement.
499         * javax/swing/colorchooser/DefaultPreviewPanel.java:
500         Ditto.
501         * javax/swing/colorchooser/DefaultRGBChooserPanel.java:
502         Ditto.
503         * javax/swing/colorchooser/DefaultSwatchChooserPanel.java:
504         Ditto.
505         * javax/swing/plaf/basic/BasicArrowButton.java:
506         (getArrow): Fix size of upward pointing button.
507         * javax/swing/plaf/basic/BasicColorChooserUI.java:
508         Implement.
509         * javax/swing/plaf/basic/BasicSliderUI.java:
510         (getWidthOfWidestLabel): Use preferred dimensions.
511         (getHeightOfTallestLabel): Ditto.
512         * javax/swing/plaf/basic/BasicSpinnerUI.java:
513         Run Jalopy.
514         (mousePressed): Disable changes to spinner if it is not enabled.
515         * testsuite/Makefile.in: Regenerate.
516
517
518 2004-08-31  Michael Koch  <konqueror@gmx.de>
519
520         * javax/swing/plaf/basic/BasicTableHeaderUI.java,
521         javax/swing/plaf/basic/BasicTableUI.java:
522         Added copyright notice.
523
524 2004-08-31  Olga Rodimina  <rodimina@redhat.com>
525
526         * Makefile.am: Added new files.
527         * Makefile.in: Regenerate.
528         * javax/swing/ComboBoxEditor.java: Added javadocs.
529         * javax/swing/ComboBoxModel.java: Likewise.
530         * javax/swing/DefaultComboBoxModel.java: Implemented.
531         * javax/swing/DefaultListCellRenderer.java: Added javadocs
532         and ran through jalopy to fix formatting style.
533         (getListCellRendererComponent): Use appropriate border
534         if renderer has focus and use noFocusBorder when it doesn't.
535         * javax/swing/JComboBox.java: Implemented.
536         * javax/swing/JList.java:
537         (locationToIndex): New Method. Implemented.
538         (indexToLocation): New Method.
539         * javax/swing/JPopupMenu.java: 
540         (visible): New field.
541         (isVisible): Changed to use new field above.
542         (setVisible): Likewise.
543         * javax/swing/MutableComboBoxModel.java: Added javadocs.
544         * javax/swing/plaf/basic/BasicArrowButton.java: 
545         (shadow): Changed default color to Color.gray.
546         * javax/swing/plaf/basic/BasicComboBoxUI.java: New File.
547         UI delegate for JComboBox.
548         * javax/swing/plaf/basic/BasicComboPopup.java: New File.
549         Popup menu containing list of JComboBox's items.
550         * javax/swing/plaf/basic/BasicComboBoxEditor.java: New File.
551         * javax/swing/plaf/basic/BasicComboBoxRenderer.java: New File.
552         * javax/swing/plaf/basic/BasicComboBoxUI.java: New File.
553         * javax/swing/plaf/basic/BasicComboPopup.java: New File.
554         * javax/swing/plaf/basic/BasicPopupMenuUI.java:
555         (popupMenuWillBecomeVisible): Set selected path to the first
556         element only if it is of type MenuElement. Also fix formatting
557         style.
558         * javax/swing/plaf/basic/ComboPopup.java: Added javadocs and missing
559         methods signatures.
560         
561 2004-08-31  Michael Koch  <konqueror@gmx.de>
562
563         * javax/swing/text/AbstractDocument.java
564         (createBranchElement): Use new constructor of BranchElement.
565         (createLeafElement): Renamed arguments.
566         (getRootElements): Implemented.
567         (BranchElement.start): Removed.
568         (BranchElement.end): Likewise.
569         (BranchElement.BranchElement): Fixed arguments.
570         (BranchElement.getEndOffset): Reimplemented.
571         (BranchElement.getStartOffset): Likewis.
572         * javax/swing/text/DefaultCaret.java
573         (paint): Draw simple vertical line as caret instead of a rectangle.
574         * javax/swing/text/JTextComponent.java
575         (setText): Use doc directly.
576         * javax/swing/text/PlainView.java
577         (nextTabStop): Implemented.
578         * javax/swing/text/Utilities.java
579         (drawTabbedText): nextTabStop() returns an absolute x position.
580         (getTabbedTextWidth): Likewise.
581
582 2004-08-31  Graydon Hoare  <graydon@redhat.com>
583
584         * java/awt/Component.java 
585         (isFocusTraversable): Predicate on isLightweight()
586         (setFocusable): Set isFocusTraversableOverridden.
587         (requestFocus): Predicate peer dispatch on !isLightweight()
588         (requestFocusInWindow): Likewise.
589         (dispatchEventImpl): Coordinate with KeyboardFocusManager.
590         * java/awt/Container.java
591         (dispatchEventImpl): Predicate on event mask.
592         (LightweightDispatcher): Remove focus machinery.
593         * java/awt/DefaultFocusTraversalPolicy.java
594         (accept): Expand predicate to include isFocusable(). 
595         * java/awt/DefaultKeyboardFocusManager.java:
596         Globally change c.dispatchEvent(e) to redispatchEvent(c,e)
597         * java/awt/KeyboardFocusManager.java
598         (redispatchEvent): Synchronize on event to prevent feedback.
599         * javax/swing/AbstractButton.java
600         (ButtonFocusListener): Remove class.
601         (init): Set focusPainted, focusable.
602         * javax/swing/ActionMap.java (get): Check parent for null. 
603         * javax/swing/InputMap.java (get): Likewise. 
604         * javax/swing/JComponent.java
605         (inputMap_whenFocused): New InputMap.
606         (inputMap_whenAncestorOfFocused): Likewise.
607         (inputMap_whenInFocusedWindow): Likewise.
608         (getActionForKeyStroke): Rewrite.
609         (getConditionForKeystroke): Likewise.
610         (ActionListenerProxy): New private class.
611         (setInputMap): Implement.
612         (getInputMap): Likewise.
613         (setActionMap): Likewise.
614         (getActionMap): Likewise.
615         (processComponentKeyEvent): New empty method.
616         (processKeyEvent): Implement.
617         (processKeyBinding): Likewise.
618         (resetKeyboardActions): Rewrite.
619         * javax/swing/KeyStroke.java: Rewrite.
620         * javax/swing/SwingUtilities.java
621         (notifyAction): Implement.
622         (replaceUIActionMap): Likewise.
623         (replaceUIInputMap): Likewise.
624         * javax/swing/plaf/basic/BasicButtonListener.java
625         (focusGained): Implement.
626         (focusLost): Repaint if focusPainted().
627         (installKeyboardActions): Install pressed / released actions.
628         (uninstallKeyboardActions): Implement.
629         * javax/swing/plaf/basic/BasicButtonUI.java
630         (focusColor): New field.
631         (installDefaults): Load focus color, install input map.
632         (installKeyboardActions): Implement.
633         (uninstallKeyboardActions): Likewise.
634         (paintFocus): Rewrite.
635         * javax/swing/plaf/basic/BasicLookAndFeel.java
636         (Button.focus): New default, midPurple. 
637         * javax/swing/plaf/basic/BasicTextUI.java
638         (kit): Make static.
639         (installUI): Get doc from kit, load defaults.
640         (getKeymapName): Implement.
641         (createKeymap): Likewise.
642         (installKeyboardActions): Likewise.
643         (getInputMap): Likewise.
644         (getActionMap): Likewise.
645         (createActionMap): Likewise.
646         * javax/swing/text/AbstractDocument.java
647         (getStartPosition): Implement.
648         (getEndPosition): Likewise.
649         * javax/swing/text/DefaultEditorKit.java
650         (CopyAction): New class.
651         (CutAction): Likewise.
652         (DefaultKeyTypedAction): Likewise.
653         (InsertBreakAction): Likewise.
654         (InsertContentAction): Likewise.
655         (InsertTabAction): Likewise.
656         (PasteAction): Likewise.
657         (defaultActions): New static table.
658         (createCaret): Implement.
659         (getActions): Likewise.
660         * javax/swing/text/JTextComponent.java
661         (KeymapWrapper): New private class.
662         (KeymapActionMap): Likewise.
663         (DefaultKeymap): New class.
664         (keymaps): New static table.
665         (keymap): New field.
666         (getKeymap): Implement.
667         (removeKeymap): Likewise.
668         (addKeymap): Likewise.
669         (setKeymap): Likewise.
670         (loadKeymap): Likewise.
671         (getActions): Likewise.
672         (margin): New field.
673         (JTextComponent): Build and install default keymap.
674         * javax/swing/text/TextAction.java
675         (textAction): Call super properly.
676         (getTextComponent): Implement.
677         * javax/swing/text/Utilities.java
678         (drawTabbedText): Adjust position by ascent.
679
680 2004-08-31  David Jee  <djee@redhat.com>
681
682         PR AWT/17156
683
684         * gnu/java/awt/peer/gtk/GtkMenuItemPeer.java
685         (setEnabled): Make it a native method.
686         * java/awt/DefaultKeyboardFocusManager.java
687         (postProcessKeyEvent): Only post event if the menu item
688         is active.
689         * java/awt/MenuItem.java:
690         Private field 'enabled' should be true by default.
691         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuItemPeer.c
692         (setEnabled): New function.
693
694 2004-08-31  David Jee  <djee@redhat.com>
695
696         PR AWT/17059
697
698         * gnu/java/awt/peer/gtk/GtkMenuBarPeer.java
699         (nativeSetHelpMenu): New native method declaration.
700         (addHelpMenu): Call nativeSetHelpMenu().
701         (addMenu): Remove.
702         * java/awt/MenuBar.java
703         (setHelpMenu): Call addNotify() on the new help menu.
704         (add): Call addNotify() on the new menu.
705         (addNotify): Set the help menu if one exists.
706         * java/awt/peer/MenuBarPeer.java
707         (addMenu): Remove.
708         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuBarPeer.c
709         (nativeSetHelpMenu): New method.
710
711 2004-08-31  Graydon Hoare  <graydon@redhat.com>
712
713         * Makefile.am: Add new files.
714         * Makefile.in: Regenerate.
715         * javax/swing/Box.java: Fix setting of layout in ctor.
716         * javax/swing/JScrollPane.java: Scroll headers as well.
717         * javax/swing/JTable.java: Reimplement.
718         * javax/swing/JViewPort.java: Only add non-null children.
719         * javax/swing/ScrollPaneLayout.java: Correct header calculations.
720         * javax/swing/Timer.java: Fix stopping null waker.
721         * javax/swing/plaf/basic/BasicTableHeaderUI.java: New file.
722         * javax/swing/plaf/basic/BasicTableUI.java: New file.
723         * javax/swing/table/DefaultTableCellRenderer.java: Configure.
724         * javax/swing/table/DefaultTableColumnModel.java: Flesh out.
725         * javax/swing/table/DefaultTableModel.java: Clean up.
726         * javax/swing/table/JTableHeader.java: Implement.
727
728 2004-08-31  Mark Wielaard  <mark@klomp.org>
729
730         * javax/swing/JSpinner.java (getChangeListeners): Remove double
731         semi-colon.
732
733 2004-08-31  Mark Wielaard  <mark@klomp.org>
734
735         * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeerMetrics.c:
736         Declare variables at top of functions/block.
737         * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c: Likewise.
738
739 2004-08-31  Mark Wielaard  <mark@klomp.org>
740
741         * java/lang/Rectangle.java (intersects): Check r.width and r.height
742         first.
743
744 2004-08-31  Michael Koch  <konqueror@gmx.de>
745
746         * javax/swing/text/PlainView.java
747         (selectedColor): New field.
748         (unselectedColor): Likewise.
749         (font): Likewise.
750         (updateMetrics): New method.
751         (lineToRect): Likewise.
752         (modelToView): Likewise.
753         (drawSelectedText): Use color from JTextComponent ad draw with
754         Utilities class.
755         (drawUnselectedText): Likewise.
756         (paint): Initialize helper fields.
757         * javax/swing/text/View.java
758         (getChildAllocation): New method.
759         (getViewIndex): Likewise.
760         (getToolTipText): Likewise.
761
762 2004-08-31  Michael Koch  <konqueror@gmx.de>
763
764         * javax/swing/text/Utilities.java
765         (drawTabbedText): Reimplemented.
766         (getTabbedTextWidth): Likewise.
767
768 2004-08-31  Michael Koch  <konqueror@gmx.de>
769
770         * javax/swing/plaf/basic/BasicTextUI.java
771         (installDefaults): Install caret and highlighter.
772         (modelToView): Use Bias.Forward when calling sibling.
773         * javax/swing/text/AbstractDocument.java
774         (ElementEdit): Implements DocumentEvent.ElementChange.
775         (ElementEdit.ElementEdit): New method.
776         (ElementEdit.getChildrenAdded): Likewise.
777         (ElementEdit.getChildrenRemoved): Likewise.
778         (ElementEdit.getElement): Likewise.
779         (ElementEdit.getIndex): Likewise.
780         * javax/swing/text/DefaultCaret.java
781         (color): Removed.
782         (textComponent): Renamed from parent, made private.
783         (selectionVisible): Renamed from vis_sel, made private.
784         (blinkRate): Renamed from blink, made private.
785         (magicCaretPosition): Renamed from magic, made private.
786         (visible): Renamed from vis, made private.
787         (dot): Made private.
788         (mark): Likewise.
789         (deinstall): Remove as MouseMotionListener.
790         (install): Initialize textComponent first. Add as MouseMotionListener.
791         (paint): Reimplemented.
792         * javax/swing/text/JTextComponent.java
793         (setCaret): Deinstall old caret, install new one and fire property
794         change after setting property.
795         (setHighlighter): Deinstall old highlighter, install new one and fire
796         property change after setting property.
797         (setCaretColor): Fire property change after setting property.
798         (setDisabledTextColor): Likewise.
799         (setSelectedTextColor): Likewise.
800         (setSelectionColor): Likewise.
801         (modelToView): New method.
802
803 2004-08-31  Michael Koch  <konqueror@gmx.de>
804
805         * javax/swing/text/AbstractDocument.java
806         (getText): Simplified.
807         * javax/swing/text/Segment.java
808         (current): New field.
809         (current): Reimplemented.
810         (first): Likewise.
811         (getIndex): Likewise.
812         (last): Likewise.
813         (next): Likewise.
814         (previous): Likewise.
815         (setIndex): Likewise.
816
817 2004-08-31  Michael Koch  <konqueror@gmx.de>
818
819         * javax/swing/plaf/basic/BasicButtonUI.java
820         (defaultTextIconGap): Made protected.
821         (defaultTextShiftOffset): Likewise.
822         (textShiftOffset): New field.
823         (clearTextShiftOffset): New method.
824         (getTextShiftOffset): Likewise.
825         (setTextShiftOffset): Likewise.
826
827 2004-08-31  Michael Koch  <konqueror@gmx.de>
828
829         * javax/swing/plaf/basic/BasicTextUI.java
830         (installUI): Add eventHandler as property listener.
831         (uninstallUI): remove eventHandler as propert listener.
832         (installDefaults): Added comment.
833         (installListeners): Likewise.
834         (installKeyboardActions): Likewise.
835         (uninstallDefaults): Likewise.
836         (uninstallListeners): Likewise.
837         (uninstallKeyboardActions): Likewise.
838
839 2004-08-31  Michael Koch  <konqueror@gmx.de>
840
841         * javax/swing/text/AbstractDocument.java:
842         Fixed some typos in comments.
843         (insertString): Reimplemented.
844         (remove): Likewise.
845         (replace): New method.
846         (children): Dont use fully qualified class name.
847         (DefaultDocumentEvent.offset): Renamed from off.
848         (DefaultDocumentEvent.length): Renamed from len.
849         (DefaultDocumentEvent.type): New field.
850         (DefaultDocumentEvent.DefaultDocumentEvent): New constructor.
851         (DefaultDocumentEvent.getType): Implemented.
852
853 2004-08-31  Michael Koch  <konqueror@gmx.de>
854
855         * javax/swing/plaf/basic/BasicTextUI.java
856         (RootView.textComponent): Removed.
857         (RootView.RootView): Don't initialize textComponent.
858         (RootView.getViewFactory): New method.
859         (EventHandler): New inner class.
860         (rootView): Initialize at instance creation.
861         (eventHandler): New field.
862         (installUI): Don't create view hierarchy directly,
863         call modelChanged() instead.
864         (modelChanged): New method.
865         * javax/swing/text/JTextComponent.java
866         (setDocument): Fire property change event.
867
868 2004-08-31  Michael Koch  <konqueror@gmx.de>
869
870         * javax/swing/plaf/basic/BasicTextUI.java
871         (RootView.paint): Removed debug output.
872         (paintSafely): Draw highlighter before text.
873         (paintBackground): Use background color of text component.
874         * javax/swing/plaf/basic/BasicToggleButtonUI.java:
875         Reformatted.
876
877 2004-08-31  Michael Koch  <konqueror@gmx.de>
878
879         * javax/swing/plaf/basic/BasicToolBarUI.java
880         (BasicToolBarUI): Fixed arguments for constructor.
881         (createUI): Fixed creation of object.
882
883 2004-08-31  Michael Koch  <konqueror@gmx.de>
884
885         * javax/swing/DefaultListSelectionModel.java
886         (fireValueChanged): Renamed from fireSelectionValueChanged,
887         made protected.
888
889 2004-08-31  Michael Koch  <konqueror@gmx.de>
890
891         * javax/swing/text/TabSet.java
892         (TabSet): Implements java.io.Serializable.
893         * javax/swing/text/TabStop.java
894         (TabStop): Implements java.io.Serializable.
895         (TabStop): Made public.
896
897 2004-08-31  Michael Koch  <konqueror@gmx.de>
898
899         * javax/swing/JComponent.java
900         (setUI): Fire PropertyChange.
901         * javax/swing/JLabel.java
902         (text): Renamed from labelText.
903         (horizontalAlignment): New default vlaue.
904         (icon): Renamed from activeIcon.
905         (displayedMnemonic): Renamed from mnemonicKey, added default value.
906         (displayedMnemonicIndex): Renamed from underlineChar.
907         (setDisplayedMnemonic): Reimplemented.
908         * javax/swing/JRadioButton.java
909         (JRadioButton): New constructors.
910         * javax/swing/JTextField.java
911         (JTextField): Throw exception if colums < 0, initialitialz
912         this.columns directly and initialize document with text conditionally.
913
914 2004-08-31  Michael Koch  <konqueror@gmx.de>
915
916         * javax/swing/plaf/basic/BasicFormattedTextFieldUI.java,
917         javax/swing/plaf/basic/BasicPasswordFieldUI.java,
918         javax/swing/plaf/basic/BasicTextAreaUI.java: New files.
919         * javax/swing/text/FieldView.java
920         (paint): Just call super method for now.
921         * Makefile.am: Added new files.
922         * Makefile.in: Regenerated.
923
924 2004-08-31  Ka-Hing Cheung  <kahing@javabsp.org>
925
926         * javax/swing/AbstractSpinnerModel.java,
927         javax/swing/JSpinner.java,
928         javax/swing/SpinnerNumberModel.java,
929         javax/swing/plaf/basic/BasicSpinnerUI.java:
930         New files.
931         * javax/swing/plaf/basic/BasicLookAndFeel.java
932         (initClassDefaults): Added defaults for BasicSpinnerUI.
933
934 2004-08-31  Michael Koch  <konqueror@gmx.de>
935
936         * Makefile.am: Added new files.
937         * Makefile.in: Regenerated.
938
939 2004-08-31  Michael Koch  <konqueror@gmx.de>
940
941         * javax/swing/TransferHandler.java,
942         javax/swing/plaf/basic/ComboPopup.java: New files
943         * Makefile.am: Added javax/swing/TransferHandler.java and
944         javax/swing/plaf/basic/ComboPopup.java
945         * Makefile.in: Regenerated.
946
947 2004-08-31  Roman Kennke  <roman@ontographics.com>
948
949         * javax/swing/text/Utilities.java: New file.
950
951 2004-08-31  Michael Koch  <konqueror@gmx.de>
952
953         * Makefile.am: Added javax/swing/text/Utilities.java.
954         * Makefile.in: Regenerated.
955
956 2004-08-31  Graydon Hoare  <graydon@redhat.com>
957
958         * javax/swing/text/SimpleAttributeSet.java: New file.
959         * javax/swing/text/StyleConstants.java: New file.
960         * javax/swing/text/StyleContext.java: New file.
961         * javax/swing/text/TabSet.java: New file.
962         * javax/swing/text/TabStop.java: New file.
963         * javax/swing/text/AbstactDocument.java:
964         (AbstractElement): Implement attribute support.
965         * javax/swing/text/AttributeSet.java
966         (NameAttribute): New static field.
967         (ResolveAttribute): New static field.
968         * Makefile.am: Update for new files.
969         * Makefile.in: Regenerate.
970
971 2004-08-31  Craig Black  <craig.black@aonix.com>
972
973         * gnu/java/awt/peer/gtk/GdkGraphics.java 
974         (drawImage): Add support for scaling pixmaps.
975         * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
976         (copyAndScalePixmap): New native method.
977  
978 2004-08-31  Thomas Fitzsimmons  <fitzsim@redhat.com>
979
980         PR AWT/16121
981         * jni/gtk-peer/gthread-jni.c: Include stdio.h.  Eliminate
982         type-punning compiler warnings using unions.
983         (throw): Replace bzero with memset.
984
985 2004-08-31  Andreas Tobler  <a.tobler@schweiz.ch>
986             Thomas Fitzsimmons  <fitzsim@redhat.com>
987
988         * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c: Move
989         NSA_PB macros to gtkpeer.h.  Include gtkpeer.h.
990         * jni/gtk-peer/gtkpeer.h: Move NSA_PB macros here.
991         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
992         (nativeSetIconImageFromDecoder): Use NSA_GET_PB_PTR macro.
993
994 2004-08-31  Mark Wielaard  <mark@klomp.org>
995
996         * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c:
997         #include gdk.h, not gtk.h. #include jni.h, native_state.h, string.h
998         and stdlib.h, not gtkpeer.h.
999         (*vm): New static variable.
1000         (areaPreparedID): Make static.
1001         (areaUpdatedID): Likewise.
1002         (area_prepared): Get and use JNIEnv through stored JavaVM *vm.
1003         (area_prepared): Likewise.
1004         (area_updated): Likewise.
1005         (closed): Likewise.
1006         (initStaticState): Initialize *vm javaVM.
1007         (pumpBytes): Use given env, not global gdk_env.
1008
1009 2004-08-31  Mark Wielaard  <mark@klomp.org>
1010
1011         * java/awt/geom/CubicCurve2D.java (solveCubic): Removed duplicate
1012         comments.
1013
1014 2004-08-31  Sven de Marothy  <sven@physto.se>
1015
1016         * java/awt/geom/CubicCurve2D.java: Reindent.
1017         (contains): Implemented.
1018         (intersects): Implemented.
1019         * java/awt/geom/QuadCurve2D.java: Likewise.
1020         * java/awt/geom/GeneralPath.java: Reindent and document.
1021         Fully (re)implemented using separate xpoints and ypoints
1022         float[] coords.
1023         * java/awt/geom/RoundRectangle2D.java: Several bugfixes (Bug #6007).
1024
1025 2004-08-31  Michael Koch  <konqueror@gmx.de>
1026
1027         * javax/swing/JMenuItem.java
1028         (getMenuDragMouseListeners): New method.
1029         (getMenuKeyListeners): Likewise.
1030
1031 2004-08-31  Michael Koch  <konqueror@gmx.de>
1032
1033         * javax/swing/AbstractButton.java
1034         (model): Made protected.
1035         (actionListener): Likewise.
1036         (changeListener): Likewise.
1037         (itemListener): Likewise.
1038         (multiClickThreshhold): New field.
1039         (getActionListeners): New method.
1040         (getChangeListeners): Likewise.
1041         (getItemListeners): Likewise.
1042         (fireItemStateChanged): Simplified implementation.
1043         (fireActionPerformed): Likewise.
1044         (fireStateChanged): Likewise.
1045         (getMultiClickThreshhold): New method.
1046         (setMultiClickThreshhold): Likewise.
1047
1048 2004-08-31  Tom Tromey  <tromey@redhat.com>
1049
1050         * java/awt/image/Kernel.java (clone): Use super.clone().
1051
1052 2004-08-31  David Jee  <djee@redhat.com>
1053
1054         PR AWT/16682
1055         * gnu/java/awt/peer/gtk/GtkFramePeer.java
1056         (nativeSetIconImage): Rename to nativeSetIconImageFromDecoder.
1057         (nativeSetIconImageFromData): New native method declaration.
1058         (setIconImage): Handle images not produced from GdkPixbufDecoder.
1059         * gnu/java/awt/peer/gtk/GtkImage.java
1060         (getPixelCache): New method.
1061         (getColorModel): New method.
1062         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1063         (nativeSetIconImage): Rename to nativeSetIconImageFromDecoder.
1064         (free_pixbuf_data): New helper function.
1065         (nativeSetIconImageFromData): New function.
1066
1067 2004-08-31  Graydon Hoare  <graydon@redhat.com>
1068
1069         PR SWING/16576
1070         * javax/swing/JLayeredPane.java 
1071         (setLayer): Permit changing layer after addition.
1072         (setPosition): Permit over-length positions.
1073         (layerToRange): Compare intValue()s.
1074         * javax/swing/Box.java (createHorizontalBox): Implement.
1075         (createRigidArea): Likewise.
1076         (createVerticalBox): Likewise.
1077
1078 2004-08-31  Kim Ho  <kho@redhat.com>
1079
1080         * java/awt/Component.java:
1081         (processMouseEvent): Consume event after
1082         listeners process it.
1083         (processMouseMotionEvent): ditto.
1084         (processMouseWheelEvent): ditto.
1085         * java/awt/Container.java:
1086         (acquireComponentForMouseEvent):
1087         Do not dispatch to events that have been
1088         removed from the Container.
1089         (handleEvent): Consume the MouseEvents.
1090         * javax/swing/RepaintManager.java:
1091         (paintDirtyRegions): Do not add to list of 
1092         damaged areas if the component has no root.
1093
1094 2004-08-31  Michael Koch  <konqueror@gmx.de>
1095
1096         * javax/swing/plaf/basic/BasicMenuItemUI.java: Clean ip imports.
1097
1098 2004-08-31  Mark Wielaard  <mark@klomp.org>
1099
1100         * gnu/java/awt/peer/gtk/GtkToolkit.java (getFontPeer): Don't return
1101         null when a MissingResourceException is thrown. Should never happen.
1102
1103 2004-08-31  Mark Wielaard  <mark@klomp.org>
1104
1105         * java/awt/EventQueue.java (postEvent): Throw NullPointerException
1106         when argument is null.
1107
1108 2004-08-31  Mark Wielaard  <mark@klomp.org>
1109
1110         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
1111         (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_addExposeFilter):
1112         Define hid at start of function.
1113         (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_removeExposeFilter):
1114         Likewise.
1115
1116 2004-08-31  Mark Wielaard  <mark@klomp.org>
1117
1118         * gnu/java/awt/EmbeddedWindow.java: Reindent.
1119         * javax/swing/JButton.java: Reindent.
1120         * javax/swing/JCheckBox.java: Reindent.
1121
1122 2004-08-31  Mark Wielaard  <mark@klomp.org>
1123
1124         * Makefile.am (gtk_c_source_files): Added
1125         jni/gtk-peer/gnu_java_awt_peer_gtk_GThreadNativeMethodRunner.c.
1126         (gtk_awt_peer_sources): Added
1127         gnu/java/awt/peer/gtk/GThreadMutex.java and
1128         gnu/java/awt/peer/gtk/GThreadNativeMethodRunner.java.
1129         * Makefile.in: Regenerated.
1130
1131 2004-08-31  Archie Cobbs  <archie@dellroad.org>
1132
1133         * jni/gtk-peer/gthread-jni.c: don't #include nonexistent files
1134
1135 2004-08-31  Steven Augart  <augart@watson.ibm.com>
1136
1137         * jni/gtk-peer/gthread-jni.c (c-font-lock-extra-types): 
1138         Added jfieldID, jmethodID.
1139
1140 2004-08-31  Mark Wielaard  <mark@klomp.org>
1141
1142         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
1143         (Java_gnu_java_awt_peer_gtk_GtkMainThread_gtkInit): Initialize
1144         gdk_env before calling any gdk or gtk function.
1145
1146         * gnu/java/awt/peer/gtk/GtkMainThread.java (gtkInitCalled): New field.
1147         (GtkMainThread): Call wait() in while loop waiting for gtkInitCalled.
1148         (run): Set gtkInitCalled.
1149
1150 2004-08-31  Steven Augart  <augart@watson.ibm.com>
1151
1152         * gnu/java/awt/peer/gtk/GtkMainThread.java (run): Pass the value of 
1153         the gnu.classpath.awt.gtk.portable.native.sync system property to C.
1154
1155         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
1156         (Java_gnu_java_awt_peer_gtk_GtkMainThread_gtkInit): New argument,
1157         portableNativeSync.  Delegate PORTABLE_NATIVE_SYNC work to
1158         init_glib_threads. 
1159         (init_glib_threads): New function.
1160
1161 2004-08-31  Mark Wielaard  <mark@klomp.org>
1162
1163         * jni/gtk-peer/gthread-jni.c: Define MIN_, MAX_ and NORM_
1164         PRIORITY when not already defined in header file.
1165
1166 2004-08-31  Mark Wielaard  <mark@klomp.org>
1167
1168         * jni/gtk-peer/gthread-jni.c (setup_cache): Call
1169         ExceptionOccurred, not ExceptionCheck, when we don't have JNI 1.2.
1170
1171 2004-08-31  Steven Augart  <augart@watson.ibm.com>
1172
1173         * gnu/native/jni/gtk-peer/gthread-jni.c: Indentation fixes.
1174         Implemented missing functions for GTK2.
1175         Added error handling.
1176         Renamed static functions out of the g_ namespace.
1177         Added TRACE_API_CALLS, EXPLAIN_TROUBLE, EXPLAIN_BROKEN, 
1178         EXPLAIN_BADLY_BROKEN, and DELETE_LOCAL_REFS options.
1179         Rewrote global-reference code.
1180         Eliminated cascading errors.
1181         (mutex_trylock_jni_impl) Fully implemented.
1182         (cond_timed_wait_jni_impl) Went from millisecond to microsecond
1183         resolution.
1184         (setup_cache) New function.
1185         (mutex_cond_wait_jni_impl, mutex_cond_timed_wait_jni_impl) Fixed
1186         bug where they were not unlocking the GMutex associated with the
1187         condition variable during the wait on that condition variable.
1188
1189         * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c,
1190         native/jni/gtk-peer/gthread-jni.c,
1191         native/jni/gtk-peer/gthread-jni.h
1192         (g_thread_jni_functions): Renamed to ...
1193         (portable_native_sync_jni_functions): this name.
1194         (gdk_vm): Renamed to...
1195         (the_vm): this name.
1196
1197         * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
1198         (gdk_vm): Removed duplicate definition.
1199         (gtkInit): Removed stray message to stdout.
1200         (gtkInit): Use g_malloc and g_free instead of malloc and free.
1201         (gtkInit): Fix a const assignment bug.
1202         (gtkInit): Simplified code.
1203
1204         * gnu/java/awt/peer/gtk/GThreadNativeMethodRunner.java,
1205         native/jni/gtk-peer/gnu_java_awt_peer_gtk_GThreadNativeMethodRunner.c,
1206         native/jni/gtk-peer/gnu_java_awt_peer_gtk_GThreadNativeMethodRunner.h,
1207         gnu/java/awt/peer/gtk/GThreadMutex.java:
1208         New files.
1209
1210 2004-08-31  Mark Wielaard  <mark@klomp.org>
1211
1212         * javax/swing/Box.java: Put FIXME comment above class declaration.
1213         * javax/swing/JButton.java: Remove illegal L&F HTML from comments.
1214         * javax/swing/JCheckBox.java: Likewise.
1215         * javax/swing/JDialog.java: Likewise.
1216         * javax/swing/JRadioButton.java: Likewise.
1217         * javax/swing/JToggleButton.java: Likewise.
1218         * javax/swing/UIManager.java: Likewise.
1219         * javax/swing/border/TitledBorder.java: Likewise.
1220         * javax/swing/plaf/basic/BasicLabelUI.java: Likewise.
1221         * javax/swing/plaf/basic/BasicLookAndFeel.java: Likewise.
1222         * javax/swing/plaf/basic/BasicPopupMenuSeparatorUI.java: Likewise.
1223         * javax/swing/plaf/basic/BasicProgressBarUI.java: Likewise.
1224         * javax/swing/plaf/basic/BasicScrollBarUI.java: Likewise.
1225         * javax/swing/plaf/basic/BasicSeparatorUI.java: Likewise.
1226         * javax/swing/text/JTextComponent.java: Likewise.
1227
1228 2004-08-31  David Jee  <djee@redhat.com>
1229
1230         PR AWT/16682
1231         * gnu/java/awt/peer/gtk/GtkFramePeer.java
1232         (setIconImage): Add a FIXME for unhandled cases.
1233
1234 2004-08-31  Thomas Fitzsimmons  <fitzsim@redhat.com>
1235
1236         PR AWT/16040
1237         * gnu/awt/LightweightRedirector.java: Call getModifiersEx, not
1238         getModifiers.  Replace old button masks with new ones.
1239         * gnu/awt/xlib/XEventLoop.java: Likewise.
1240         * gnu/java/awt/peer/gtk/GtkButtonPeer.java: Likewise.
1241         * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
1242         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Likewise.
1243         * gnu/java/awt/peer/gtk/GtkListPeer.java: Likewise.
1244         * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java: Likewise.
1245         * java/awt/AWTKeyStroke.java: Remove old modifier masks.
1246         * java/awt/Component.java: Replace old modifier masks with new
1247         ones.
1248         * java/awt/Container.java: Call getModifiersEx, not
1249         getModifiers.
1250         * java/awt/DefaultKeyboardFocusManager.java: Likewise.  Remove
1251         old modifier masks.
1252         * javax/swing/JMenuItem.java: Replace old button masks with new
1253         ones.
1254         * javax/swing/KeyStroke.java: Call getModifiersEx, not
1255         getModifiers.
1256         * javax/swing/SwingUtilities.java: Likewise.
1257         * javax/swing/plaf/basic/BasicButtonListener.java: Likewise.
1258         * javax/swing/plaf/basic/BasicInternalFrameUI.java: Likewise.
1259         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Replace old
1260         mask macros with new ones.
1261         * jni/gtk-peer/gtkpeer.h: Replace old button and modifier mask
1262         macros with new ones representing new masks.
1263
1264 2004-08-31  Craig Black  <craig.black@aonix.com>
1265
1266         * gnu/java/awt/peer/gtk/GdkGraphics.java
1267         (drawRoundRect): Implemented.
1268         (fillRoundRect): Implemented.
1269         * gnu/java/awt/peer/gtk/GdkGraphics2D.java
1270         (drawRoundRect): Reimplemented to match GdkGraphics.
1271         (fillRoundRect): Reimplemented to match GdkGraphics.
1272
1273 2004-08-31  Mark Wielaard  <mark@klomp.org>
1274
1275         * Makefile.in: Regenerated.
1276
1277 2004-08-31  Michael Koch  <konqueror@gmx.de>
1278
1279         * gnu/java/awt/EmbeddedWindow.java
1280         (addNotify): Use AccessController to allow execution of privileged
1281         code.
1282
1283 2004-08-31  Michael Koch  <konqueror@gmx.de>
1284
1285         * gnu/java/awt/EmbeddedWindow.java
1286         (static): Removed.
1287         (addNotify): Set peer via reflection.
1288         (setWindowPeer): Removed.
1289         * gnu/java/awt/natEmbeddedWindow.cc: Removed.
1290         * Makefile.am (nat_source_files):
1291         Removed gnu/java/awt/natEmbeddedWindow.cc.
1292
1293 2004-08-31  Bryce McKinlay  <mckinlay@redhat.com>
1294
1295         * Makefile.am: Add  gnu/java/security/action/GetPropertyAction.java
1296         and gnu/java/security/action/SetAccessibleAction.java.
1297
1298 2004-08-31  Bryce McKinlay  <mckinlay@redhat.com>
1299
1300         * gnu/java/security/action/GetPropertyAction.java (setParameters):
1301         Renamed from 'setName'. New 2-argument form with default value.
1302         (run): Pass default 'value' parameter to System.getProperty().
1303         * gnu/java/security/action/SetAccessibleAction.java: Fix javadoc
1304         typos.
1305
1306 2004-08-31  Bryce McKinlay  <mckinlay@redhat.com>
1307
1308         * gnu/java/security/action/GetPropertyAction.java: New class.
1309         * gnu/java/security/action/SetAccessibleAction.java: New class.
1310
1311 2004-08-31  David Jee  <djee@redhat.com>
1312
1313         * gnu/java/awt/peer/gtk/GtkFramePeer.java
1314         (setIconImage): Check if image is null.
1315
1316 2004-08-31  David Jee  <djee@redhat.com>
1317
1318         * gnu/java/awt/peer/gtk/GtkFramePeer.java
1319         (create): Set the icon image.
1320         (nativeSetIconImage): New native method declaration.
1321         (setIconImage): Implement.
1322         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1323         (nativeSetIconImage): New function.
1324
1325 2004-08-31  Dalibor Topic <robilad@kaffe.org>
1326
1327         * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
1328         (filenameFilterCallback): Declare local variable accepted before use.
1329
1330 2004-08-31  Dalibor Topic <robilad@kaffe.org>
1331
1332         * gnu/java/awt/ComponentDataBlitOp.java:
1333         Cleaned up imports.
1334
1335 2004-08-31  Tom Tromey  <tromey@redhat.com>
1336
1337         * gnu/java/awt/peer/GLightweightPeer.java,
1338         gnu/java/awt/peer/gtk/GdkGraphics2D.java,
1339         gnu/java/awt/peer/gtk/GtkComponentPeer.java,
1340         javax/swing/JScrollPane.java: Removed
1341         redundant imports.
1342
1343 2004-08-31  David Jee  <djee@redhat.com>
1344
1345         * java/awt/DefaultKeyboardFocusManager.java
1346         (postProcessKeyEvent): Only activate MenuShortcuts on KEY_PRESSED
1347         event.  Fix shift modifier checking.
1348         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
1349         (accel_attach): Remove.
1350         (setupAccelGroup): Remove calls to accel_attach.
1351
1352 2004-08-31  Thomas Fitzsimmons  <fitzsim@redhat.com>
1353
1354         * gnu/java/awt/peer/gtk/GtkArg.java: Remove file.
1355         * gnu/java/awt/peer/gtk/GtkArgList.java: Remove file.
1356
1357         * Makefile.am (gtk_awt_peer_sources): Remove GtkArg.java and
1358         GtkArgList.java.
1359         (gtk_c_files): Use CAIRO_CFLAGS and PANGOFT2_CFLAGS, not _LIBS.
1360         * Makefile.in: Regenerate.
1361         * gnu/java/awt/peer/gtk/GtkButtonPeer.java,
1362         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
1363         (create(String)): New method.
1364         (create): Call new create method.
1365         (getArgs): Remove method.
1366         * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java,
1367         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c 
1368         (nativeCreate): Rename to create.
1369         (gtkSetLabel): Rename to gtkButtonSetLabel.
1370         (gtkToggleButtonSetActive): New method.
1371         (create): Call gtkToggleButtonSetActive and gtkButtonSetLabel.
1372         (setState): Replace set call with gtkToggleButtonSetActive.
1373         (setLabel): Replace gtkSetLabel call with gtkButtonSetLabel.
1374         (getArgs): Remove method.
1375         * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
1376         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
1377         (gtkWidgetSetSensitive): New method.
1378         (gtkWidgetSetParent): Likewise.
1379         (GtkComponentPeer): Call setParent, setComponentBounds and
1380         setVisibleAndEnabled.
1381         (setParent): New method.
1382         (setComponentBounds): New method.
1383         (setVisibleAndEnabled): New method.
1384         (setEnabled): Call gtkWidgetSetSensitive.
1385         (getArgs): Remove method.
1386         Remove all set methods.
1387         * gnu/java/awt/peer/gtk/GtkDialogPeer.java (create): Call
1388         gtkWindowSetModal, setTitle and setResizable.
1389         (getArgs): Remove method.
1390         * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
1391         (setComponentBounds): New method.
1392         * gnu/java/awt/peer/gtk/GtkFramePeer.java (setResizable):
1393         Replace set call with gtkWindowSetResizable.
1394         (getArgs): Remove method.
1395         (create): Call setTitle and setResizable.
1396         * gnu/java/awt/peer/gtk/GtkWindowPeer.java,
1397         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
1398         (gtkWindowSetTitle): New method.
1399         (gtkWindowSetResizable): New method.
1400         (gtkWindowSetModal): New method.
1401         (setParent): New method.
1402         (setVisibleAndEnabled): New method.
1403         (getArgs): Remove method.
1404         (setTitle): Call gtkWindowSetTitle.
1405         (setResizable): Call gtkWindowSetResizable.
1406         * jni/gtk-peer/gtkpeer.h [DEBUG_LOCKING]: New define to turn on
1407         and off locking instrumentation.
1408
1409 2004-08-31  Kim Ho  <kho@redhat.com>
1410
1411         * Makefile.am: Add new file.
1412         * Makefile.in: Regenerate.
1413         * gcj/Makefile.in: Regenerate
1414         * include/Makefile.in:
1415         * java/awt/Container.java:
1416         (acquireComponentForMouseEvent): Respect 
1417         the event mask when looking for candidate.
1418         * javax/swing/JComponent.java:
1419         Remove toolTip field.
1420         (createToolTip): Create a tooltip on demand.
1421         (setToolTipText): Register with the ToolTipManager.
1422         (getToolTipText(MouseEvent)): Return getToolTipText().
1423         * javax/swing/JToolTip.java: Implement.
1424         * javax/swing/Timer.java: Jalopy.
1425         (restart): Call stop, then start.
1426         (stop): Interrupt the timer rather than wait for
1427         the timer to come to a stop naturally.
1428         * javax/swing/ToolTipManager.java: Implement.
1429         * javax/swing/plaf/basic/BasicLookAndFeel.java:
1430         Change ToolTip.background color.
1431         * javax/swing/plaf/basic/BasicToolTipUI.java:
1432         Implement.
1433         * testsuite/Makefile.in: Regenerate
1434
1435 2004-08-31  Jerry Quinn  <jlquinn@optonline.net>
1436
1437         * java/awt/image/DirectColorModel.java (DirectColorModel): Fix
1438         constructor param comments.
1439
1440 2004-08-31  Thomas Fitzsimmons  <fitzsim@redhat.com>
1441
1442         * java/awt/Component.java: Document AWT 1.0 event handler
1443         methods.
1444
1445 2004-08-31  Roman Kennke  <roman@ontographics.com>
1446
1447         * javax/swing/Box.java:
1448         (createGlue): Implemented
1449         (createHorizontalGlue): Implemented
1450         (createHorizontalStrut): Implemented
1451         (createVerticalGlue): Implemented
1452         (createVerticalStrut): Implemented
1453
1454 2004-08-31  David Jee  <djee@redhat.com>
1455
1456         * gnu/java/awt/peer/gtk/GtkChoicePeer.java
1457         (GtkChoicePeer): Do not automatically select first item.
1458         (getHistory): Remove.
1459         (nativeGetSelected): New method.
1460         (nativeRemoveAll): New method.
1461         (add): Use nativeGetSelected() instead of getHistory().
1462         (remove): Likewise.
1463         (removeAll): Call nativeRemoveAll().
1464         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
1465         (create): Migrate to GtkComboBox.
1466         (append): Likewise.
1467         (nativeAdd): Likewise.
1468         (nativeRemove): Likewise.
1469         (select): Likewise.
1470         (nativeRemoveAll): New method.
1471         (nativeGetSelected): New method.
1472         (selection_changed): New method.
1473         (getHistory): Remove.
1474         (item_activate): Remove.
1475         (item_removed): Remove.
1476         (connect_choice_item_selectable_hook): Remove.
1477
1478 2004-08-31  Thomas Fitzsimmons  <fitzsim@redhat.com>
1479
1480         * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java (create): Use tf
1481         variable in setEditable call.
1482
1483         * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java,
1484         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c
1485         (gtkWidgetSetBackground): New method.
1486         (gtkWidgetSetForeground): Likewise.
1487         (create): Set peer's editable state based on awtComponent's.
1488
1489         * java/awt/Button.java (Button()): Use empty string rather than
1490         null in no-label constructor.
1491
1492 2004-08-31  Roman Kennke  <roman@ontographics.com>
1493
1494         * javax/swing/BoxLayout.java: Reimplement.
1495
1496 2004-08-31  Thomas Fitzsimmons  <fitzsim@redhat.com>
1497
1498         * gnu/java/awt/peer/gtk/GdkGraphics.java,
1499         gnu_java_awt_peer_gtk_GdkGraphics.c
1500         (initState(GtkComponentPeer)): Don't return array of colour
1501         values.
1502         (GdkGraphics(int,int)): Set default font to size 12.
1503         (GdkGraphics(GtkComponentPeer)): Set graphics colour to
1504         component's foreground colour.
1505         * gnu/java/awt/peer/gtk/GdkGraphics2D.java,
1506         gnu_java_awt_peer_gtk_GdkGraphics2D.c
1507         (initState(GtkComponentPeer)): Don't return array of colour
1508         values.
1509         (GdkGraphics2D(GtkComponentPeer)): Set foreground and background
1510         colours to component's colours.
1511         (current_colors_of_widget): Remove function.
1512         * gnu/java/awt/peer/gtk/GtkOffScreenImage.java (getGraphics):
1513         Return a new graphics object.
1514         * java/awt/Font.java (toString): Fix format.
1515         * java/awt/Graphics.java (toString): Likewise.
1516
1517 2004-08-31  Craig Black  <craig.black@aonix.com>
1518
1519         * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
1520         (addTearOff): New function.
1521         * gnu/java/awt/peer/gtk/GtkMenuPeer.java (addTearOff):
1522         New native method.
1523         (init): Call addTearOff() when menu.isTearOff().
1524
1525 2004-08-31  Bryce McKinlay  <mckinlay@redhat.com>
1526
1527         * gnu/java/awt/ClasspathToolkit.java (createImageProducer): New.
1528         Default implementation.
1529         * gnu/java/awt/peer/gtk/GtkToolkit.java (createImageProducer): New.
1530         Implement using GdkPixbufDecoder.
1531
1532 2004-08-31  David Jee  <djee@redhat.com>
1533
1534         * gnu/java/awt/peer/gtk/GtkComponentPeer.java
1535         (GtkComponentPeer): Use gtkWidgetGetPreferredDimensions() for
1536         setting the size of GtkFileDialogPeers.
1537         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
1538         (gtkWidgetGetPreferredDimensions): For widgets extending GtkWindow,
1539         use their default sizes rather than their natural requisitions.
1540
1541 2004-08-31  Michael Koch  <konqueror@gmx.de>
1542
1543         * javax/swing/JFormattedTextField.java
1544         (JFormattedTextField): Implemented.
1545         * javax/swing/text/DefaultEditorKit.java
1546         (BeepAction): New inner class.
1547         * javax/swing/text/Segment.java
1548         (partialReturn): New field.
1549         (setPartialReturn): New method.
1550         (isPartialReturn): Likewise.
1551         * javax/swing/text/View.java
1552         (createFragment): Fixed typo.
1553         (getStartOffset): New method.
1554         (getEndOffset): Likewise.
1555
1556 2004-08-31  Michael Koch  <konqueror@gmx.de>
1557
1558         * javax/swing/table/DefaultTableColumnModel.java
1559         (serialVersionUID): Made private.
1560         (listenerList): Initialize.
1561         (changeEvent): Initialize.
1562         * javax/swing/table/JTableHeader.java
1563         (JTableHeader): New constructors.
1564         (createDefaultColumnModel): New method.
1565         * javax/swing/table/TableColumn.java
1566         (setHeaderRenderer): Simplified code.
1567         (setCellRenderer): Likewise.
1568         (setWidth): Likewise.
1569
1570 2004-08-31  Tom Tromey  <tromey@redhat.com>
1571
1572         * java/text/AttributedString.java (AttributedString): Use
1573         ArrayList to build array of attribute ranges.  Don't use
1574         `attribs' before it is set.
1575
1576 2004-08-30  Andreas Tobler  <a.tobler@schweiz.ch>
1577
1578         * HACKING: Remove reference to special automake. No longer needed.
1579
1580 2004-08-30  Tom Tromey  <tromey@redhat.com>
1581
1582         * gnu/java/security/util/Prime.java (generateRandomPrime): Use
1583         return result from `add'.
1584
1585 2004-08-30  Tom Tromey  <tromey@redhat.com>
1586
1587         * java/rmi/server/UID.java (UID): Read `nextCount', not count.
1588
1589 2004-08-30  Andreas Tobler  <a.tobler@schweiz.ch>
1590
1591         * gnu/java/security/der/DEREncodingException.java: Remove whitespaces.
1592
1593 2004-08-30  Jeroen Frijters  <jeroen@frijters.net>
1594
1595         * java/io/File.java File(String,String): Fixed handling of empty
1596         path.
1597
1598 2004-08-30  Casey Marshall  <csm@gnu.org>
1599
1600         Author e-mail updated for all files.
1601         * gnu/java/security/OID.java (equals): Test if the aurgment is an
1602         instance of OID.
1603         (compareTo): Use `equals'.
1604         * gnu/java/security/der/BitString.java (equals): Test if the
1605         argument is an instance of BitString.
1606         * gnu/java/security/der/DERReader.java: Removed NIO imports.  Made
1607         class final. Made fields private.
1608         (<init>): New constructor.
1609         (skip): New method.
1610         (makeString): Made static; don't use NIO.
1611         (fromIso88591, fromUtf16Be, fromUtf8): New methods.
1612         * gnu/java/security/der/DERWriter.java: Fixed imports.
1613         (writeString): Don't use NIO.
1614         (toIso88591, toUtf16Be, toUtf8): New methods.
1615         * gnu/java/security/der/DERValue.java: Formatting changes only.
1616         * gnu/java/security/der/DER.java: Likewise.
1617
1618 2004-08-30  Tom Tromey  <tromey@redhat.com>
1619
1620         * java/nio/CharBuffer.java (put): Fix typo.
1621         * java/nio/DoubleBuffer.java (put): Fix typo.
1622         * java/nio/FloatBuffer.java (put): Fix typo.
1623         * java/nio/IntBuffer.java (put): Fix typo.
1624         * java/nio/LongBuffer.java (put): Fix typo.
1625         * java/nio/ShortBuffer.java (put): Fix typo.
1626
1627 2004-08-30  Florian Weimer  <fw@deneb.enyo.de>
1628
1629         * java/nio/ByteBuffer.java (put): Fix typo.
1630
1631 2004-08-30  Casey Marshall  <csm@gnu.org>
1632
1633         * java/security/DummyKeyPairGenerator.java (clone): Removed
1634         useless instanceof check.
1635         * java/security/DummyMessageDigest.java (clone): Likewise.
1636         * java/security/DummySignature.java (clone): Likewise.
1637         * java/security/MessageDigest.java (clone): Remove useless
1638         instanceof check.
1639         * java/security/MessageDigestSpi.java (clone): Likewise.
1640         * java/security/Signature.java (clone): Provide meaningful
1641         implementation.
1642         * java/security/SignatureSpi.java (clone): Likewise.
1643
1644 2004-08-29  Mark Wielaard  <mark@klomp.org>
1645
1646         * java/util/Arrays.java
1647         (sort(byte[], int, int)): Check fromIndex < 0.
1648         (sort(char[], int, int)): Likewise.
1649         (sort(short[], int, int)): Likewise.
1650         (sort(int[], int, int)): Likewise.
1651         (sort(long[], int, int)): Likewise.
1652         (sort(float[], int, int)): Likewise.
1653         (sort(double[], int, int)): Likewise.
1654         (sort(Object[], int, int, Comparator)): Likewise.
1655         (qsort(byte[], int, int)): Honor lower bound from in insertion sort.
1656         (qsort(char[], int, int)): Likewise.
1657         (qsort(short[], int, int)): Likewise.
1658         (qsort(int[], int, int)): Likewise.
1659         (qsort(long[], int, int)): Likewise.
1660         (qsort(float[], int, int)): Likewise.
1661         (qsort(double[], int, int)): Likewise.
1662
1663 2004-08-29  Andrew John Hughes  <gnu_andrew@member.fsf.org>
1664
1665         * java/util/AbstractCollection.java, java/util/AbstractList.java,
1666         java/util/AbstractMap.java, java/util/AbstractSequentialList.java,
1667         java/util/ArrayList.java, java/util/Arrays.java,
1668         java/util/BitSet.java, java/util/Calendar.java,
1669         java/util/Collection.java, java/util/ListIterator.java,
1670         java/util/Map.java, java/util/SortedSet.java:
1671         Added additional exceptions to documentation, along
1672         with some additions and corrections.
1673
1674 2004-08-27  Hans Boehm  <Hans.Boehm@hp.com>
1675
1676         * configure.ac: Handle --enable-gc-debug.
1677         * configure: Regenerate.
1678         * include/config.h.in (LIBGCJ_GC_DEBUG): Add.
1679         * boehm.cc: Include gc_mark.h, javaxfc.h, but no GC private files.
1680         Rearrange include file order.
1681         (GC_DEBUG): Set if LIBGCJ_GC_DEBUG is set.
1682         (GC_finalize_all, GC_debug_generic_malloc): Don't declare.
1683         (disable_gc_mutex): Delete along with all references.
1684         (_Jv_MarkObj, _Jv_MarkArray): Use public types,
1685         adjust for debug header size.
1686         (_Jv_AllocObj, _Jv_allocPtrFreeObj): Define out of line for
1687         debug case.
1688         (_Jv_AllocArray): Declare min_heap_addr only if needed.
1689         (gcj_describe_type_fn): New.
1690         (_Jv_InitGC): Use GC_new_free_list, GC_new_proc, and GC_new_kind.
1691         Register gcj_describe_type_fn.
1692         * include/boehm-gc.h:
1693         (_Jv_AllocObj, _Jv_allocPtrFreeObj):
1694         Don't define, but declare, for debug case.
1695         * java/lang/natObject.cc:
1696         (GC_DEBUG): Define if LIBGCJ_GC_DEBUG is set.
1697
1698 2004-08-26  Mark Wielaard  <mark@klomp.org>
1699
1700         Fixes PR libgcj/17002:
1701         * java/util/TimeZone.java (defaultZone): Try a couple of ways to get
1702         a TimeZoneId string and then try to convert that to a TimeZone with
1703         getDefaultSystemTimeZone(String).
1704         (timezones0): Changed type from Hashtable to HashMap.
1705         (timezones): Create HashMap, not Hashtable.
1706         (getDefaultTimeZone): New method, rewritten from CNI version.
1707         (readTimeZoneFile): New method.
1708         (readtzFile): Likewise.
1709         (skipFully): Likewise.
1710         * java/util/natTimeZone.cc (getSystemTimeZone): Renamed to
1711         getDefaultTimeZoneId and rewritten.
1712         (getDefaultTimeZoneId): Rewritten in java.
1713         
1714 2004-08-25  David Daney  <daney@avtrex.com>
1715
1716         * Makefile.am (AM_GCJFLAGS):  Add LIBGCJ_JAVAFLAGS.
1717         * Makefile.in: Regenerated.
1718
1719 2004-08-23  Bryce McKinlay  <mckinlay@redhat.com>
1720
1721         * prims.cc (JVMPI_NOTIFY_ALLOC): New macro. Call jvmpi_notify_alloc
1722         only if jvmpi is enabled.
1723         (jvmpi_notify_alloc): Don't check if jvmpi is enabled here.
1724         (_Jv_AllocObjectNoFinalizer): Use JVMPI_NOTIFY_ALLOC.
1725         (_Jv_AllocString): Likewise.
1726         (_Jv_AllocPtrFreeObject): Likewise.     
1727
1728 2004-08-23  Hans Boehm  <Hans.Boehm@hp.com>
1729
1730         * defineclass.cc: Include <stdio.h>.
1731         * java/lang/natClassLoader.cc: Include <stdio.h>.
1732
1733 2004-08-21  Andreas Tobler  <a.tobler@schweiz.ch>
1734             Michael Koch  <konqueror@gmx.de>
1735
1736         * Makefile.am (lib_gnu_java_awt_peer_gtk_la_LINK): Added.
1737         * Makefile.in: Regenerated.
1738
1739 2004-08-20  Michael Koch  <konqueror@gmx.de>
1740
1741         * configure.ac: Replaced all AC_TRY_COMPILE macros with
1742         AC_COMPILE_IFELSE macros.
1743
1744 2004-08-20  Michael Koch  <konqueror@gmx.de>
1745
1746         * configure.in: Renamed to configure.ac.
1747         * configure.ac: New file.
1748         * configure, Makefile.in, gcj/Makefile.in, include/Makefile.in
1749         include/config.h.in, testsuite/Makefile.in: Regenerated.
1750
1751 2004-08-20  Michael Koch  <konqueror@gmx.de>
1752
1753         * configure.in: Rewrote some obsolete stuff for autoconf 2.59.
1754         * aclocal.m4, configure: Regenerated.
1755
1756 2004-08-19  Thomas Fitzsimmons  <fitzsim@redhat.com>
1757             Michael Koch  <konqueror@gmx.de>
1758
1759         * configure.in, Makefile.am: Ported to automake 1.9.
1760         * Makefile.in, aclocal.m4, configure, gcj/Makefile.in, 
1761         include/Makefile.in, testsuite/Makefile.in, include/config.h.in:
1762         Regenerated.
1763
1764 2004-08-19  Tom Tromey  <tromey@redhat.com>
1765
1766         * java/net/DatagramSocket.java: Fixed typo.
1767
1768 2004-08-18  Bryce McKinlay  <mckinlay@redhat.com>
1769
1770         PR libgcj/17081
1771         * java/net/URI.java (string): New field. Make all other fields
1772         transient.
1773         (readObject): Implemented.
1774         (writeObject): Implemented.
1775         (URI): Set 'string'.
1776
1777 2004-08-18  Bryce McKinlay  <mckinlay@redhat.com>
1778
1779         PR libgcj/17079
1780         * java/util/logging/Handler.java (isLoggable): Accept record if its
1781         log level equals the threshold level. From Robin Green.
1782
1783 2004-08-18  David Daney  <ddaney@avtrex.com>
1784
1785         * java/lang/natPosixProcess.cc (waitForSignal): Use sigsuspend 
1786         instead of sigwait.
1787
1788 2004-08-17  Michael Koch  <konqueror@gmx.de>
1789
1790         * Makefile.am (AM_CXXFLAGS): Reformatted to make it more ease to read.
1791         * Makefile.in: Regenerated.
1792
1793 2004-08-16  Tom Tromey  <tromey@redhat.com>
1794
1795         PR java/8473:
1796         * testsuite/libjava.jacks/jacks.xfail: Removed passing test.
1797
1798 2004-08-16  Michael Koch  <konqueror@gmx.de>
1799
1800         * Makefile.am
1801         (math_c_files): Renamed from c_files.
1802         (math_c_source_files): Renamed from c_source_files.
1803         * Makefile.in,
1804         gcj/Makefile.in,
1805         include/Makefile.in,
1806         testsuite/Makefile.in: Regenerated.
1807
1808 2004-08-16  Bryce McKinlay  <mckinlay@redhat.com>
1809
1810         * configure.in (AC_CONF_SUBDIRS): Use literal for ltdl directory
1811         to avoid autoconf warning.
1812         * configure: Rebuilt.
1813
1814 2004-08-14  Andreas Tobler  <a.tobler@schweiz.ch>
1815
1816         * java/net/natInetAddressPosix.cc (lookup): Reflect rename of 
1817         localhostAddress to loopbackAddress.
1818         * java/net/natInetAddressWin32.cc (lookup): Likewise.
1819
1820 2004-08-13  Bryce McKinlay  <mckinlay@redhat.com>
1821
1822         * configure.in (GCINCS): Don't use "boehm-cflags". Instead, -I 
1823         boehm-gc's include dirs.
1824         * configure: Rebuilt.
1825         * include/boehm-gc.h: Include gc_config.h.
1826
1827 2004-08-13  Bryce McKinlay  <mckinlay@redhat.com>
1828
1829         * java/net/InetAddress.java (loopbackAddress): Renamed from 
1830         localhostAddress.
1831         (getByName): Return loopback address for null hostname, without
1832         security check. Use lookup(), not getAllByName.
1833         (getAllByName): Return loopback address for null hostname, without
1834         security check.
1835         * java/net/natInetAddressPosix.cc (lookup): Don't perform security
1836         check here.
1837
1838 2004-08-13  Bryce McKinlay  <mckinlay@redhat.com>
1839
1840         PR libgcj/17020
1841         Reported by Robin Green.
1842         * defineclass.cc (handleField): Don't throw exception on unrecognised
1843         modifier. Add FIXME comments for spec compliance.
1844         (handleMethod): Likewise.
1845
1846 2004-08-10  Hans Boehm <Hans.Boehm@hp.com>
1847
1848         PR libgcj/16662
1849         * java/lang/natObject.cc (LOCK_LOG, LOG): Add debug tracing.
1850         (Almost everywhere): add LOG calls, fix, add comments.
1851         (_Jv_MonitorEnter): Replace masking of LOCKED bit with assertion.
1852         Add explicit check for LOCKED bit in slow case (PR 16662).
1853         (_Jv_MonitorExit): Add casts in debug-only code.
1854         Always release LOCKED bit before throwing exception.
1855         (_Jv_ObjectCheckMonitor): Lock may be held if lightweight lock
1856         isn't.  Handle easy cases without lock acquisition.
1857         (Object::wait): Use NotifyAll for lock inflation.
1858
1859 2004-08-12  David Daney  <ddaney@avtrex.com>
1860
1861         * testsuite/libjava.lang/Process_1.java: New test.
1862         * testsuite/libjava.lang/Process_2.java: New test.
1863         * testsuite/libjava.lang/Process_3.java: New test.
1864         * testsuite/libjava.lang/Process_4.java: New test.
1865         * testsuite/libjava.lang/Process_5.java: New test.
1866         * testsuite/libjava.lang/Process_6.java: New test.
1867         * testsuite/libjava.lang/Process_1.out: Expected result.
1868         * testsuite/libjava.lang/Process_2.out: Expected result.
1869         * testsuite/libjava.lang/Process_3.out: Expected result.
1870         * testsuite/libjava.lang/Process_4.out: Expected result.
1871         * testsuite/libjava.lang/Process_5.out: Expected result.
1872         * testsuite/libjava.lang/Process_6.out: Expected result.
1873
1874 2004-08-12  David Daney  <ddaney@avtrex.com>
1875
1876         PR libgcj/11801
1877         * java/lang/PosixProcess.java: Rewrote.
1878         * java/lang/natPosixProcess.cc: Rewrote.
1879         * java/lang/Runtime.java (execInternal): Declare throws IOException.
1880         * gcj/javaprims.h (ConcreteProcess$ProcessManager): Declare.
1881         * posix-threads.cc (block_sigchld) New function.
1882         (_Jv_ThreadRegister) Use it.
1883         (_Jv_ThreadStart) Use it.
1884         * configure.in (PLATFORM_INNER_NAT_HDRS): New AC_SUBST() used in...
1885         * Makefile.am: ... to specify extra native headers.
1886         * configure: Regenerated.
1887         * include/config.h: Regenerated.
1888         * Makefile.in: Regenerated.
1889         * gcj/Makefile.in: Regenerated.
1890         * include/Makefile.in: Regenerated.
1891         * testsuite/Makefile.in: Regenerated.
1892
1893 2004-08-12  Diego Novillo  <dnovillo@redhat.com>
1894
1895         PR tree-optimization/16867
1896         * testsuite/libjava.lang/PR16867.java: New test.
1897
1898 2004-08-09  Per Bothner  <per@bothner.com>
1899
1900         * gcj/javaprims.h (_Jv_Utf8Const): Change struct to a class,
1901         with private fields and access methods.
1902         (_Jv_NewStringUTF, _Jv_hashUtf8String): New function declarations.
1903         * gcj/cni.h (_Jv_NewStringUTF): Move to javaprims.h.
1904         * prims.cc (_Jv_Utf8COnst::init): New method implementation.
1905         ( _Jv_makeUtf8Const): Rewrite using new constructors.
1906         (hashUtf8String): Rename to +_Jv_hashUtf8String and make non-static.
1907         * defineclass.cc: Use new _Utf8Const access/convenience methods.
1908         * jni.cc: Likewise.
1909         * resolve.cc: Likewise.
1910         * gcj/field.h: Likewise.
1911         * include/jvm.h: Likewise.
1912         * java/lang/Class.h: Likewise.
1913         * java/lang/natClass.cc: Likwise.
1914         * java/lang/natClassLoader.cc: Likewise
1915         * java/lang/reflect/natMethod.cc: Likewise
1916         * verify.cc: Likewise.
1917         (_Jv_BytecodeVerifier::make_utf8_const):  Optimize.
1918         (~_Jv_BytecodeVerifier):  Don't need second _Jv_Free call.
1919
1920 2004-08-10  Andrew Haley  <aph@redhat.com>
1921
1922         * testsuite/libjava.lang/err14.java: New file.
1923         * testsuite/libjava.lang/err14.out: New file.
1924
1925 2004-08-05  Andreas Tobler  <a.tobler@schweiz.ch>
1926
1927         * Makefile.am: Fix missing rename from x_nat_headers to 
1928         xlib_nat_headers.
1929         * Makefile.in: Regenerated.
1930
1931 2004-08-04  Andrew Haley  <aph@redhat.com>
1932
1933         * java/security/BasicPermission.java: Don't check wildcards.
1934
1935 2004-08-04  Thomas Fitzsimmons <fitzsim@redhat.com>
1936             Michael Koch  <konqueror@gmx.de>
1937
1938         * acinclude.m4: Correctly quote PKG_CHECK_MODULES.
1939         * configure.in: Replaced all usages of AC_LINK_FILES by
1940         AC_CONFIG_LINKS.
1941         * aclocal.m4,
1942         configure: Regenerated.
1943
1944 2004-08-04  Thomas Fitzsimmons  <fitzsim@redhat.com>
1945             Michael Koch  <konqueror@gmx.de>
1946
1947         * acconfig.h: Removed.
1948         * Makefile.am: Rename variables for xlib peer to include xlib and
1949         gtk_c_headers to gtk_jni_headers.
1950         * Makefile.in: Regenerated.
1951
1952 2004-08-04  Andrew Haley  <aph@redhat.com>
1953
1954         * testsuite/lib/libjava.exp (bytecompile_file): Byte compile with
1955         debugging.
1956
1957 2004-08-03  Nathanael Nerode  <neroden@gcc.gnu.org>
1958
1959         * configure.in: Eliminate uses of changequote (mostly by quoting []).
1960         Replace most top level 'dnl' comments with '#' comments, conforming
1961         to new autoconf style.  Use AS_HELP_STRING throughout; improve a few
1962         help strings.
1963         * configure: Rebuilt.
1964
1965 2004-07-17  Nathanael Nerode  <neroden@gcc.gnu.org>
1966
1967         * acinclude.m4: Include no-executables.m4.
1968         * aclocal.m4: Rebuild.
1969         * configure.in: Convert to the autoconf 2.59 version of
1970         of the no-executables hack, and also of the nonstandard CXX
1971         hack and the multilibbed CC and CXX hack.  Change prerequisite
1972         to autoconf 2.59.
1973         * configure: Rebuild with autoconf 2.59.  (Woo-hoo!)
1974         * Makefile.in, gcj/Makefile.in, include/Makefile.in,
1975         testsuite/Makefile.in: Regenerate.
1976
1977 2004-08-03  Tom Tromey  <tromey@redhat.com>
1978
1979         * jni.cc: Reindented.
1980
1981 2004-08-02  Bryce McKinlay  <mckinlay@redhat.com>
1982
1983         * java/sql/Timestamp.java (valueOf): Synchronize access to dateFormat.
1984
1985 2004-08-02  Bryce McKinlay  <mckinlay@redhat.com>
1986
1987         * testsuite/libjava.compile/PR16701.java: New test.
1988
1989 2004-08-01  Andrew John Hughes  <gnu_andrew@member.fsf.org>
1990
1991         * java/util/Collection.java, java/util/List.java,
1992         java/util/Map.java, java/util/Set.java,
1993         java/util/SortedMap.java, java/util/SortedSet.java:
1994         Added additional exceptions to documentation.
1995
1996 2004-08-01  Danny Smith  <dannysmith@users.sourceforge.net>
1997
1998         PR libgcj/16814
1999         * configure.in [host *mingw*] (SYSTEMSPEC): Remove -lwsock32.
2000         * configure. Regenerate.
2001         * include/win32.h: Explicitly include winsock2.h
2002         * win32.cc (_Jv_platform_initialize): Require version 2.2 of
2003         Winsock api.
2004
2005 2004-07-30  Michael Koch  <konqueror@gmx.de>
2006
2007         * java/util/zip/GZIPInputStream.java
2008         (GZIPInputStream): Increase buffer size to 4k.
2009         * java/util/zip/GZIPOutputStream.java
2010         (GZIPOutputStream): Likewise.
2011         * java/util/zip/Inflater.java
2012         (setInput): Merged formating with GNU classpath.
2013         * java/util/zip/InflaterInputStream.java
2014         (InflaterInputStream): Increase buffer size to 4k.
2015         (fill): Throw exception if stream ends early.
2016         (read): Merged endless-loop with GNU classpath.
2017         (skip): Increase buffer size to 2k.
2018
2019 2004-07-30  Michael Koch  <konqueror@gmx.de>
2020
2021         * gnu/java/awt/EmbeddedWindow.java
2022         (addNotify): Use AccessController to allow execution of privileged
2023         code.
2024
2025 2004-07-29  Michael Koch  <konqueror@gmx.de>
2026
2027         * gnu/java/lang/MainThread.java:
2028         Explicitely import used classes.
2029         (args): Make it type String[].
2030
2031 2004-07-29 Dalibor Topic <robilad@kaffe.org>
2032
2033         * gnu/java/awt/ComponentDataBlitOp.java,
2034         gnu/java/beans/ExplicitBeanInfo.java,
2035         gnu/java/beans/IntrospectionIncubator.java,
2036         gnu/java/beans/editors/ColorEditor.java,
2037         gnu/java/beans/editors/FontEditor.java,
2038         gnu/java/beans/editors/NativeBooleanEditor.java,
2039         gnu/java/beans/editors/NativeByteEditor.java,
2040         gnu/java/beans/editors/NativeDoubleEditor.java,
2041         gnu/java/beans/editors/NativeFloatEditor.java,
2042         gnu/java/beans/editors/NativeIntEditor.java,
2043         gnu/java/beans/editors/NativeLongEditor.java,
2044         gnu/java/beans/editors/NativeShortEditor.java,
2045         gnu/java/beans/editors/StringEditor.java,
2046         gnu/java/io/ClassLoaderObjectInputStream.java,
2047         gnu/java/io/decode/Decoder.java,
2048         gnu/java/io/encode/Encoder.java,
2049         gnu/java/lang/ClassHelper.java,
2050         gnu/java/locale/Calendar.java,
2051         gnu/java/locale/Calendar_de.java,
2052         gnu/java/locale/Calendar_en.java,
2053         gnu/java/locale/Calendar_nl.java,
2054         gnu/java/locale/LocaleInformation_de.java,
2055         gnu/java/locale/LocaleInformation_en.java,
2056         gnu/java/locale/LocaleInformation_nl.java:
2057         Cleaned up imports.
2058
2059 2004-07-28  Bryce McKinlay  <mckinlay@redhat.com>
2060
2061         * README: Remove obsolete info. Update bug URL.
2062         * THANKS: Updated.
2063         * NEWS: Updated with news up to GCC 3.4 release.
2064
2065 2004-07-28  Bryce McKinlay  <mckinlay@redhat.com>
2066
2067         * gnu/java/security/action/GetPropertyAction.java (setParameters):
2068         Renamed from 'setName'. New 2-argument form with default value.
2069         (run): Pass default 'value' parameter to System.getProperty().
2070         * gnu/java/security/action/SetAccessibleAction.java: Fix javadoc
2071         typos.
2072         * gnu/java/net/protocol/http/Connection.java: Use 'setParameters'
2073         not 'setName'.
2074
2075 2004-07-28  Bryce McKinlay  <mckinlay@redhat.com>
2076
2077         * configure.in: Check for minimum GTK version 2.4 requirement.
2078         * configure: Rebuilt.
2079
2080 2004-07-27  Bryce McKinlay  <mckinlay@redhat.com>
2081
2082         * testsuite/libjava.lang/TLtest.java: Reduce sleep time.
2083         * testsuite/libjava.lang/Thread_Alive.java: Remove old email address.
2084         Reduce sleep time.
2085         * testsuite/libjava.lang/Thread_HoldsLock.java: Modify to work around
2086         compiler bug.
2087         * testsuite/libjava.lang/Thread_Interrupt.java: Remove old email 
2088         address. Reduce sleep times. Synchronize with target threads before
2089         attempting to interrupt them. Don't try to calibrate yeild count,
2090         instead, always loop for a fixed time.
2091         * testsuite/libjava.lang/Thread_Join.java: Remove old email address.
2092         * testsuite/libjava.lang/Thread_Monitor.java: Likewise.
2093         * testsuite/libjava.lang/Thread_Wait.java: Likewise.
2094         * testsuite/libjava.lang/Thread_Wait_2.java: Likewise.
2095         * testsuite/libjava.lang/Thread_Wait_Interrupt.java: Likewise.
2096         * testsuite/libjava.lang/pr179.java: Likewise.
2097         * testsuite/libjava.lang/Thread_Sleep.java: Likewise. Reduce sleep
2098         time. Remove upper bounds check on sleep time. 
2099
2100 2004-07-27  Bryce McKinlay  <mckinlay@redhat.com>
2101
2102         * testsuite/libjava.lang/Thread_HoldsLock.java: New test case.
2103         * testsuite/libjava.lang/Thread_HoldsLock.out: New.     
2104
2105 2004-07-27  Bryce McKinlay  <mckinlay@redhat.com>
2106
2107         * java/io/File.java (toURI): Throw RuntimeException, not 
2108         InternalError.
2109         * java/lang/Runtime.java (exit): Qualify static sleep() call with
2110         class name, not instance.
2111
2112 2004-07-24  Bryce McKinlay  <mckinlay@redhat.com>
2113
2114         * Makefile.am: Add gnu/java/security/action/GetPropertyAction.java
2115         and gnu/java/security/action/SetAccessibleAction.java.
2116         * Makefile.in: Rebuilt.
2117
2118 2004-07-23  Bryce McKinlay  <mckinlay@redhat.com>
2119
2120         * prims.cc (_Jv_InitPrimClass): Don't create an array class.
2121         (_Jv_CreateJavaVM): Don't pass array vtable parameter to
2122         _Jv_InitPrimClass.
2123         (DECLARE_PRIM_TYPE): Don't declare array vtables.
2124         * include/jvm.h (struct _Jv_ArrayVTable): Removed.
2125         * java/lang/Class.h (_Jv_InitPrimClass): Update friend declaration.
2126
2127 2004-07-23  Thomas Fitzsimmons  <fitzsim@redhat.com>
2128
2129         * Makefile.am: Replace jar, rmic and rmiregistry references with
2130         gjar, grmic and grmiregistry.
2131         * configure.in: Likewise.
2132         * Makefile.in: Regenerate.
2133         * configure: Likewise.
2134         * gcj/Makefile.in: Likewise.
2135         * include/Makefile.in: Likewise.
2136         * testsuite/Makefile.in: Likewise.
2137
2138 2004-07-23  Bryce McKinlay  <mckinlay@redhat.com>
2139
2140         * gnu/java/net/protocol/http/Connection.java: Use GetPropertyAction
2141         for privileged getProperty calls.
2142         * java/io/ObjectOutputStream.java (getField): No longer static. Use
2143         SetAccessibleAction instead of anonymous class for doPrivileged call.
2144         (getMethod): Likewise.
2145         (setAccessible): New field. PrivilegedAction object to use when
2146         calling setAccessible.
2147         * java/io/ObjectStreamClass.java (calculateOffsets): Use
2148         SetAccessibleAction instead of anonymous class for diPrivileged call.
2149         (setFields): Likewise.
2150         (getClassUID): Likewise.
2151         (findMethod): Likewise.
2152         * gnu/java/security/action/GetPropertyAction.java: New class.
2153         * gnu/java/security/action/SetAccessibleAction.java: New class. 
2154
2155 2004-07-23  Bryce McKinlay  <mckinlay@redhat.com>
2156
2157         * java/io/ObjectStreamField (ObjectStreamField): Don't unset 'toset'
2158         for final fields.
2159         * testsuite/libjava.lang/Serialization.java: New test.
2160         * testsuite/libjava.lang/Serialization.out: New.
2161
2162 2004-07-23  Bryce McKinlay  <mckinlay@redhat.com>
2163
2164         * gnu/java/net/DefaultContentHandlerFactory.java: Check in real file
2165         missed in last commit.
2166
2167 2004-07-23  Mark Wielaard  <mark@klomp.org>
2168
2169         * java/lang/System.java (static): Set http.agent system property when
2170         not yet set.
2171         * gnu/java/net/protocol/http/Connection.java (static): Get httpAgent
2172         from system property inside AccessController.doPrivileged() call.
2173         (proxyPort): Made package private.
2174         (proxyInUse): Likewise.
2175         (proxyHost): Likewise.
2176         (userAgent): Likewise.
2177
2178 2004-07-23  Mark Wielaard  <mark@klomp.org>
2179
2180         * gnu/java/net/DefaultContentHandlerFactory.java: New dummy
2181         implementation.
2182
2183 2004-07-22  Bryce McKinlay  <mckinlay@redhat.com>
2184
2185         * Makefile.am (ordinary_java_source_files): Add
2186         DefaultContentHandlerFactory.java.
2187         * Makefile.in: Rebuilt.
2188         * java/net/URLConnection.java (defaultFactory): New field.
2189         (getContent): 
2190         (getContentHandler): Renamed from 'setContentHandler'. Try 
2191         defaultFactory after user-set factory, if any. Search for content 
2192         handler implementations in gnu.java.net.content, not gnu.gcj.content.
2193         * gnu/java/net/protocol/file/Connection.java (getHeaderField):
2194         Implemented.
2195         (getLastModified): Implemented.
2196         (getPermission): Create file permission here, instead of in
2197         constructor.
2198         * gnu/java/net/protocol/gcjlib/Connection.java (getHeaderField):
2199         Implemented.
2200         * gnu/java/net/protocol/jar/Connection.java (getHeaderField):
2201         Implemented.
2202         (getLastModified): Implemented.
2203         * gnu/java/awt/ClasspathToolkit.java (createImageProducer): New.
2204         Default implementation.
2205         * gnu/java/awt/peer/gtk/GtkToolkit.java (createImageProducer): New.
2206         Implement using GdkPixbufDecoder.
2207         
2208 2004-07-21  Michael Koch  <konqueror@gmx.de>
2209
2210         * javax/swing/JTextArea.java
2211         (setLineWrap): Fire property change event after new value is set.
2212         (setTabSize): Likewise.
2213
2214 2004-07-21  Michael Koch  <konqueror@gmx.de>
2215
2216         * javax/swing/JTable.java
2217         (autoCreateColumnsFromModel): New field.
2218         (autoResizeMode): Likewise.
2219         (cellEditor): Likewise.
2220         (cellSelectionEnabled): Likewise.
2221         (columnModel): Likewise.
2222         (dataModel): Likewise.
2223         (defaultEditorsByColumnClass): Likewise.
2224         (defaultRenderersByColumnClass): Likewise.
2225         (editingColumn): Likewise.
2226         (editingRow): Likewise.
2227         (gridColor): Likewise.
2228         (preferredViewportSize): Likewise.
2229         (rowHeight): Likewise.
2230         (rowMargin): Likewise.
2231         (rowSelectionAllowed): Likewise.
2232         (selectionBackground): Likewise.
2233         (selectionForeground): Likewise.
2234         (selectionModel): Likewise.
2235         (showHorizontalLines): Likewise.
2236         (showVerticalLines): Likewise.
2237         (tableHeader): Likewise.
2238         (JTable): Implemented.
2239         (getColumnModel): Likewise.
2240         (getSelectedRow): Likewise.
2241         (getSelectionModel): Likewise.
2242         (setModel): Likewise.
2243         (setSelectionModel): Likewise.
2244         (createScrollPaneForTable): New method.
2245         (createDefaultDataModel): Likewise.
2246         (createDefaultListSelectionModel): Likewise.
2247         (getModel): Likewise.
2248         (getTableHeader): Likewise.
2249         (setTableHeader): Likewise.
2250         (getColumnSelectionAllowed): Likewise.
2251         (setColumnSelectionAllowed): Likewise.
2252         (getRowSelectionAllowed): Likewise.
2253         (setRowSelectionAllowed): Likewise.
2254         (getAutoResizeMode): Likewise.
2255         (setAutoResizeMode): Likewise.
2256         (getColumnCount): Likewise.
2257         (getRowCount): Likewise.
2258         (getCellRenderer): Likewise.
2259         * javax/swing/JTree.java
2260         (cellRenderer): New field.
2261         (editable): Likewise.
2262         (rootVisible): Likewise.
2263         (showsRootHandles): Likewise.
2264         (getModel): New method.
2265         (setModel): Likewise.
2266         (isEditable): Likewise.
2267         (setEditable): Likewise.
2268         (isRootVisbile): Likewise.
2269         (setRootVisible): Likewise.
2270         (getShowsRootHandles): Likewise.
2271         (setShowRootHandles): Likewise.
2272         (getCellRenderer): Likewise.
2273         (setCellRenderer): Likewise.
2274
2275 2004-07-21  Michael Koch  <konqueror@gmx.de>
2276
2277         * javax/swing/JFormattedTextField.java
2278         (setDocument): Implemented.
2279         * javax/swing/JRootPane.java:
2280         Fixed javadocs.
2281         * javax/swing/JTable.java
2282         (getDefaultRenderer): New method.
2283         * javax/swing/JTextField.java
2284         (setFont): Likewise.
2285         (getPreferredSize): Likewise.
2286         * javax/swing/JToggleButton.java
2287         (getAccessibleContext): Fix javadoc.
2288         * javax/swing/JTree.java:
2289         Add some javadocs.
2290         * javax/swing/JViewport.java:
2291         Likewise.
2292
2293 2004-07-21  David Jee  <djee@redhat.com>
2294
2295         * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java:
2296         Collect all native method declaration at the top.
2297         (create): Set the filename filter if necessary.
2298         (setDirectory): Call nativeSetDirectory().
2299         (setFilenameFilter): Implement.
2300         (filenameFilterCallback): New method.
2301         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
2302         (create): Configure dialog to show hidden files.
2303         (filenameFilterCallback): New function. 
2304         (nativeSetFilenameFilter): New function.
2305         (nativeSetDirectory): New function.
2306
2307 2004-07-21  Kim Ho  <kho@redhat.com>
2308
2309         * javax/swing/plaf/basic/BasicSliderUI.java:
2310         Ran Jalopy.
2311         (paintTrack): Fill the track before painting
2312         the borders.
2313
2314 2004-07-21  Graydon Hoare  <graydon@redhat.com>
2315
2316         patch from Roman Kennke <roman@ontographics.com>
2317         * javax/swing/Spring.java: New file.
2318         * javax/swing/SpringLayout.java: New file.
2319         * Makefile.am: Add new files.
2320         * Makefile.in: Regenerate.
2321
2322 2004-07-21  Graydon Hoare  <graydon@redhat.com>
2323
2324         * javax/swing/plaf/basic/BasicSplitPaneUI.java: Minor layout fixes.
2325         * javax/swing/plaf/basic/BasicTabbedPaneUI.java: Likewise.
2326         * javax/swing/ScrollPaneLayout.java: Likewise.
2327
2328 2004-07-21  Kim Ho  <kho@redhat.com>
2329
2330         * javax/swing/DefaultDesktopManager.java:
2331         (findMinimum): Removed.
2332         (resizeFrame): Trust the UI to pass valid 
2333         bounds.
2334         * javax/swing/JOptionPane.java:
2335         Implemented showInternalXXXDialog methods.
2336         (startModal): New method.
2337         * javax/swing/plaf/basic/BasicInternalFrameUI.java:
2338         (BorderListener::mouseDragged): Verify that the new 
2339         bounds are valid before passing them to the DesktopManager.
2340         (preferredLayoutSize): Delegate
2341         to getSize.
2342         (minimumLayoutSize): Ditto.
2343         (getSize): New method.
2344         (GlassPaneDispatcher): Reimplemented by copying 
2345         a stripped down LightweightDispatcher from Container.
2346         (getMinimumSize): Call minimumLayoutSize.
2347         * javax/swing/plaf/basic/BasicOptionPaneUI.java:
2348         Ran Jalopy.
2349         (mousePressed): Add ability to properly close 
2350         JInternalFrames.
2351         * javax/swing/plaf/basic/BasicToolBarUI.java:
2352         (DragWindow): Set owner for DragWindow.
2353
2354 2004-07-21  Jerry Quinn  <jlquinn@optonline.net>
2355
2356         * java/awt/image/ShortLookupTable.java: New file.
2357         * java/awt/image/ByteLookupTable.java: New file.
2358         * Makefile.am: Added new files.
2359         * Makefile.in: Regenerated.
2360
2361 2004-07-21  David Jee  <djee@redhat.com>
2362
2363         * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
2364         (create(GtkContainerPeer)): New native method.
2365         (create()): Call native create(), passing in the parent frame
2366         as the paramter. Natively set the current file and directory.
2367         (setFile): Construct an absolute filename before passing it to
2368         the native peer.
2369         (nativeGetDirectory): New method.
2370         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
2371         (window_closed): Removed.
2372         (ok_clicked): Likewise.
2373         (cancel_clicked): Likewise.
2374         (handle_response): New method.
2375         (create): Use GtkFileChooserDialog.
2376         (connectSignals): Connect to handle_response.
2377         (nativeGetDirectory): New method.
2378         (nativeSetFile): Use GtkFileChooserDialog.
2379
2380 2004-07-21  Jerry Quinn  <jlquinn@optonline.net>
2381
2382         * java/awt/image/LookupTable.java: New file.
2383         * Makefile.am: Added new file.
2384         * Makefile.in: Regenerated.
2385
2386 2004-07-21  Jerry Quinn  <jlquinn@optonline.net>
2387
2388         * java/awt/image/Kernel.java: New file.
2389         * Makefile.am: Added new file.
2390         * Makefile.in: Regenerated.
2391
2392 2004-07-21  Olga Rodimina  <rodimina@redhat.com>
2393
2394         * javax/swing/JCheckBoxMenuItem.java: Fixed Javadocs.
2395         * javax/swing/JMenu.java: Likewise.
2396         * javax/swing/JMenuBar.java: Likewise.
2397         (MARGIN_CHANGED_PROPERTY): New property.
2398         (setMargin): Implemented.
2399         * javax/swing/JMenuItem.java: Fixed javadocs.
2400         * javax/swing/JPopupMenuUI.java: Fixed javadocs.
2401         (LABEL_CHANGED_PROPERTY): New property.
2402         (add): changed to use createActionComponent.
2403         (createActionComponent): Implemented.   
2404         (setLabel): Fire PropertyChangeEvent if label property
2405         changes.
2406         * javax/swing/JRadioButtonMenuItem.java: Fixed javadocs.
2407         * javax/swing/plaf/basic/BasicMenuBarUI.java: Likewise.
2408         (ContainerHandler): Repaint if margin property has changed.
2409         * javax/swing/plaf/basic/BasicMenuItemUI.java:
2410         (installUI): Call installComponents().
2411         (uninstallUI): Call uinstallComponents().
2412         * javax/swing/plaf/basic/BasicMenuUI.java:
2413         Fixed javadocs.
2414         * javax/swing/plaf/basic/BasicPopupMenuUI.java:
2415         Likewise.
2416
2417 2004-07-21  Kim Ho  <kho@redhat.com>
2418
2419         * javax/swing/plaf/basic/BasicToolBarUI.java:
2420         (DragWindow): Use the right constructor.
2421
2422 2004-07-21  Kim Ho  <kho@redhat.com>
2423
2424         * javax/swing/JToolBar.java:
2425         (layoutContainer): Use getComponents.
2426         * javax/swing/plaf/basic/BasicToolBarUI.java:
2427         (DragWindow): Don't use SwingUtilities' 
2428         getOwnerFrame
2429         (ToolBarDialog): ditto.
2430
2431 2004-07-21  Kim Ho  <kho@redhat.com>
2432
2433         * javax/swing/JRootPane.java:
2434         Ran jalopy.
2435         (layoutContainer): Set the glasspane's size to 
2436         be the same as the content pane.
2437         (createGlassPane): Set opaque property to false.
2438
2439 2004-07-21  Thomas Fitzsimmons  <fitzsim@redhat.com>
2440
2441         * java/awt/Component.java (requestFocus()): Don't handle Panels
2442         specially.
2443         (requestFocus(boolean)): Likewise.
2444         (requestFocusInWindow(boolean)): Likewise.
2445         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPanelPeer.c (create):
2446         Set GTK_CAN_FOCUS flag.
2447
2448 2004-07-21  Kim Ho  <kho@redhat.com>
2449
2450         * Makefile.am: Added new file.
2451         * Makefile.in: Regenerated.
2452         * gcj/Makefile.in: Regenerated.
2453         * include/Makefile.in: Regenerated.
2454         * javax/swing/AbstractButton.java:
2455         Add rollOverEnabled property.
2456         (setRolloverEnabled): Use new property.
2457         (isRolloverEnabled): Use new property.
2458         * javax/swing/JTabbedPane.java:
2459         (setComponent): Remove useless JTabbedPane.this.
2460         * javax/swing/JToolBar.java: Finish implementation.
2461         * javax/swing/plaf/basic/BasicArrowButton.java:
2462         (paint): Moved border painting to a border.
2463         * javax/swing/plaf/basic/BasicLookAndFeel.java:
2464         Change JToolBar look and feel defaults.
2465         * javax/swing/plaf/basic/BasicOptionPaneUI.java
2466         (actionPerformed): Return Integer index instead of name.
2467         (addButtonComponents): Check to see if component is
2468         JButton last.
2469         (createMessageArea): Don't use components that are not
2470         completed yet.
2471         (getIconForType): Use temporary icons.
2472         * javax/swing/plaf/basic/BasicSliderUI.java:
2473         (mousePressed): Do not return if it's on thumb.
2474         (paintMinorTickForHorizSlider): Use BLACK to paint ticks.
2475         (paintMinorTickForVertSlider): ditto.
2476         (paintMajorTickForHorizSlider): ditto.
2477         (paintMajorTickForVertSlider): ditto.
2478         * javax/swing/plaf/basic/BasicSplitPaneDivider.java:
2479         Add a border around the SplitPaneDivider.
2480         * javax/swing/plaf/basic/BasicSplitPaneUI.java:
2481         Remove comments.
2482         * javax/swing/plaf/basic/BasicToolBarSeparatorUI.java:
2483         New file. Implemented.
2484         * javax/swing/plaf/basic/BasicToolBarUI.java:
2485         Implemented.
2486         * testsuite/Makefile.in: Regenerated.
2487
2488 2004-07-21  Graydon Hoare  <graydon@redhat.com>
2489
2490         * javax/swing/Timer.java (run): Queue events each time cycle.
2491
2492 2004-07-21  David Jee  <djee@redhat.com>
2493
2494         * gnu/java/awt/peer/gtk/GtkImagePainter.java
2495         (imageComplete): Call image.imageComplete().
2496         * java/awt/image/MemoryImageSource.java:
2497         Reimplement consumers as a Vector instead of a Hashtable.  This is
2498         because enumeration on a Hashtable is not thread-safe.
2499         (addConsumer): Adapt to Vector consumers.
2500         (isConsumer): Adapt to Vector consumers.
2501         (removeConsumer): Adapt to Vector consumers.
2502         (startProduction): Adapt to Vector consumers. Call imageComplete()
2503         with STATICIMAGEDONE flag instead of SINGLEFRAME flag.
2504         (newPixels): Adapt to Vector consumers.
2505         (sendPicture): Set the color model of the image consumer.
2506         (newPixels(IIII)): Adapt to Vector consumers.
2507         (newPixels(IIIIB)): Adapt to Vector consumers.
2508
2509 2004-07-21  Thomas Fitzsimmons  <fitzsim@redhat.com>
2510
2511         * java/awt/Component.java (deliverEvent): Implement.
2512         (postEvent): Implement.
2513         (handleEvent): Implement.
2514         (translateEvent): New method.
2515         (dispatchEventImpl): Document.  Add AWT 1.0 event handling.
2516         * java/awt/Container.java (deliverEvent): Implement.
2517         * java/awt/Event.java (paramString): Fix formatting.
2518         * java/awt/Font.java (toString): Likewise.
2519         * java/awt/Window.java (postEvent): Implement.
2520
2521 2004-07-21  Thomas Fitzsimmons  <fitzsim@redhat.com>
2522
2523         * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
2524         Set window's focus owner upon receiving a FOCUS_LOST event.
2525         * java/awt/Window.java (Window()): Refocus the previously
2526         focused component within the window when the window regains the
2527         top-level focus.
2528         (setFocusOwner): New method.
2529         * java/awt/Component.java (requestFocus): Add FIXME.
2530
2531         * libgcj.pc.in: Remove library flags.
2532
2533 2004-07-21  Thomas Fitzsimmons  <fitzsim@redhat.com>
2534
2535         * gnu/java/awt/peer/gtk/GtkPanelPeer.java (handleEvent): Handle
2536         MOUSE_PRESSED event.
2537         * java/awt/Component.java (requestFocus()): Handle Panel
2538         specially.  Post FOCUS_LOST event on opposite component.
2539         (requestFocus(boolean)): Likewise.
2540         (requestFocusInWindow(boolean)): Likewise.
2541         (paramString): Reorder dimension fields.
2542         * java/awt/Container.java (paramString): Fix string format.
2543         * java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
2544         Handle FOCUS_LOST events.  Don't handle Windows specially.  Only
2545         process key events if the focus owner is non-null.
2546         (dispatchKeyEvent): Likewise.
2547         * java/awt/Frame.java (paramString): Fix formatting.
2548         (generateName): New method.
2549         (getUniqueLong): Likewise.
2550         * java/awt/KeyboardFocusManager.java (getFocusOwner): Check if
2551         the temporary focus owner is null.  If so, return the permanent
2552         focus owner.
2553         * java/awt/Panel.java (generateName): New method.
2554         (getUniqueLong): Likewise.
2555         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c: Rework
2556         signal handling to make callbacks more specific.
2557
2558 2004-07-21  Michael Koch  <konqueror@gmx.de>
2559
2560         * javax/swing/text/Position.java
2561         (Bias): Implemented.
2562
2563 2004-07-21  Michael Koch  <konqueror@gmx.de>
2564
2565         * javax/swing/LookAndFeel.java
2566         (provideErrorFeedback): New method.
2567
2568 2004-07-21  Michael Koch  <konqueror@gmx.de>
2569
2570         * javax/swing/JTextArea.java
2571         (tabSize): New field.
2572         (getTabSize): New method.
2573         (setTabSize): Likewise.
2574
2575 2004-07-21  Michael Koch  <konqueror@gmx.de>
2576
2577         * javax/swing/ActionMap.java:
2578         Fixed javadocs all over.
2579         (serialVersionUID): Made private.
2580         (parent): Don't explicitely initialize with default value.
2581         (get): SImplified.
2582         (keys): Reimplemented.
2583         (allKeys): Likewise.
2584         (convertSet): Removed.
2585         * javax/swing/ComponentInputMap.java:
2586         Fixed javadocs all over.
2587         (ComponentInputMap): Implemented.
2588         (put): Likewise.
2589         (clear): Likewise.
2590         (remove): Likewise.
2591         (SetParent): Likewise.
2592         (getComponent): Likewise.
2593         * javax/swing/InputMap.java:
2594         Fixed javadocs all over.
2595         (serialVersionUID): Made private.
2596         (parent): Don't explicitely initialize with default value.
2597         (get): SImplified.
2598         (keys): Reimplemented.
2599         (allKeys): Likewise.
2600         (convertSet): Removed.
2601
2602 2004-07-21  Michael Koch  <konqueror@gmx.de>
2603
2604         * javax/swing/ActionMap.java,
2605         javax/swing/ComponentInputMap.java,
2606         javax/swing/InputMap.java,
2607         javax/swing/table/DefaultTableColumnModel.java,
2608         javax/swing/table/TableColumn.java,
2609         javax/swing/table/TableColumnModel.java,
2610         javax/swing/table/TableModel.java,
2611         javax/swing/text/AbstractDocument.java,
2612         javax/swing/text/TextAction.java:
2613         Reformated.
2614
2615 2004-07-21  Graydon Hoare  <graydon@redhat.com>
2616
2617         * gnu/java/awt/peer/gtk/GtkToolkit.java (bufferedImageOrError): 
2618         Make method non-static.
2619         * javax/swing/AbstractButton.java:
2620         Rename fields to match property names where possible.
2621         (iconTextGap): New property.
2622         * javax/swing/JCheckBox.java: Match AbstractButton changes.
2623         (init) New method, call from after various constructors.
2624         * javax/swing/JComponent.java (revalidate): 
2625         Invalidate before queueing repair.
2626         * javax/swing/JList.java (getPreferredScrollableViewportSize):
2627         Reimplement in terms of visibleRowCount property.
2628         * javax/swing/JMenuButton.java: Match AbstractButton changes.
2629         * javax/swing/JScrollPane.java (createScrollListener): 
2630         Remove tracing chatter.
2631         * javax/swing/JToggleButton.java: Match AbstractButton changes.
2632         * javax/swing/RepaintManager.java (addInvalidComponent): 
2633         Don't invalidate.
2634         * javax/swing/ScrollPaneLayout.java: Various corrections to layout
2635         calculations.
2636         * javax/swing/SwingUtilities.java (layoutCompoundLabel): 
2637         Mimic sun behavior on top left/right positioning.
2638         * javax/swing/ViewportLayout.java (preferredLayoutSize):
2639         Remove mistaken use of preferredScrollableViewportSize here.
2640         (layoutContainer): Use view's preferred size as basis.
2641         * javax/swing/plaf/basic/BasicButtonUI.java:
2642         Set, get, and use textIconGap property.
2643         (paint) Paint text returned from layout (with ellipsis).
2644         * javax/swing/plaf/basic/BasicListUI.java:
2645         Remove tracing chatter, correct various minor calculations.
2646         (getCellBounds): Update layout state before calculating.
2647         * javax/swing/plaf/basic/BasicLookAndFeel.java (Button.Margin):
2648         Use margin default similar to sun's.    
2649         * javax/swing/plaf/basic/BasicScrollBarUI.java (ArrowIcon):
2650         (createIncreaseIcon): Center icon, minimize margins.
2651         (createDecreaseIcon): Likewise.
2652         * javax/swing/plaf/basic/BasicScrollPaneUI.java (installDefaults):
2653         Implement.
2654         (installUI): Call it.
2655         (uninstallDefaults): Implement.
2656         (uninstallUI): Call it.
2657         * javax/swing/plaf/basic/BasicToolBarUI.java (DragWindow):
2658         Call existing Window constructor.
2659         * javax/swing/plaf/basic/BasicViewportUI.java (paint):
2660         Set clip before painting.
2661
2662 2004-07-21  Olga Rodimina <rodimina@redhat.com>
2663         
2664         * javax/swing/JMenuItem.java:
2665         (processMouseEvent): Reimplemented to deal with
2666         mouse drag events.
2667         (createMenuDragMouseEvent): New private helper method.
2668         Creates MenuDragMouseEvent.
2669         * javax/swing/MenuSelectionManager.java
2670         (componentForPoint): Implemented.
2671         (isComponentPartOfCurrentMenu): Made public.
2672         (processMouseEvent): Reimplemented to deal with 
2673         mouse drag events.
2674         (setSelectedPath): Corrected small mistake that caused
2675         path to be set incorrectly.
2676         (getPath): If given component is JMenu then also add this
2677         menu's popup menu to the selected path.
2678         * javax/swing/plaf/basic/BasicMenuItemUI.java:
2679         (getPath): Ditto.
2680         (getPreferredSize): Call getPreferredMenuItemSize().
2681         (getPreferredItemSize): Moved code from getPreferredSize to here.
2682         (installListeners): Install MouseMotionListeners.
2683         (MouseInputHandler): Pass mouse release event to MenuSelectionManager 
2684         if mouse wasn't released in the bounds of this menu item.
2685         (MenuDragMouseHandler): Implemented.
2686         * javax/swing/plaf/basic/BasicMenuUI.java:
2687         (installListeners): Install MouseMotionListener and 
2688         MenuDrageMouseListener.
2689         (MenuDragMouseHandler): Implemented.
2690         * javax/swing/plaf/basic/BasicPopupMenuUI.java:
2691         (uninstallListeners): Implemented.
2692         
2693 2004-07-21  Michael Koch  <konqueror@gmx.de>
2694
2695         * javax/swing/JCheckBox.java: Reformated.
2696         (JCheckBox): Fixed all constructors.
2697         (isBorderPaintedFlat): New method.
2698         (setBorderPaintedFlat): New method.
2699         * javax/swing/JEditorPane.java
2700         (createEditorKitForContentType): Made public.
2701         (scrollToReference): Likewise.
2702         * javax/swing/JTextArea.java
2703         (setLineWrap): Fire property change.
2704         * javax/swing/JToggleButton.java
2705         (JToggleButton): New constructor.
2706         (JToggleButton): Simplified.
2707         * javax/swing/text/AttributeSet.java
2708         (FontAttribute): Renamed from FontCharacterAttribute.
2709         * javax/swing/text/JTextComponent.java
2710         (KeyBinBinding): Added javadoc.
2711         (JTextComponent): Likewise.
2712         (getAccessibleContext): Fixed javadoc.
2713         * javax/swing/text/View.java
2714         (View): Added javadoc.
2715         * javax/swing/text/TabableView.java: New file.
2716         * Makefile.am: Added javax/swing/text/TabableView.java.
2717         * Makefile.in: Regenerated.
2718
2719 2004-07-21  Graydon Hoare  <graydon@redhat.com>
2720
2721         * java/awt/image/BufferedImage.java (getSource): Remove tracing chatter.
2722         * gnu/java/awt/peer/gtk/GtkToolkit.java 
2723         (GtkErrorImage): New helper class.
2724         (bufferedImageOrError): New helper method.
2725         (createImage): Use it.
2726
2727 2004-07-21  David Jee  <djee@redhat.com>
2728
2729         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c
2730         (setCaretPosition): Scroll the text view so the new caret position
2731         is visible on screen.
2732
2733 2004-07-21  David Jee  <djee@redhat.com>
2734
2735         * gnu/java/awt/peer/gtk/GtkContainerPeer.java
2736         (setBounds): Do not validate awtComponent here.
2737         * gnu/java/awt/peer/gtk/GtkScrollPanePeer.java
2738         (getPreferredSize): New method.
2739         * java/awt/ScrollPane.java
2740         (ScrollPane): Set default size to 100x100.
2741         (addNotify): If child is not a Panel, wrap it with a new Panel.
2742         (paramString): Implement.
2743
2744 2004-07-21  Olga Rodimina  <rodimina@redhat.com>
2745
2746         * javax/swing/JMenu.java:
2747         (setSelected): Display popup menu only if this menu 
2748         is showing on the screen.
2749         * javax/swing/JPopupMenu.java:
2750         (processMouseEvent): Added comment.
2751         (processKeyEvent): Likewise.
2752         * javax/swing/MenuSelectionManager.java:
2753         (clearSelectedPath): Only fireStateChanged() after
2754         selected path was changed, not before.
2755         (setSelectedPath): Likewise.
2756         * javax/swing/plaf/basic/BasicMenuItemUI.java:
2757         (paintMenuItem): Corrected position of menu item's
2758         icon.
2759         * javax/swing/plaf/basic/BasicPopupMenuUI.java:
2760         (installUI): Correct setDefaultLightWeightPopupEnabled call.
2761         (popupMenuCanceled): Reimplemented.
2762         (popupMenuWillBecomeVisible): Select first menu item by default 
2763         when displaying free floating popup menus.
2764         (TopWindowListener): Reimplemented.
2765
2766 2004-07-21  Thomas Fitzsimmons  <fitzsim@redhat.com>
2767
2768         * java/awt/Panel.java (dispatchEventImpl): Override to prevent
2769         Panel from being painted twice when it is first shown.
2770
2771 2004-07-21  Olga Rodimina  <rodimina@redhat.com>
2772
2773         * java/awt/Window.java: Reverted changes from my 
2774         previous patch for creating window without an owner.
2775         * javax/swing/SwingUtilities.java: 
2776         (SwingUtilities.OwnerFrame): made static.
2777         (OwnerFrame.setVisible): New method. Overridden with
2778         empty implementation.
2779         (OwnerFrame.isShowing): New method. Ovverridden
2780         to return always true.
2781
2782 2004-07-21  Thomas Fitzsimmons  <fitzsim@redhat.com>
2783
2784         * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
2785         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
2786         (GtkComponentPeer): Remove temporary try/catch block.
2787         (setVisible): Call show and hide.
2788         (show): Make native.
2789         (hide): Likewise.
2790         (getArgs): Don't add "visible" argument.
2791         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
2792         (property_notify_predicate): Return Bool instead of int.
2793         (find_layout): New function.
2794         (connectJObject): Call find_layout.
2795         (connectSignals): Likewise.
2796         (moveLayout): Likewise.
2797         (gtkLayoutSetVisible): Likewise.
2798
2799 2004-07-21  Mark Wielaard  <mark@klomp.org>
2800
2801         * java/awt/event/InvocationEvent.java (dispatch): Synchronize
2802         on notifier object before calling notifyAll().
2803
2804 2004-07-21  Olga Rodimina  <rodimina@redhat.com>
2805
2806         * java/awt/Window.java: Changed constructors to use new
2807         method that is described below. Constructors call this
2808         methods only if newly created window should have an owner.
2809         (setWindowOwner): New method. Implementation for
2810         this method is moved from this(owner,configuration).
2811         * javax/swing/JWindow.java:
2812         (JWindow): Reimplement to use SwingUtilities.ownerFrame
2813         instead of owner.
2814         * javax/swing/SwingUtilities.java:
2815         (ownerFrame): Change type of this field to OwnerFrame.
2816         (getOwnerFrame): Changed to return object of type OwnerFrame.
2817         (SwingUtilities.OwnerFrame): New class. Represents owner
2818         of a Window that is not provided with one.
2819
2820 2004-07-21  Olga Rodimina  <rodimina@redhat.com>
2821
2822         *  javax/swing/AbstractButton.java: 
2823         (configurePropertiesFromAction): Set action command
2824         to button's text by default if action command is not 
2825         explicitely specified.
2826         * javax/swing/JMenu.java: Remove unnecessary listener
2827         and methods relevant to it.
2828         (setSelected): Reimplemented.
2829         (menuSelectionChanged): Moved most part of implementation to
2830         setSelected() and call it instead.
2831         * javax/swing/JMenuItem.java: 
2832         (init): Comment out statement that sets paint_border to false.
2833         (configurePropertiesFromAction): Do not set accelerator
2834         for JMenu.
2835         (menuSelectionChanged): Change selected index in the selection
2836         model of menu item's parent.
2837         * javax/swing/JPopupMenu.java:
2838         (remove): Set constraints.fill field to GridBagConstraints.BOTH
2839         instead of GridBagConstraints.HORIZONTAL.
2840         (insert): Likewise.
2841         (createActionChangeListener): Implemented.
2842         (setVisible): Correct location of HeavyWeightMenu and 
2843         don't firePopupMenuCanceled().
2844         (menuSelectionChanged): Implemented.
2845         (ActionChangeListener): New Listener. Implemented.
2846         * javax/swing/plaf/basic/BasicMenuBarUI.java:
2847         (BasicMenuBarUI.ContainerHandler): Implemented.
2848         * javax/swing/plaf/basic/BasicMenuItemUI.java:
2849         (paintMenuItem): Uncommented out code that paints 
2850         icon, now that icons are working properly.
2851         (PropertyChangeListener): Implemented.
2852         * javax/swing/plaf/basic/BasicPopupMenuUI.java:
2853         Added javadocs.
2854         (topWindowListener): New field.
2855         (Constructor): initialize topWindowListener.
2856         (BasicPopupMenuUI.TopWindowListener): Implemented.      
2857         (BasicPopupMenuUI.PopupMenuHandler): Implemented.
2858         (BasicPopupMenuUI.TopWindowListener): New ComponentListener.
2859         Implemented.
2860
2861 2004-07-21  Michael Koch  <konqueror@gmx.de>
2862
2863         * javax/swing/plaf/basic/BasicButtonUI.java
2864         (paintFocus): Fixed method signature.
2865         (paintButtonPressed): Likewise.
2866         (paintButtonNormal): Likewise.
2867         (paintText): New method.
2868         * javax/swing/plaf/basic/BasicLabelUI.java
2869         (paint): Re-indented.
2870         * javax/swing/plaf/basic/BasicTextUI.java
2871         (installUI): Set parent textComponent to opaque.
2872         * javax/swing/text/DefaultHighlighter.java
2873         (checkPositions): New helper method.
2874         (addHighlight): Throws BadLocationException, check positions.
2875         (changeHighlight): Likewise.
2876         * javax/swing/text/EditorKit.java
2877         (EditorKit): Implements Serializable.
2878         * javax/swing/text/JTextComponent.java
2879         (getUI): Added javadoc.
2880         (setUI): Likewise.
2881         (upadteUI): Added javadoc, don't revalidate and repaint.
2882
2883 2004-07-21  David Jee  <djee@redhat.com>
2884
2885         * java/awt/GridBagLayout.java
2886         (ArrangeGrid): Use PREFERREDSIZE instead of MINSIZE.
2887         * javax/swing/AbstractButton.java
2888         (setText): Reindent.
2889         * javax/swing/RepaintManager.java
2890         (addInvalidComponent): Find the first ancestor that isValidateRoot().
2891
2892 2004-07-21  Michael Koch  <konqueror@gmx.de>
2893
2894         * javax/swing/JFormattedTextField.java
2895         (value): New field.
2896         (JFormattedTextField): Implemented.
2897         (getValue): Likewise.
2898         (setValue): Likewise.
2899         * javax/swing/LookAndFeel.java
2900         (getSupportsWindowDecorations): New method.
2901         * javax/swing/UIDefaults.java:
2902         Use java.beans.PropertyChangeSupport instead of doing all ourself.
2903         (addPropertyChangeListener): Made public.
2904         (addResourceBundle): Likewise.
2905         (removeResourceBundle): Likewise.
2906         (setDefaultLocale): Likewise.
2907         * javax/swing/plaf/basic/BasicRootPaneUI.java
2908         (BasicRootPaneUI): Implements PropertyChangeListener.
2909         (propertyChange): New method.
2910         * javax/swing/plaf/basic/BasicTextUI.java
2911         (BasicHighlighter): New inner class.
2912         (createHighlighter): New method.
2913         * javax/swing/plaf/basic/BasicToolBarUI.java
2914         (DragWindow): Extends java.awt.Window.
2915         * javax/swing/text/JTextComponent.java
2916         (getDocument): Removed debug output.
2917         * javax/swing/plaf/basic/BasicTextFieldUI.java,
2918         javax/swing/text/DefaultHighlighter.java,
2919         javax/swing/text/FieldView.java,
2920         javax/swing/text/PlainView.java: New files.
2921         * Makefile.am: Added new files.
2922         * Makefile.in: Regenerated.
2923
2924 2004-07-21  Michael Koch  <konqueror@gmx.de>
2925
2926         * javax/swing/JEditorPane.java
2927         (createDefaultEditorKit): Use javax.swing.text.DefaultEditorKit.
2928         (createEditorKitForContentType): Likewise.
2929         * javax/swing/text/DefaultEditorKit.java
2930         (serialVersionUID): Added constant field.
2931         (EndOfLineStringPropery): Fixed typo.
2932         (DefaultEditorKit): New constructor.
2933         * javax/swing/text/Segment.java:
2934         Import java.text.CharacterIterator.
2935         * javax/swing/text/CharacterIterator.java,
2936         javax/swing/text/PlainEditorKit.java: Removed.
2937         * Makefile.am: Removed javax/swing/text/CharacterIterator.java and
2938         javax/swing/text/PlainEditorKit.java.
2939         * Makefile.in: Regenerated.
2940
2941 2004-07-21  Michael Koch  <konqueror@gmx.de>
2942
2943         * javax/swing/JButton.java,
2944         javax/swing/text/DefaultEditorKit.java,
2945         javax/swing/text/EditorKit.java,
2946         javax/swing/text/Segment.java,
2947         javax/swing/text/StyledEditorKit.java:
2948         Reformatted.
2949
2950 2004-07-21  Michael Koch  <konqueror@gmx.de>
2951
2952         * javax/swing/ImageIcon.java
2953         (file): Removed.
2954         (description): Renamed from descr.
2955         (ImageIcon): Added missing constructors.
2956         (setParent): Removed.
2957         (setImageObserver): New method.
2958         (getImageObserver): New method.
2959         (paintIcon): Handle observer = null.
2960         * javax/swing/JButton.java
2961         (removeNotify): Fixed javadoc.
2962         (updateUI): Simplified.
2963         * javax/swing/JRootPane.java
2964         (serialVersionUID): New constant field.
2965         * javax/swing/UIManager.java:
2966         Fixed javadocs all over.
2967         (setLookAndFeel): Throws UnsupportedLookAndFeelException.
2968         * javax/swing/text/AbstractDocument.java
2969         (createPosition): Throws BadLocationException.
2970         (getText): Likewise.
2971         (remove): Likewise.
2972         * javax/swing/text/ComponentView.java
2973         (modelToView): Likewise.
2974         * javax/swing/text/DefaultEditorKit.java:
2975         Made all public methods public.
2976         (read): Throws BadLocationException and IOException.
2977         (write): Likewise.
2978         * javax/swing/text/EditorKit.java:
2979         Made all public methods public.
2980         (serialVersionUID): New constant field.
2981         (clone): New method.
2982         (read): Throws BadLocationException and IOException.
2983         (write): Likewise.
2984         * javax/swing/text/Segment.java
2985         (array): Made public.
2986         (count): Likewise.
2987         (offset): Likewise.
2988         (Segment): New constructors.
2989         (clone): Reimplemented.
2990         * javax/swing/text/StyledEditorKit.java
2991         (serialVersionUID): New constant field.
2992
2993 2004-07-21  Graydon Hoare  <graydon@redhat.com>
2994
2995         * java/awt/image/BufferedImage.java 
2996         (getSource): Implement.
2997         * javax/swing/ImageIcon.java 
2998         (ImageIcon): Implement ctor.
2999         * javax/swing/ScrollPaneLayout.java 
3000         (preferredLayoutSize): Be more careful about nulls.
3001
3002 2004-07-21  Michael Koch  <konqueror@gmx.de>
3003
3004         * javax/swing/text/AttributeSet.java
3005         (CharacterAttribute): New interface
3006         (ColorAttribute): Likewise.
3007         (FontCharacterAttribute): Likewise.
3008         (ParagraphAttribute): Likewise.
3009         * javax/swing/text/DefaultCaret.java
3010         (moveCaret): New method.
3011         (positionCaret): Likewise.
3012         (repaint): Made protected.
3013         * javax/swing/text/JTextComponent.java
3014         (KeyBinding): Made it static.
3015         * javax/swing/text/View.java
3016         (getContainer): Honor parent == null.
3017
3018 2004-07-21  Michael Koch  <konqueror@gmx.de>
3019
3020         * javax/swing/text/AbstractDocument.java:
3021         Reformatted.
3022
3023 2004-07-21  Michael Koch  <konqueror@gmx.de>
3024
3025         * javax/swing/plaf/basic/BasicRootPaneUI.java:
3026         Import javax.swing.UIManager explicitely.
3027         * javax/swing/plaf/basic/BasicTabbedPaneUI.java
3028         (ScrollingButton): Made it static.
3029
3030 2004-07-21  Michael Koch  <konqueror@gmx.de>
3031
3032         * javax/swing/UIDefaults.java
3033         (ActiveValue): Made public.
3034         (LazyValue): Likewise.
3035         * javax/swing/plaf/basic/BasicTextUI.java
3036         (RootView): Reintroduced.
3037         (view): Removed.
3038         (rootView): New field.
3039         (installUI): Create document if needed, initialize rootView.
3040         (uninstallUI): Hanle rootView.
3041         (paint): Likewise.
3042         (getRootView): Likewise.
3043         (setView): Likewise.
3044         * javax/swing/text/DefaultCaret.java:
3045         Renamed all "evt" variables to "event".
3046
3047 2004-07-21  Thomas Fitzsimmons  <fitzsim@redhat.com>
3048
3049         * libgcj.spec.in: Add -l-java-util-logging.
3050
3051 2004-07-21  Andreas Tobler  <a.tobler@schweiz.ch>
3052
3053         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
3054         (init_dpi_conversion_factor): Check for int_dpi < 0 in case
3055         gtk-xft-dpi can no calculate the right value.
3056         (dpi_changed_cb): Mark *pspec as unsused.
3057
3058 2004-07-21  David Jee  <djee@redhat.com>
3059
3060         * java/awt/Component.java
3061         (move): Delegate to setBounds().
3062         (resize): Likewise.
3063         (reshape): Fix so it repaints parent and self only when necessary.
3064
3065 2004-07-21  David Jee  <djee@redhat.com>
3066
3067         * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
3068         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3069         (GtkComponentPeer): Revert previous patch from 2004-06-22.
3070         (setVisible): Likewise.
3071         (show): Likewise.
3072         (hide): Likewise.
3073         (getArgs): Likewise.
3074         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
3075         (property_notify_predicate): Likewise.
3076         (find_layout): Likewise.
3077         (connectJObject): Likewise.
3078         (connectSignals): Likewise.
3079         (moveLayout): Likewise.
3080         (gtkLayoutSetVisible): Likewise.
3081
3082 2004-07-21  Graydon Hoare  <graydon@redhat.com>
3083
3084         * Makefile.am
3085         (jv_convert_LDADD):
3086         (gij_LDADD):
3087         (rmic_LDADD):
3088         (rmiregistry_LDADD): Add lib-java-util-logging.la
3089         * Makefile.in: Regenerate.
3090
3091 2004-07-21  Michael Koch  <konqueror@gmx.de>
3092
3093         * javax/swing/text/AbstractDocument.java
3094         (replace): Dont use protected method of java.util.Vector directly.
3095
3096 2004-07-21  Michael Koch  <konqueror@gmx.de>
3097
3098         * javax/swing/plaf/basic/BasicTextUI.java
3099         (installUI): Call specialized install methods.
3100         (installDefaults): New method.
3101         (installListeners): Likewise.
3102         (installKeyboardActions): Likewise.
3103         (uninstallUI): Likewise.
3104         (uninstallDefaults): New method.
3105         (uninstallListeners): Likewise.
3106         (uninstallKeyboardActions): Likewise.
3107         (getPropertyPrefix): New abstract method.
3108         (paint): Made final, just call paintSafely().
3109         (paintSavely): New method.
3110         (paintBackground): Likewise.
3111         (getVisibleEditorRect): Likewise.
3112         * javax/swing/text/LayeredHighlighter.java,
3113         javax/swing/text/TabExpander.java: New files.
3114         * Makefile.am: Added javax/swing/text/LayeredHighlighter.java
3115         and javax/swing/text/TabExpander.java.
3116         * Makefile.in: Regenerated.
3117
3118 2004-07-21  Michael Koch  <konqueror@gmx.de>
3119
3120         * javax/swing/plaf/basic/BasicTextUI.java
3121         (BasicTextUI): Made abstract.
3122         (BasicCaret): New inner class.
3123         (view): Don't explicitely initialize with "null".
3124         (textComponent): New field.
3125         (textColor): Removed.
3126         (disabledTextColor): Removed.
3127         (normalBackgroundColor): Removed.
3128         (RootView): Removed commented out inner class.
3129         (createUI): Removed.
3130         (createCaret): New method.
3131         (getComponent): Likewise.
3132         (installUI): Initialize textComponent only.
3133         (getPreferredSize): Use installed JTextComponent.
3134         (setView): New method.
3135         (create): Likewise.
3136         * javax/swing/text/JTextComponent.java
3137         (highlighter): New field.
3138         (caretColor): Likewise.
3139         (disabledTextColor): Likewise.
3140         (seletedTextColor): Likewise.
3141         (selectionColor): Likewise.
3142         (setUI): New method.
3143         (getCaretColor): Likewise.
3144         (setCaretColor): Likewise.
3145         (getDisabledColor): Likewise.
3146         (setDisabledColor): Likewise.
3147         (getSelectedTextColor): Likewise.
3148         (setSelectedTextColor): Likewise.
3149         (getSelectionColor): Likewise.
3150         (setSelectionColor): Likewise.
3151         (getHighlighter): Likewise.
3152         (setHighlighter): Likewise.
3153         (replaceSelection): Likewise.
3154
3155 2004-07-21  Michael Koch  <konqueror@gmx.de>
3156
3157         * javax/swing/plaf/basic/BasicScrollPaneUI.java
3158         (BasicScrollPaneUI): Implements ScrollPaneConstants.
3159         * javax/swing/plaf/basic/BasicToolBarUI.java
3160         (BasicToolBarUI): Implements SwingConstants.
3161
3162 2004-07-21  Michael Koch  <konqueror@gmx.de>
3163
3164         * javax/swing/JPopupMenu.java: Removed CVS tags.
3165         * javax/swing/UIDefaults.java: Reformatted.
3166         * javax/swing/plaf/basic/BasicRootPaneUI.java:
3167         Explicitely import used classes.
3168
3169 2004-07-21  Thomas Fitzsimmons  <fitzsim@redhat.com>
3170
3171         * gnu/java/awt/peer/gtk/GtkComponentPeer.java,
3172         jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
3173         (GtkComponentPeer): Remove temporary try/catch block.
3174         (setVisible): Call show and hide.
3175         (show): Make native.
3176         (hide): Likewise.
3177         (getArgs): Don't add "visible" argument.
3178         * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
3179         (property_notify_predicate): Return Bool instead of int.
3180         (find_layout): New function.
3181         (connectJObject): Call find_layout.
3182         (connectSignals): Likewise.
3183         (moveLayout): Likewise.
3184         (gtkLayoutSetVisible): Likewise.
3185
3186 2004-07-21  Olga Rodimina  <rodimina@redhat.com>
3187
3188         * javax/swing/AbstractButton.java:
3189         (setDisplayedMnemonicIndex): Check if button
3190         text is not null before checking its length.
3191         * javax/swing/JMenuItem.java:
3192         (processMouseEvent): Disarm menu item if mouse has
3193         exited it.
3194         * javax/swing/plaf/basic/BasicMenuUI.java:
3195         (MouseInputHandler.mouseEntered): Do not raise
3196         popup menu if this menu is already selected.
3197         (MouseInputHandler.mousePressed): Do not fire 
3198         MenuEvents.
3199         (MenuHandler): Implemented.     
3200
3201 2004-07-21  Olga Rodimina  <rodimina@redhat.com>
3202
3203         * javax/swing/JCheckBoxMenuItem.java: Added Javadoc.
3204         (getSelectedObjects): Implemented.
3205         * javax/swing/JRadioButtonMenuItem.java: Added Javadoc.
3206         * javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java: 
3207         Added javadoc for few methods.
3208         (processMouseEvent): Made public.
3209         * javax/swing/plaf/basic/BasicRadioButtonMenuItemUI.java
3210         (processMouseEvent): Likewise.
3211
3212 2004-07-21  Olga Rodimina  <rodimina@redhat.com>
3213
3214         * javax/swing/AbstractButton.java:
3215         (init): Set display mnemonic index to -1.
3216         (setMnemonic(char)): Use setMnemonic(int).
3217         (setMnemonic(int)): Set display mnemonic index.
3218         (getDisplayedMnemonicIndex): Change method signature
3219         by removing 'index' parameter.
3220         * javax/swing/plaf/basic/BasicLookAndFeel.java:
3221         Added default for Menu.selectionBackground.     
3222         * javax/swing/plaf/basic/BasicMenuItemUI.java:
3223         (paintMenuItem): Change background color of the selected
3224         menu item.
3225         (paintText): Paint differently when menu item is disabled.
3226         Also paint mnemonic if it appears in the menu item's label.
3227         (paintAccelerator): Paint accelerator differently
3228         if menu item is disabled.
3229         * javax/swing/plaf/basic/BasicMenuUI.java:
3230         (installDefaults): Install defaults for 
3231         selectionForeground and selectionBackground.
3232         (uninstallDefaults): Uninstall defauls for 
3233         selectionForeground and selectionBackground.
3234
3235 2004-07-21  Michael Koch  <konqueror@gmx.de>
3236
3237         * javax/swing/text/AbstractDocument.java
3238         (BranchElement): Implemented.
3239         (LeafElement): Implemented.
3240         * javax/swing/text/DefaultCaret.java:
3241         Import used classes.
3242         (serialVersionUID): New constant.
3243         * javax/swing/text/JTextComponent.java
3244         (AccessibleJTextComponent): Removed dead declaration.
3245         (caretPos): Removed.
3246         (setCaret): New method.
3247         * javax/swing/text/PlainDocument.java
3248         (rootElement): New field.
3249         (PlainDocument): Initialize rootElement.
3250         (createDefaultRoot): New method.
3251         (getDefaultRootElement): Implemented.
3252         * javax/swing/text/View.java: Reformatted.
3253         * javax/swing/text/ViewFactory.java
3254         (create): Added javadoc.
3255
3256 2004-07-21  Michael Koch  <konqueror@gmx.de>
3257
3258         * javax/swing/ToolTipManager.java: Reformatted.
3259
3260 2004-07-21  Rodimina Olga  <rodimina@redhat.com>
3261
3262         * javax/swing/AbstractButton.java
3263         (changeEvent): New field.
3264         (fireItemStateChanged): Change source of the event
3265         to 'this' before firing it to button listeners.
3266         (fireActionPerformed): Likewise.
3267         (fireStateChanged): Likewise.
3268         (createActionListener): Do not set source 
3269         of the event to AbstractButton.                                  
3270         * javax/swing/plaf/basic/BasicMenuBarUI.java:
3271         (ContainerHandler.componentAdded): Removed 
3272         print out statement.
3273         (ContainerHandler.componentRemoved): Likewise.
3274
3275 2004-07-21  Michael Koch  <konqueror@gmx.de>
3276
3277         * javax/swing/text/Highlighter.java: New file.
3278         * Makefile.am: Added javax/swing/text/Highlighter.java.
3279         * Makefile.in: Regenerated.
3280
3281 2004-07-21  Michael Koch  <konqueror@gmx.de>
3282
3283         * javax/swing/ToolTipManager.java
3284         (stillInsideTimerAction): Fixed constructor arguments.
3285         (outsideTimerAction): Likewise.
3286         (insideTimerAction): Likewise.
3287
3288 2004-07-21  Michael Koch  <konqueror@gmx.de>
3289
3290         * javax/swing/JButton.java: Reformatted.
3291         * javax/swing/JFormattedTextField.java
3292         (getUIClassID): Implemented.
3293         * javax/swing/JRootPane.java
3294         (serialVersionUID): New constant.
3295         * javax/swing/JTextField.java
3296         (align): New field.
3297         (JTextField): Simplified.
3298         (getUIClassID): New method.
3299         (getActionListeners): Added @since tag.
3300         (setColumns): Invalidate layout and repaint.
3301         (getHorizontalAlignment): New method.
3302         (setHorizontalAlignment): New method.
3303         (selectAll): Removed.
3304         * javax/swing/SwingUtilities.java
3305         (getAncestorOfClass): Removed redundant @see tag.
3306         (isLeftMouseButton): Fixed implementation.
3307         (isMiddleMouseButton): Likewise.
3308         (isRightMouseButton): Likewise.
3309         * javax/swing/text/AbstractDocument.java
3310         (AttributeContext.addAttribute): New method.
3311         (AttributeContext.addAttributes): New method.
3312         (AttributeContext.getEmptySet): New method.
3313         (AttributeContext.reclaim): New method.
3314         (AttributeContext.removeAttribute): New method.
3315         (AttributeContext.removeAttributes): New method.
3316         * javax/swing/text/Document.java
3317         (createPosition): Throws BadLocationException.
3318         (getText): Likewise.
3319         (remove): Likewise.
3320         * javax/swing/text/JTextComponent.java
3321         (getText): Return null if no document is set. Catch
3322         BadLocationException.
3323         (getUI): Return ui.
3324         (updateUI): Simplified.
3325
3326 2004-07-21  Michael Koch  <konqueror@gmx.de>
3327
3328         * javax/swing/JButton.java
3329         (removeNotify): Fixed javadoc.
3330         (updateUI): Simplified.
3331
3332 2004-07-21  David Jee  <djee@redhat.com>
3333
3334         * gnu/java/awt/image/ImageDecoder.java
3335         (startProduction): Only add consumer if it's not added yet.
3336         * gnu/java/awt/peer/gtk/GdkPixbufDecoder.java
3337         (GdkPixbufDecoder): Don't call initState() here.
3338         (produce): Call initState() here, to ensure area_prepared and
3339         area_updated signals are properly connected.
3340         * gnu/java/awt/peer/gtk/GtkImage.java
3341         (setColorModel): Use equals() to compare ColorModel objects.
3342         (setPixels): Likewise.
3343         * java/awt/image/ColorModel.java
3344         (equals): Fix typo. Use Arrays.equals() to compare int arrays.
3345         * java/awt/image/RGBImageFilter.java
3346         (setColorModel): Set consumer's color model.
3347         (setPixels): Use equals() to compare ColorModel objects.
3348
3349 2004-07-21  Bryce McKinlay  <mckinlay@redhat.com>
3350
3351         * java/net/URLConnection.java (position): New field.
3352         (dateFormat1, dateFormat2, dateFormat3): Removed.
3353         (dateFormats): New field.
3354         (getHeaderFieldDate): Use new dateFormats array. Re-use parsePosition
3355         each time instead of re-allocating.
3356         (initializeDateFormats): Initialize 'dateFormats'.
3357
3358 2004-07-20  Bryce McKinlay  <mckinlay@redhat.com>
3359
3360         PR libgcj/16591
3361         * prims.cc (_Jv_RunMain): Don't call _Jv_SetArgs if DISABLE_MAIN_ARGS
3362         is defined.
3363
3364 2004-07-20  Bryce McKinlay  <mckinlay@redhat.com>
3365
3366         * java/net/Socket.java (getImpl): Now private. Remove comment.
3367
3368 2004-07-20  Bryce McKinlay  <mckinlay@redhat.com>
3369
3370         * java/io/BufferedWriter.java (BufferedWriter): Use existing lock
3371         of chained Writer when calling super-constructor.
3372         * java/io/FilterWriter.java (FilterWriter): Likewise.
3373         * java/io/PrintWriter.java (PrintWriter): Likewise.
3374
3375 2004-07-19  Bryce McKinlay  <mckinlay@redhat.com>
3376
3377         * prims.cc (process_gcj_properties): Don't increment i within LHS
3378         of assignment.
3379
3380 2004-07-19  Per Bothner  <per@bothner.com>
3381
3382         Print -verbose:message on "loading", not initialization.
3383         * java/lang/Class.h (JV_STATE_LOADED, JV_STATE_COMPILED):  Swap order.
3384         * defineclass.cc (_Jv_ClassReader::parse):  Print message if
3385         gcj::verbose_class_flag.
3386         * java/lang/natClass.cc (initializeClass):  Don't print message here.
3387         * java/lang/natClassLoader.cc (_Jv_WaitForState):  If state was
3388         _JV_STATE_COMPILED, set to JV_STATE_LOADED and may print message.
3389         (_Jv_PrepareCompiledClass):  Likewise.
3390
3391 2004-07-18  Matthias Klose  <doko@debian.org>
3392
3393         * configure.in: Substitute target_noncanonical.
3394         * configure: Regenerate
3395
3396 2004-07-17  Michael Koch  <konqueror@gmx.de>
3397
3398         * java/lang/String.java: Fixed javadocs all over.
3399
3400 2004-07-17  Mark Wielaard  <mark@klomp.org>
3401
3402         * gnu/java/nio/channels/FileChannelImpl.java (truncate): Only truncate
3403         when size is smaller.
3404         * java/io/RandomAccessFile.java (setLength): Use truncate for
3405         shrinking the file and seek plus write for expanding the file.
3406
3407 2004-07-17  Michael Koch  <konqueror@gmx.de>
3408
3409         * gnu/java/nio/channels/natFileChannelPosix.cc
3410         (implTruncate): Always save current position. Only reposition file
3411         pointer to where we started if not beyond new lenght. Reposition file
3412         pointer to file length if it points beyond the end of file.
3413
3414 2004-07-17  Mark Wielaard  <mark@klomp.org>
3415
3416         * javax/swing/Box.java: Put FIXME comment above class declaration.
3417         * javax/swing/JButton.java: Remove illegal L&F HTML from comments.
3418         * javax/swing/JCheckBox.java: Likewise.
3419         * javax/swing/JDialog.java: Likewise.
3420         * javax/swing/JRadioButton.java: Likewise.
3421         * javax/swing/JToggleButton.java: Likewise.
3422         * javax/swing/UIManager.java: Likewise.
3423         * javax/swing/border/TitledBorder.java: Likewise.
3424         * javax/swing/plaf/basic/BasicLabelUI.java: Likewise.
3425         * javax/swing/plaf/basic/BasicLookAndFeel.java: Likewise.
3426         * javax/swing/plaf/basic/BasicPopupMenuSeparatorUI.java: Likewise.
3427         * javax/swing/plaf/basic/BasicProgressBarUI.java: Likewise.
3428         * javax/swing/plaf/basic/BasicScrollBarUI.java: Likewise.
3429         * javax/swing/plaf/basic/BasicSeparatorUI.java: Likewise.
3430         * javax/swing/text/JTextComponent.java: Likewise.
3431
3432 2004-07-17  Jeroen Frijters  <jeroen@frijters.net>
3433
3434         * java/net/DatagramPacket.java (setAddress): Removed check for
3435         null address.
3436
3437 2004-07-17  Michael Koch  <konqueror@gmx.de>
3438