-
Bug
-
Resolution: Not an Issue
-
P5
-
6
-
sparc
-
solaris_8
Name: jk109818 Date: 04/10/2003
FULL PRODUCT VERSION :
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_01-b01)
FULL OS VERSION :
SunOS 5.8 Generic_108528-16 sun4u sparc SUNW, Ultra-5_10
EXTRA RELEVANT SYSTEM CONFIGURATION :
Using OpenWindows Desktop
A DESCRIPTION OF THE PROBLEM :
When calling showOptionDialog() on a JOptionPane, the box is displayed right away but has no text. It takes an
unacceptable amount of time before the text is displayed in the alert box for the title, message, buttons, etc.
This problem does not occur if the program runs in CDE (Common Desktop Environment) instead of OpenWindows Desktop.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Run the sample on Sun Solaris 8 workstation using OpenWindows Desktop.
EXPECTED VERSUS ACTUAL BEHAVIOR :
Same result as with Java 1.3.1. The option pane is displayed with its alerts text immediately.
The option pane is displayed empty, the text appears 3 to 6 seconds later.
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class Test {
public static void main(String args[]){
final JFrame f = new JFrame("TITLE");
JPanel p = new JPanel(new BorderLayout());
p.setMinimumSize(new Dimension(500, 500));
p.setPreferredSize(new Dimension(500, 500));
JButton b = new JButton("Test");
p.add(b, BorderLayout.CENTER);
b.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
JOptionPane pane = new JOptionPane();
Object buttons[] = new Object[1];
buttons[0] = "Press";
pane.showOptionDialog(f,
"Test","Test", JOptionPane.DEFAULT_OPTION,
JOptionPane.ERROR_MESSAGE, null, buttons, buttons[0]);
}
});
f.getContentPane().add(p);
f.pack();
f.setVisible(true);
}
}
---------- END SOURCE ----------
(Review ID: 183675)
======================================================================
FULL PRODUCT VERSION :
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_01-b01)
FULL OS VERSION :
SunOS 5.8 Generic_108528-16 sun4u sparc SUNW, Ultra-5_10
EXTRA RELEVANT SYSTEM CONFIGURATION :
Using OpenWindows Desktop
A DESCRIPTION OF THE PROBLEM :
When calling showOptionDialog() on a JOptionPane, the box is displayed right away but has no text. It takes an
unacceptable amount of time before the text is displayed in the alert box for the title, message, buttons, etc.
This problem does not occur if the program runs in CDE (Common Desktop Environment) instead of OpenWindows Desktop.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Run the sample on Sun Solaris 8 workstation using OpenWindows Desktop.
EXPECTED VERSUS ACTUAL BEHAVIOR :
Same result as with Java 1.3.1. The option pane is displayed with its alerts text immediately.
The option pane is displayed empty, the text appears 3 to 6 seconds later.
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class Test {
public static void main(String args[]){
final JFrame f = new JFrame("TITLE");
JPanel p = new JPanel(new BorderLayout());
p.setMinimumSize(new Dimension(500, 500));
p.setPreferredSize(new Dimension(500, 500));
JButton b = new JButton("Test");
p.add(b, BorderLayout.CENTER);
b.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
JOptionPane pane = new JOptionPane();
Object buttons[] = new Object[1];
buttons[0] = "Press";
pane.showOptionDialog(f,
"Test","Test", JOptionPane.DEFAULT_OPTION,
JOptionPane.ERROR_MESSAGE, null, buttons, buttons[0]);
}
});
f.getContentPane().add(p);
f.pack();
f.setVisible(true);
}
}
---------- END SOURCE ----------
(Review ID: 183675)
======================================================================
- relates to
-
JDK-5020204 OpenWindows: Window content showing is delayed.
- Resolved
-
JDK-5006248 REGRESSION: Awt and swing components work intolerably slowly on OpenWindows
- Closed