JDK-5100939 : JNLP Descriptor window Horizontal and Vertical scrollbar is not working as expec
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 6
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2004-09-13
  • Updated: 2004-09-20
  • Resolved: 2004-09-20
Related Reports
Duplicate :  
Relates :  
Description
Bug Description:
----------------
In JNLP Descriptor windows horizontal and vertical scroll bar is not working as expected.

JDK-Info:
---------
java version "1.6.0-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.6.0-beta-b02)
Java HotSpot(TM) Client VM (build 1.6.0-beta-b02, mixed mode)

This bug is reproducible in tiger also.

Steps to reproduce:
-------------------
1. Install jre1.6.0 b02 in testing system.
2. Import notepad.jnlp(java -import  http://java.sun.com/products/javawebstart/apps/notepad.jnlp)
3. Launch Java Application Cache Viewer command prompt (javaws)
4. Select the notepad.jnlp application listed in the Cache Viewer
5. Click "Show JNLP Descriptor" menu item from "Application" menu using keyboard navigation.

Try to move the horizontal and vertical scroll bar using Arrow key's in key board the scroll bar will not move immediate by clicking the arrow keys.



###@###.### 2004-09-13

Comments
EVALUATION This is the same behavior as the JEditorPane demo in SwingSet2. I don't think this is a bug, but seems to be the default behavior of JScrollPane, will leave up to swing to decide. ###@###.### 2004-09-13 Name: sh120115 Date: 09/16/2004 Disabled text components currently don't show a visible caret (although there are thoughts of changing this). However, the caret is still present. When using the arrow keys with focus on such a component, they manipulate the caret within the component. Only when the caret moves out of the visible range does the component scroll. We'll need to think about how to deal with this properly. One idea is just to make the caret visible, and then this behavior will make more sense. See the work-around section for how to deal with this. Deployment may wish to use this in their application. ###@###.### 2004-09-16 ====================================================================== There is a bug 4512626 Non-editable JTextArea provides no visual indication of keyboard focus I suggest to close this one as dup ###@###.### 2004-09-20
20-09-2004

WORK AROUND You can disable the caret actions, thereby letting the JScrollPane's keybindings do their job: ActionMap am = SwingUtilities.getUIActionMap(ep); am.put(DefaultEditorKit.upAction, null); am.put(DefaultEditorKit.downAction, null); ###@###.### 2004-09-16
16-09-2004