JDK-4256578 : Kestrel: showInternal* methods are not functioning properly
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.3.0
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris_2.6
  • CPU: sparc
  • Submitted: 1999-07-23
  • Updated: 1999-09-18
  • Resolved: 1999-09-18
Related Reports
Duplicate :  
Relates :  
Description
Using the code listed below, showInternalConfirmDialog always return
the value -1 and disappears as soon as its dialog comes up.
Running on JDK-1.2-V, this code works properly as expected.

import java.awt.*;
import javax.swing.*;

public class Test extends JFrame {

    public Test() {
        super("Test");
    }

    public static void main(String args[]) {
        Test test = new Test();
        test.run(args, System.err, System.out);
    }

    public void run(String args[], java.io.PrintStream log, java.io.PrintStream out) {
        JDesktopPane dp = new JDesktopPane();
        JOptionPane op = new JOptionPane();
        JInternalFrame iframe = op.createInternalFrame(dp, "iframe");
        int result = 0;

        setBounds(100, 100, 300, 300);
        setVisible(true);
        result = op.showInternalConfirmDialog(getContentPane(), "test");
        out.println("result: " + Integer.toString(result));
        quit();
    }

    void quit() {
        dispose();
        System.exit(0);
    }
}

kenichi.kurosaki@Japan 1999-07-23

Comments
EVALUATION This has been fixed for kestrel, and is a duplicate of 4265783. Nancy, sorry about closing it as a duplicate of a bug with a later number, but I've already fixed that one, whereas I've only now noticed this one, as it was assigned to Amy. hania.gajewska@Eng 1999-09-17
17-09-1999

PUBLIC COMMENTS % java -version java version "1.3" Classic VM (build JDK-1.3-L, green threads, sunwjit) % kenichi.kurosaki@Japan 1999-07-23
23-07-1999