groovyfx


using groovyfx in a class instead a script


I'm just making friends with groovyfx and have my first question...
All examples I found are using groovyfx in the way, that the resulting class-file extends a groovy-script.
I don't know why, but I'm used to use groovy in the way that the classes which are created extends a GroovyObject.
Is there a way to use GroovyFX in classes?
(The following would be a "bad" example in my opinion because I have Variables in the main method and not as a class member):
import groovyx.javafx.GroovyFX
class Main {
static void main(args) {
Configuration config = Configuration.instance
GroovyFX.start {
stage(title: 'Tabby ' + config.version, visible: true) {
scene(fill: BLACK, width: 500, height: 250) {
...
}
}
}
}
}
Or would you say "don't worry about!"

Related Links

using groovyfx in a class instead a script

Categories

HOME
nam
powerbi
azure-functions
xcode8.1
compilation
stacktrace.js
risk-management
consul
drag-and-drop
angular2-template
phpseclib
telegraf
responsive-design
selection
scrape
getopenfilename
phpstorm-2017.1
feature-extraction
nest-api
cocos2d-android
gmp
nullreferenceexception
adobe-illustrator
android-custom-view
android-permissions
animated-gif
pyopencl
fusetools
data-collection
introspection
tf-idf
macromedia
php-5.3
fatfs
jsonresult
python-2.x
android-n
iscroll
linq.js
rdp
opal-framework
coverage.py
notesview
morphline
apache-toree
type-inference
roracle
sony-future-lab-n
openstack-glance
maven-jaxb2-plugin
sequence-diagram
popen
glassfish-4.1
network-protocols
1010
sidewaffle
pjax
dcount
livecycle
always-on-top
system.net.mail
jeasyui
utf-16
polymerfire
android-expansion-files
flask-security
ui4j
miniconda
ruby-on-rails-4.1
astropy
dsa
knife
domino-designer-eclipse
google-gdk
whitespace-language
kotlin-android-extensions
quercus
mathematical-expressions
ssmtp
tkx
kognitio-wx2
nhibernate-criteria
microsoft-expression-web
adhoc-polymorphism
dnsjava
visual-c++-2012
rpg
nachos
map
nosql-aggregation
windows-taskbar
hyphen
hints
office-app
icenium
story
cakeyframeanimation
getopts
space-partitioning
winsxs
fork-join
digiflow
servlet-container
django-pagination
regression-testing
jdownloader
fxruby
accumulator
icon-language

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App