groovy-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul King (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (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
Date Thu, 05 Jul 2018 13:19:00 GMT

    [ https://issues.apache.org/jira/browse/GROOVY-8685?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16533633#comment-16533633
] 

Paul King commented on GROOVY-8685:
-----------------------------------

It's usually best to confirm on the mailing lists that you have a bug before creating a new
issue. This looks like a good candidate for the users mailing list. It seems to me that you
are using a Griffon class. Do you have that on your classpath?

> Tring to run this piece of code , the IDE is not able to find the Groovy:unable to resolve
class groovy.swing.SwingXBuilder
> ---------------------------------------------------------------------------------------------------------------------------
>
>                 Key: GROOVY-8685
>                 URL: https://issues.apache.org/jira/browse/GROOVY-8685
>             Project: Groovy
>          Issue Type: Question
>          Components: groovy-jdk
>    Affects Versions: 2.4.x
>            Reporter: Thulsi Doss Krishnan
>            Priority: Blocker
>
> 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



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message