• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Swing incorrect behaviour from JRE5 to JRE6

 
Kanhaiya Singh
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This issue is very critical for us. Any suggestion to solve this issue.
 
Maneesh Godbole
Saloon Keeper
Posts: 11021
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15216
36
Android IntelliJ IDE Java Scala Spring
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic