Questions tagged [griffon]

For questions relating to Griffon, client application platform that uses Groovy and Java.

Official page: http://griffon-framework.org/index.html

GitHub repository: https://github.com/griffon/griffon

149 questions
0
votes
1 answer

Griffon "error injecting constructor" while trying to call loadFromFXML

I have a series of popups where I edit or view specific objects. I use these popups for editing various objects that are handled by and ORM (ORMLite), what I am trying to achieve is to have a generic/abstract class that implements similar behaviours…
MattV
  • 1
  • 4
0
votes
1 answer

Griffon Gsql - how to config datasource in Config.properties file?

griffon gsql plugin's datasource config is write in DataSource.groovy, and i want it to be in Config.properties, how? i try, it don't work: add Config.properties at conf 2.config in…
atian25
  • 4,166
  • 8
  • 37
  • 60
0
votes
0 answers

How do I get icons into the file menu with Griffon?

I am currently doing the Griffon tutorial MVC Groups (JavaFX). I dont get this running because I cant compile griffon-app/i18n/messages.properties. It says: Caused by: griffon.core.editors.ValueConversionException: Can't convert…
Roman Funk
  • 35
  • 5
0
votes
1 answer

Can't stop JFrame from closing when user hits 'X' in upper right of window

I'm trying to get a groovy / griffon project to prompt a user before closing the main window. There are numerous examples of this on the web and it seems pretty straightforward: set defaultCloseOperation to DO_NOTHING_ON_CLOSE and then skip the…
LJWilkinson
  • 33
  • 1
  • 5
0
votes
1 answer

How should someone bind a JList component to a model in Griffon using Groovy and Swing

I am trying to write a Griffon/Swing/Groovy app. I am having some trouble binding a JList control to my model. Here is my model: package com.halcon.scheduler import com.halcon.scheduler.domain.EventType import…
spierepf
  • 2,774
  • 2
  • 30
  • 52
0
votes
1 answer

where to put log4j.properties in griffon?

using smslib in griffon. and some lib jar(SMSLIB) need log4j.properties. i had try: /log4j.properties , /conf/log4j.properties , /lib/log4j.properties but still error: log4j:ERROR Could not read configuration file [log4j.properties]. …
atian25
  • 4,166
  • 8
  • 37
  • 60
0
votes
1 answer

Griffon command line arguments

How to use getStartupArgs() Since 0.9.1 it seems you can read the command line arguments issue #245 with the getStartupArgs() method (documentation) But I do know how to use it, I've put it in in all the Griffon lifecycle, Controller, Service, and I…
jjchiw
  • 4,375
  • 1
  • 29
  • 30
0
votes
1 answer

Griffon FXML button text value is overwritten

Griffon 2.10.0 FXML:
A.W.
  • 2,858
  • 10
  • 57
  • 90
0
votes
1 answer

IntelliJ Idea LanternaGriffon Doesn't Recognize Griffon Project

I just made my first Griffon project, using lazybones. I chose griffon-lanterna-groovy for my template, and I then removed pom.xml and maven/ as I will be using Gradle. I then run gradle build test run and everything looked good. (it ran, build…
perryprog
  • 111
  • 2
  • 13
0
votes
2 answers

Auto updating (time) tooltip in Griffon SystemTray

Hey, I'm thinking about using griffon in an very simple DeskTop app I've been asked to code. 90% of it's features are a few mouse clicks away from the system tray, it's like "start/choose/stop". One thing I'd need is an tooltip, that would update…
Konrad 'ktoso' Malawski
  • 13,102
  • 3
  • 47
  • 52
0
votes
1 answer

Griffon integration test or script that displays a griffon View

When I create plane java Swing components like dialog boxes etc, it is very easy to make a unit test to display the Dialog. Basically, I can just create an instance of the dialog and call setIsVisible(true). I'm having a really tough time figuring…
GNSL
  • 101
  • 4
0
votes
1 answer

setdefaultcloseoperation doesn't work in griffon

@ArtifactProviderFor(GriffonView.class) public class MyWindow extends AbstractSwingGriffonView { @Override public void initUI() { final JFrame jframe= (JFrame) getApplication() …
rinjan
  • 550
  • 5
  • 19
0
votes
2 answers

Manage wait cursor for task

I'm outside the UI and wish to display a wait cursor while stuff is happening and using this basic pattern: on UI - primaryStage.scene.cursor = Cursor.WAIT try { do stuff off UI... } finally { on UI - primaryStage.scene.cursor =…
shnplr
  • 230
  • 3
  • 12
0
votes
1 answer

Griffon desktop development - using/embedding jars possible?

I am trying Griffon for rapid desktop development, as it is so much quicker to write Ruby-style code than Java, and i enjoy this clean ruby architecture. Please understand that i am just starting - maybe my question is stupid. I wanted to ask,…
Will
  • 43
  • 3
0
votes
1 answer

Error running Griffon app in IntelliJ, but it works from command prompt

There's an exercise with mortageCalc application at paragraph 3.6.1 in the Griffon in Action book. Environment: Win 7 Pro, 64-bit IntelliJ IDEA ver 12.1 Griffon-1.2.0 JDK 1.6 I have MortgageCalView: package mortgagecal application(title:'Mortgage…
Askar
  • 5,784
  • 10
  • 53
  • 96