Uploaded image for project: 'Harmony'
  1. Harmony
  2. HARMONY-6114

[classlib][awt] Harmony fails to execute the sample code(Composite.java) of the Java Tutorial.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 5.0M8
    • None
    • None
    • Operating system: Windows XP, Hardware specifications: Intel Core 2 Duo E6759, 2GB RAM, and NVIDIA GeForce 8600GT

    Description

      Download the source (http://java.sun.com/docs/books/tutorial/2d/advanced/examples/Composite.java) and compile it. Execute C:\Java\harmony-jdk-713673\jre\bin\java.exe -cp . Composite and throw the exception as below.

      Uncaught exception in main:
      java.lang.IllegalArgumentException: MinimumLayoutSize: <null>
      at java.awt.GridBagLayout.minimumLayoutSize(GridBagLayout.java:227)
      at javax.swing.JComponent.getMinimumSize(JComponent.java:442)
      at javax.swing.JRootPane$RootLayout.minimumLayoutSize(JRootPane.java:124)
      at javax.swing.JComponent.getMinimumSize(JComponent.java:442)
      at java.awt.BorderLayout.validateArrays(BorderLayout.java:435)
      at java.awt.BorderLayout.validate(BorderLayout.java:394)
      at java.awt.BorderLayout.minimumLayoutSize(BorderLayout.java:273)
      at java.awt.Container.getDefaultMinimumSize(Container.java:753)
      at java.awt.Component.minimumSize(Component.java:3291)
      at java.awt.Container.minimumSize(Container.java:741)
      at java.awt.Container.getMinimumSize(Container.java:726)
      at java.awt.BorderLayout.validateArrays(BorderLayout.java:435)
      at java.awt.BorderLayout.validate(BorderLayout.java:394)
      at java.awt.BorderLayout.minimumLayoutSize(BorderLayout.java:273)
      at javax.swing.JComponent.getMinimumSize(JComponent.java:442)
      at javax.swing.JRootPane$RootLayout.minimumLayoutSize(JRootPane.java:124)
      at javax.swing.JComponent.getMinimumSize(JComponent.java:442)
      at java.awt.BorderLayout.validateArrays(BorderLayout.java:435)
      at java.awt.BorderLayout.validate(BorderLayout.java:394)
      at java.awt.BorderLayout.preferredLayoutSize(BorderLayout.java:291)
      at java.awt.Container.getDefaultPreferredSize(Container.java:789)
      at java.awt.Component.preferredSize(Component.java:3317)
      at java.awt.Container.preferredSize(Container.java:777)
      at java.awt.Container.getPreferredSize(Container.java:762)
      at java.awt.Window.pack(Window.java:701)
      at Composite.main(Composite.java:151)

      Attachments

        1. H6114.patch
          0.6 kB
          Chunrong Lai

        Activity

          People

            chunrong lai Chunrong Lai
            veawor Veawor Liu
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: