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
125 Views Asked by Stuporman At
1
There are 1 best solutions below
Related Questions in NETBEANS
- entity classes are not showing when trying to create new session beans for entity classes in netbeans 9.0
- Cant connect to any github repository from my netbeans 20
- Set Netbeans Console to English
- How can I retrieves divs into a dynamic page in Java?
- how to create an sqldump file for backup in netbeans(java)
- Failed to execute goal org.codehaus.mojo:exec-maven-plugin:3.1.0
- ERROR "java.net.URL.toExternalForm()" because "location" is null"
- NetBeans snap - Java configuration
- How can one set java.base/java.util=all-unnamed in Netbeans IDE
- Why my form glitch when I type someting to textfiled in java
- How do I fix Netbeans' invalid source release?
- Apache NetBeans 20: Apache Tomcat service doesn't stop when I try to stop it from the IDE
- I can't send attachment outside of NetBeans
- Does anyone know how to fix this error in Netbeans 19 to install JavaFX
- NetBeans: Unable to Create CUnit Tests - Grayed Out Menu Options
Related Questions in GROOVY
- No tests found for given includes: [com.bright.TwitterAnalog.AuthenticationControllerSpec.Register user with valid request](--tests filter)
- Groovy - how to read properties from a property file in a jar on the classpath
- How to enter user input in jmeter console (without doing parameterization)
- Post checkmarx scan weblink on the Jenkins Build status page
- Optimal way to replace different parts of a structured string(XML) with random string values of different lengths in a JMeter JSR223 Samper (groovy)
- How to compare two csv files line by line in apachi nifi flow file using groovy script
- Jenkins pipeline map is getting converted to an array but it's too large I think?
- Exception: Unable to start the daemon process. This problem might be caused by incorrect configuration of the daemon
- Passing varible in Groovy script
- Multibranch pipelines not working if it's created by job DSL
- How to fetch more than 50 items when executing nexus rest api get request
- Grails Method is executing asynchronously even when i have not applied any code for asynchronous execution
- Liquibase configuration in Gradle conventions plugin
- Cannot instantiate Groovy class, throwing no signature of getBinding()
- Javascript (asset) missing in browser's sources
Related Questions in GRIFFON
- With Griffon, Groovy and JavaFX with the MyBatis plugin, one service won't work, all the other do - what am I doing wrong?
- when comparing a property with a string value using isEqualTo always returns true regardless of the string
- Griffon "error injecting constructor" while trying to call loadFromFXML
- How do I get icons into the file menu with Griffon?
- Can't stop JFrame from closing when user hits 'X' in upper right of window
- How should someone bind a JList component to a model in Griffon using Groovy and Swing
- griffon lazybones cannot create griffon-swing-groovy project
- Griffon framework for to convert a vanilla java based app
- Griffon FXML button text value is overwritten
- IntelliJ Idea LanternaGriffon Doesn't Recognize Griffon Project
- Griffon Ormlite plugin configuration not picking up environment settings
- Griffon integration to NetBeans IDE
- Fonts are not rendered properly using Gradle mac app bundle
- Griffon 2.7 Tutorial
- Griffon 1.5 project , unable to resolve dependencies
Related Questions in SWINGBUILDER
- How to use Groovy's TableLayout valign attribute
- How to remove edges from JButton after border radius?
- Troubleshooting Window Builder Issues in Eclipse: It's Not Working
- Create a Jdialog that has an icon just like joptionpane
- How to fix java application dimensions when switching the jre from 8u201 to 8u211?
- How can I implement thread synchronization in word count tool GUI-based project
- NullPointerException related to hidden Swing GUI elements
- JTextField to get integer input from user to add when clicked on JButton
- Use DefaultTableModel to color specific cell of the JTable based on their specific value
- Refreshing jTable From database
- Netbeans GUI is not creating properly
- java swing make Pagination Next/Prev , Next button Forword Record or Prev goback on button press
- WindowBuilder how to use a different button to display a counter
- How do I dispose a frame after few seconds of delay in Swing?
- access class members from main
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 # Hahtags
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.