I developed a UI in NetBeans that I want to use in my Griffon application. I chose to do so because I don't have enough time to figure out how to get the screen laid out correctly using SwingBuilder. According to the book Griffon in Action, I basically just need to place the .java file created in NetBeans under the appropriate package in the src directory of my Griffon project and run the griffon generate-view-script command with the fully qualified class name of the .java class (it took me a while to figure out how to do that). It then generates a .groovy file in the views directory that contains some code wrapping the .java class to make it work with SwingBuilder. When I try to run this as-is, nothing comes up. There are no exceptions being thrown, but nothing shows up either.
Griffon View Script Generated from NetBeans Not Showing
121 Views Asked by Stuporman At
1
There are 1 best solutions below
Related Questions in NETBEANS
- export function with netbeans from mysql to excel
- issue in my if statement to make comparison in my java program
- How do I change code template triggering behavior in Netbeans 8.0?
- How to get the last integer ID you query in MySQL
- Opening jar file with external library
- How to access a private method
- CoffeeScript For NetBeans 8.0 Plugin: Set Target Folder For Compiles JS
- error with google app engine deploy
- Why won't my JSF app deploy to GlassFish?
- NetBeans commenting
- Store Strings longer than 255 in a database in Netbeans
- How to set jcombo box to what i want
- Wildfly 9.0.0 and Netbeans 8.0.2
- Netbeans unexpected return value error
- Relationship between gcc, g++, cygwin, and wingw?
Related Questions in GROOVY
- spring-integration-dsl-groovy-http return null when i use httpGet method
- groovy xml namespace definition used in attribute value lost after XmlParse/serialize
- jenkins with groovy postbuild .Not able to execute anything in groovy script field
- How can I set the the expected Exception type for a catch statement with a parameter I've passed into a method?
- How to add quotes into sql where clause in Groovy script?
- integrating groovy with api
- java.util.ConcurrentModificationException on cloneEntity
- jenkins (or groovy) using pom.xml from previous execution
- How to use multiple classes in multiple files in scripts?
- How to work around Groovy's XmlSlurper refusing to parse HTML due to DOCTYPE and DTD restrictions?
- Workaround for lack of generators/yield keyword in Groovy
- Groovy's @CompileStatic and map constructors
- Java syntax to Groovy syntax
- Groovy TimeDuration Argument Types
- Elasticsearch : _score always 0 in Groovy script
Related Questions in GRIFFON
- Griffon official Tutorial: unable to successfully build griffon-swing-groovy project generated with lazybones
- Griffon rest plugin giving org.apache.xerces.parsers.AbstractSAXParser class not found ..
- What's the correct way of converting values?
- With Griffon, Groovy and JavaFX with the MyBatis plugin, one service won't work, all the other do - what am I doing wrong?
- How to build a panel dynamically with Griffon
- How to create a ribbon with FlamingoBuilder in Griffon?
- Using guava in griffon gives Prohibited package exception
- How do I get icons into the file menu with Griffon?
- Installing a Griffon plugin in zip format from private remote url
- Griffon JavaFX sample app can't compile
- Save file dialog in griffon
- intellij 9 + griffon 0.9.5 dsl script execution error?
- intellij+griffon.0.9.5 No such property: withSql?
- Build Griffon app for Windows and Linux
- Griffon View Script Generated from NetBeans Not Showing
Related Questions in SWINGBUILDER
- Groovy SwingBuilder ToggleButton StateChange
- Column Headers not shown up in JTable
- Disable button and display message in text field at end of ArrayList iterations
- Is it possible to use Java Lambdas to implement something like Groovy's SwingBuilder?
- Disabling toolbar from icePDF viewer
- In what case is Groovy SwingBuilder superior?
- Changing value in textfield with groovy and SwingBuilder
- Show a variable from Java thread in UI built with SwingBuilder
- How to use Groovy's TableLayout valign attribute
- Visual Java Programming
- Trying to understand GUI Swing and threads
- multiple instances of Swingbuilder?
- Griffon View Script Generated from NetBeans Not Showing
- Handling exceptions in Groovy SwingBuilder.doOutside
- Get id from Swing component in Groovy SwingBuilder
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
As it turns out, the .java class contains a Main() method in which the visible property of the class (it is a subclass of JFrame) is set to true. The Main() method does not get called by SwingBuilder, so the visible property was never being set to true. To correct this, I just had to add
visible: trueto the parameters to the generated widget node like below.Once I did that, it came up just fine.