Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4145955

Dialog.setResizable() does not work on Solaris

XMLWordPrintable

    • generic
    • solaris_2.5.1


      charlie.lai@Eng 1998-06-04

      the following program opens up a dialog box which shouldn't
      be resizable. on NT it isn't, but on solaris it still is.

      import java.awt.*;
       
      public class MyDialog {
          public static void main(String args[]) {
              ToolWindow tw = new ToolWindow();
              tw.doit();
          }
      }
       
      class ToolWindow extends Frame {
          void doit() {
              Dialog d = new Dialog(this, "Dialog Window", true);
              d.setBounds(100, 100, 600, 500);
              d.setLayout(new GridBagLayout());
       
              Button b = new Button("Hello");
              d.add(b, 0);
       
              GridBagLayout gbl = (GridBagLayout)d.getLayout();
              GridBagConstraints gbc = new GridBagConstraints();
              gbc.gridx = 0;
              gbc.gridy = 0;
              gbc.gridwidth = 1;
              gbc.gridheight = 1;
              gbc.weightx = 0.0;
              gbc.weighty = 0.0;
              gbc.fill = GridBagConstraints.BOTH;
              gbl.setConstraints(d, gbc);
       
              d.setResizable(false);
              d.setVisible(true);
          }
      }

            xdengsunw Xianfa Deng (Inactive)
            claisunw Charlie Lai (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: