-
Bug
-
Resolution: Fixed
-
P3
-
5.0u4
-
b53
-
x86
-
linux, solaris_2.5.1
Removed incorrect data
Removed incorrect data
Removed incorrect data
Removed incorrect data
OPERATING SYSTEM(S)
SLES9 IA32
FULL JDK VERSION(S):
java version "1.5.0_04"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)
Java HotSpot(TM) Server VM (build 1.5.0_04-b05, mixed mode)
DESCRIPTION:
On XAWT, duplicate list item is displayed after scrolling vertical bar.
On Motif AWT, it does not have this problem.
Test instruction is as follows:
1. Compile and run attached testcase Listtest.java
2. Double click top item.
(This message is displayed right side of "Label of Selected Item")
3. Double click bottom item. (Don't touch scrollbar)
4. Move down vertical scrollbar, then two selected items are display
and these items have same message <== PROBLEM
5. Double click upper one, message is changed
==============================================
import java.awt.*;
import java.awt.event.*;
class Listtest extends Frame implements ActionListener {
GridBagLayout gbl;
GridBagConstraints gbc;
Label label1, label2, lbl_selected;
List list;
Button Quit;
Listtest(String name, String[] list_strings){
super(name);
setSize(300, 200);
gbl = new GridBagLayout();
setLayout(gbl);
gbc = new GridBagConstraints();
gbc.weightx = 100;
gbc.weighty = 100;
list = new List(list_strings.length - 2, false);
for(int i=0 ; i<list_strings.length ; i++){
list.add(list_strings[i]);
}
addgb(list, gbl, gbc, 1, 2, 2, 1);
list.addActionListener(this);
add(list);
lbl_selected = new Label("", Label.CENTER);
addgb(lbl_selected, gbl, gbc, 2, 1, 1, 1);
add(lbl_selected);
label1 = new Label("List test");
label2 = new Label("Label of Selected Item : ");
addgb(label1, gbl, gbc, 0, 0, 3, 1);
add(label1);
addgb(label2, gbl, gbc, 0, 1, 2, 1);
add(label2);
Quit = new Button("Quit");
addgb(Quit, gbl, gbc, 0, 3, 3, 1);
Quit.addActionListener(this);
add(Quit);
pack();
}
public void actionPerformed(ActionEvent e){
String cmd = e.getActionCommand();
if(cmd == "Quit"){
System.exit(0);
}else{
lbl_selected.setText(list.getSelectedItem());
pack();
}
}
protected void addgb(Component c, GridBagLayout gbl,
GridBagConstraints gbc, int x, int y, int w, int h)
{
gbc.gridx = x;
gbc.gridy = y;
gbc.gridwidth = w;
gbc.gridheight = h;
gbl.setConstraints(c, gbc);
return;
}
public static void main(String[] args) {
String[] msg = {
"internal error, unknown message",
"Bad installation. No JRE found in configuration file",
"Bad installation. Error invoking Java VM (execv)",
"Bad installation. Error invoking Java VM (SysExec) ",
"Splash: sysCreateListenerSocket failed",
"Splash: accept failed",
"Splash: recv failed",
"Splash: didn't revive a valid port",
"Read past end of buffer",
"XML Parsing error: wrong kind of token found",
"Java Web Start splash screen process exiting .....\n",
"tLast WinSock Error: ",
"Couldn't load winsock.dll",
"WSAStartup failed",
"Bad installation: JAVAWS_HOME not set ",
"Splash: couldn't load splash screen image",
"Splash: server socket failed",
"Splash: unrecognized command",
"Splash: port not specified",
"Splash: send failed",
"Splash: couldn't create shutdown timer",
"Splash: Can't open X11 display",
"Splash: X11 connection failed"
};
Listtest listtest = new Listtest("List Test", msg);
listtest.setVisible(true);
}
}
Removed incorrect data
Removed incorrect data
Removed incorrect data
OPERATING SYSTEM(S)
SLES9 IA32
FULL JDK VERSION(S):
java version "1.5.0_04"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)
Java HotSpot(TM) Server VM (build 1.5.0_04-b05, mixed mode)
DESCRIPTION:
On XAWT, duplicate list item is displayed after scrolling vertical bar.
On Motif AWT, it does not have this problem.
Test instruction is as follows:
1. Compile and run attached testcase Listtest.java
2. Double click top item.
(This message is displayed right side of "Label of Selected Item")
3. Double click bottom item. (Don't touch scrollbar)
4. Move down vertical scrollbar, then two selected items are display
and these items have same message <== PROBLEM
5. Double click upper one, message is changed
==============================================
import java.awt.*;
import java.awt.event.*;
class Listtest extends Frame implements ActionListener {
GridBagLayout gbl;
GridBagConstraints gbc;
Label label1, label2, lbl_selected;
List list;
Button Quit;
Listtest(String name, String[] list_strings){
super(name);
setSize(300, 200);
gbl = new GridBagLayout();
setLayout(gbl);
gbc = new GridBagConstraints();
gbc.weightx = 100;
gbc.weighty = 100;
list = new List(list_strings.length - 2, false);
for(int i=0 ; i<list_strings.length ; i++){
list.add(list_strings[i]);
}
addgb(list, gbl, gbc, 1, 2, 2, 1);
list.addActionListener(this);
add(list);
lbl_selected = new Label("", Label.CENTER);
addgb(lbl_selected, gbl, gbc, 2, 1, 1, 1);
add(lbl_selected);
label1 = new Label("List test");
label2 = new Label("Label of Selected Item : ");
addgb(label1, gbl, gbc, 0, 0, 3, 1);
add(label1);
addgb(label2, gbl, gbc, 0, 1, 2, 1);
add(label2);
Quit = new Button("Quit");
addgb(Quit, gbl, gbc, 0, 3, 3, 1);
Quit.addActionListener(this);
add(Quit);
pack();
}
public void actionPerformed(ActionEvent e){
String cmd = e.getActionCommand();
if(cmd == "Quit"){
System.exit(0);
}else{
lbl_selected.setText(list.getSelectedItem());
pack();
}
}
protected void addgb(Component c, GridBagLayout gbl,
GridBagConstraints gbc, int x, int y, int w, int h)
{
gbc.gridx = x;
gbc.gridy = y;
gbc.gridwidth = w;
gbc.gridheight = h;
gbl.setConstraints(c, gbc);
return;
}
public static void main(String[] args) {
String[] msg = {
"internal error, unknown message",
"Bad installation. No JRE found in configuration file",
"Bad installation. Error invoking Java VM (execv)",
"Bad installation. Error invoking Java VM (SysExec) ",
"Splash: sysCreateListenerSocket failed",
"Splash: accept failed",
"Splash: recv failed",
"Splash: didn't revive a valid port",
"Read past end of buffer",
"XML Parsing error: wrong kind of token found",
"Java Web Start splash screen process exiting .....\n",
"tLast WinSock Error: ",
"Couldn't load winsock.dll",
"WSAStartup failed",
"Bad installation: JAVAWS_HOME not set ",
"Splash: couldn't load splash screen image",
"Splash: server socket failed",
"Splash: unrecognized command",
"Splash: port not specified",
"Splash: send failed",
"Splash: couldn't create shutdown timer",
"Splash: Can't open X11 display",
"Splash: X11 connection failed"
};
Listtest listtest = new Listtest("List Test", msg);
listtest.setVisible(true);
}
}