Phillip J. Birmingham wrote:
>
> Hello, Mr. Pilgrim,
>
> I've been trying to get Xsql to work on my Red Hat Linux 5.1
> machine under JDK 1.1.5 with JFC 1.1. I get the following error
> message when I try to log in, and I was wondering if you could tell me
> what the problem is:
>
> Xsql : Xenonsoft's interactive java based SQL Editor using Swing/JFC (
>V2.1.7 )
> Written by Peter A. Pilgrim, XeNoNSoFT, South London, England [c] 1998
>
> ================================================================================
> Exception occurred during event dispatching:
> java.lang.NoSuchMethodError: com.sun.java.swing.JPasswordField: method
>getPassword()[C not found
> at xenon.xsql.editor.XsqlLoginDialog.connectDB(XsqlLoginDialog.java:638)
> at
>xenon.xsql.editor.XsqlLoginDialog.actionPerformed(XsqlLoginDialog.java:797)
> at
>com.sun.java.swing.AbstractButton.fireActionPerformed(AbstractButton.java:889)
> at
>com.sun.java.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:924)
> at
>com.sun.java.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:338)
> at
>com.sun.java.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:230)
> at
>com.sun.java.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:191)
> at java.awt.Component.processMouseEvent(Component.java:2284)
> at java.awt.Component.processEvent(Component.java:2129)
> at java.awt.Container.processEvent(Container.java:894)
> at java.awt.Component.dispatchEventImpl(Component.java:1764)
> at java.awt.Container.dispatchEventImpl(Container.java:939)
> at java.awt.Component.dispatchEvent(Component.java:1704)
> at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:1548)
> at java.awt.LightweightDispatcher.processMouseEvent(Container.java:1457)
> at java.awt.LightweightDispatcher.dispatchEvent(Container.java:1392)
> at java.awt.Container.dispatchEventImpl(Container.java:926)
> at java.awt.Window.dispatchEventImpl(Window.java:443)
> at java.awt.Component.dispatchEvent(Component.java:1704)
> at java.awt.EventDispatchThread.run(EventDispatchThread.java:63)
>
> Javap reports that the class file does contain a reference to
> getPassword()[C, which seems to be causing the error. Could this be a
> typographical error that somehow slipped past the compiler?
>
> Please let me know if you need more information or any manner of
> assistance. Your program looks rather impressive so far, and I'd like
> to see more of it.
>
> Regards,
> Phillip J. Birmingham
Well JPassword has a method called getPassword() officially in the
Swing-1.1beta that I have. It may that Swing 1.0.{1,2,3} does not
properly support this method properly. Yes I had a deprecation if I remember
You may need to get the latest JFC zip from Sun. Oops!
Are sure that CLASSPATH does not refers to another older JFC.
Have you got also the latest JDK 1.1.6v3 or above, but this may not help
you.
--
Del Segno Al Coda
Pete
Powered By
__
/ /= __ ___ __ __ __ __ __
/ /= / // |/ // // / // /
/ /__ / // /| / // _/ / > <==
/____/__//_/=|__//____/__/__/= Slackware 3.5
==== == == === ==== == ==
"... ,because Unix is the best!"
Peter Pilgrim <mailto:[EMAIL PROTECTED]>