Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-8685

Tring to run this piece of code , the IDE is not able to find the Groovy:unable to resolve class groovy.swing.SwingXBuilder

    XMLWordPrintableJSON

    Details

    • Type: Question
    • Status: Closed
    • Priority: Minor
    • Resolution: Not A Problem
    • Affects Version/s: 2.4.x
    • Fix Version/s: None
    • Component/s: groovy-jdk
    • Labels:
      None

      Description

      Hello all trying to run this piece of code

      import groovy.swing.SwingXBuilder
      import static java.awt.Color.*
      import static java.lang.Math.*
      def swing = new SwingXBuilder()
      def frame = swing.frame(size: [300, 300])

      { graph(plots: [ [GREEN, \{value -> sin(value)}

      ],
      [BLUE, \{value -> cos(value)}],
      [RED, \{value -> tan(value)}]
      ])
      }.show()

      the IDE is complaining of unable to resolve groovy.swing.SwingXBuilder

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              kthulsidoss Thulsi Doss Krishnan
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: