Hmmm, text box issues in oXygen v5 with J2SE 5.0

Having trouble installing Oxygen? Got a bug to report? Post it all here.
dnedrow
Posts: 60
Joined: Wed Jan 28, 2004 10:51 pm

Hmmm, text box issues in oXygen v5 with J2SE 5.0

Post by dnedrow »

I was attempting to perform a search and replace in oXygen, when I found that nothing I type in the entry field for the search string appeared. However, when I clicked in the "replace" field, the text I had previously typed magically appeared. After checking several dialogs, I've found that I am unable to enter text in any dialog text fields.

I don't believe I have this problem on my Mac, but I'll test after bit.

Here are the details:
  • Fedora Core 3
  • Linux penguin 2.6.9-1.678_FC3smp #1 SMP Mon Nov 15 18:40:47 EST 2004 i686 athlon i386 GNU/Linux
  • oXygen v5.0
  • J2SE 5.0
    java version "1.5.0"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-b64)
    Java HotSpot(TM) Client VM (build 1.5.0-b64, mixed mode, sharing)
-David
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Post by george »

Hi David,

Thanks, we will look into this.
Please use Java 1.4.2 on Linux, that should work without problems.

Best Regards,
George
dnedrow
Posts: 60
Joined: Wed Jan 28, 2004 10:51 pm

Confirm: 5.0 oXygen OK with JDK 1.4.2, not with JDK 5.0

Post by dnedrow »

George,

Thanks for the info. I switched Oxygen 5 to use the 1.4.2 version of the JDK and it's working fine.

Switched back to JDK 5.0 and the text field problems come back, so it's definitely something new with JDK 5.

I'm fine for now. Thanks again.

-David
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Post by george »

Hi David,

FYI we managed to change the implementation so that it works ok also with J2SE 5.0 on Linux. Thanks for reporting it. The fix will be available in the next release.

Best Regards,
George
dnedrow
Posts: 60
Joined: Wed Jan 28, 2004 10:51 pm

Post by dnedrow »

Great.

Thanks.

-David
Aronek
Posts: 2
Joined: Thu Dec 30, 2004 11:09 pm

Post by Aronek »

Hi George,

If you wouldn't mind, what turned out to be the 1.5 problem? I am also seeing the text input issue with another app (the Java Console for Sun Management Center) ... i.e. you don't see what you typed until you click on a field and it gets pasted in.

If it's a flag I can pass 1.5 on the CLI as a workaround it'd be great. If its a coding issue I can probably get through to the developers to report it.

Any details would help alot.

Thanks!

Aronek
Aronek
Posts: 2
Joined: Thu Dec 30, 2004 11:09 pm

Post by Aronek »

Oh yeah, this is using 1.5.0.1 from Sun on a Linux x86 32bit box. It seemed to work correctly with 1.5.0 on Windows.. not sure why that is.

Regards,

Aronek
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Post by george »

Hi,

We had something like

Code: Select all


     public void focusGained(FocusEvent e) {
toFindComboBox.getEditor().selectAll();
}
and this cased the text to became invisible.

The workaround solution was to replace it with something like:

Code: Select all


     public void focusGained(FocusEvent e) {
if (toFindComboBox.getSelectedItem() != null) {
JTextComponent editor = (JTextComponent)toFindComboBox.getEditor().getEditorComponent();
editor.setCaretPosition(0);
editor.moveCaretPosition(doc.getLength());
}
}
Hope that helps,
George
pdrivas
Posts: 2
Joined: Wed Jan 12, 2005 11:24 pm

Odd UI problems

Post by pdrivas »

If it's any help, we also see this focus problem on Windows XP SP2 with Java 1.5.0.10. Any idea when we could pick up the next release with this fix?
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Post by george »

We made a beta version available on the oxygen-user list, please try that and let us know if you have problems with it.

http://www.oxygenxml.com/pipermail/oxyg ... 00345.html

Best Regards,
George
dnedrow
Posts: 60
Joined: Wed Jan 28, 2004 10:51 pm

Post by dnedrow »

george wrote:We made a beta version available on the oxygen-user list, please try that and let us know if you have problems with it.

http://www.oxygenxml.com/pipermail/oxyg ... 00345.html

Best Regards,
George
Looks like that fixes the text field problem I was having with Sun's JDK 5 under Linux.


-David
pdrivas
Posts: 2
Joined: Wed Jan 12, 2005 11:24 pm

Beta 5.1

Post by pdrivas »

Thanks. I installed the beta and have been using it for a while without a problem.
Post Reply