aspose file tools*
The moose likes Linux / UNIX and the fly likes Swing incorrect behaviour from JRE5 to JRE6 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "Swing incorrect behaviour from JRE5 to JRE6" Watch "Swing incorrect behaviour from JRE5 to JRE6" New topic
Author

Swing incorrect behaviour from JRE5 to JRE6

Kanhaiya Singh
Greenhorn

Joined: Mar 16, 2006
Posts: 4
When I am running my application with JRE5 it is working fine. While working with JRE6 I found below mentioned issue.

I am generating jframe. After that clicking on text tool of my toolbar I am opening a JTextPane (In JInternalFrame) on the frame with Linux xvkbd keyboard. Using keyboard focus button I should be able to give focus to JTextPane and add text when click on Linux xvkbd keyboard.

When running with JRE5 I am able to give focus to JTextPane and enter text. But in case of JRE6 I am not able to give focus to JTextPane while clicking on this, the focus is going to parent (blank buffered image page) not to JTextPane. I am pasting a sample code below.

I am adding the code below. This code is using xvkbd keyboard of Ubuntu/Linux keyboard. In case you don't see the xvkbd keyboard please execute this command in terminal.

apt-get install xvkbd (This command will install the xvkbd keyboard on your system).

After running the below code please click on the focus key of xvkbd keyboard and click on the JTextPane added on JIF. Try to enter text in JTextPane from xvkbd keyboard, on JRE5 I am able to enter text in the JTextPane but on the JRE6 could not. Please suggest something on this problem.



Regards,
Kanhaiya Singh
Greenhorn

Joined: Mar 16, 2006
Posts: 4
This issue is very critical for us. Any suggestion to solve this issue.
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10355
    
    8

We have a forum dedicated for Linux. I will move this thread there for you. Maybe someone will be able to help you out there.


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4541
    
    5

It's everywhere!

http://forums.sun.com/thread.jspa?threadID=5397655
http://www.java-forums.org/awt-swing/20031-not-able-add-text-using-xvkbd-keyboard-linux-ubuntu-jre6.html
http://www.linuxforums.org/forum/linux-programming-scripting/150233-not-able-add-text-using-xvkbd-keyboard-linux-ubuntu-jre6.html
http://forums.java.net/jive/thread.jspa?threadID=64476
http://www.codeguru.com/forum/showthread.php?p=1872644
http://www.jguru.com/forums/view.jsp?EID=1517659
http://www.javaprogrammingforums.com/awt-swing/670-swing-incorrect-behaviour-jre5-jre6.html

Then again, maybe I missed some.


luck, db
There are no new questions, but there may be new answers.
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14144
    
  18

Be Forthright When Cross Posting To Other Sites


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Swing incorrect behaviour from JRE5 to JRE6