« first day (1575 days earlier)      last day (3372 days later) » 

fge
10:03 PM
Hmm, there's no src/
Didn't you forget to push or something?
@ItachiUchiha I thought you'd be there by now -- weren't you interested to join to see how I did MVP with JavaFX?
 
There should be, the repo is public O.o
 
fge
Oops sorry
I'm blind
 
phew
 
Why do people use FXML annotations?
 
fge
@BranislavLazic because by default an FxmlLoader will not touch fields which are not public; the @FXML annotation is there to tell the loader that "this is yours, please set it up"
 
10:07 PM
Because they use FXML documents?
 
No Gemtastic, I wasn't thinking about that
 
fge
A JavaFX "controller" may contain elements which are not part of the loaded FXML file
 
If you specify fx:controller="MyController" you don't have to use FXML
AFAIK
 
fge
@Gemtastic no, @BranislavLazic is talking about the @FXML annotation
@BranislavLazic read what I said above
 
I know
I was just being funny
Except it wasn't funny
 
10:08 PM
Oh ok
Also, one more question
How to obtain an instance of controller?
 
fge
From an FXMLLoader, it's .getController()
 
By loading FXML file with FXMLLoader
Seems it doesn't work
 
fge
Uh? It does for me
 
I.e. I need to pass parent controller to children controller
Instance of parent controller to be more accurate
final FXMLLoader loader = new FXMLLoader(getClass().getResource("/myfxml.fxml"));
Parent parent = loader.load();
MainController mainController = loader.getController();
mainController.initData(stage);
So this is right way?
initData assigns value of Stage to Stage variable within MainController.
 
fge
Well, there is not one way to do it
 
10:12 PM
Okaay
 
fge
I don't do it this way for instance
 
How do you do it?
I sometimes need this relation because of dialogs
Broad example
 
fge
github.com/fge/grappa-debugger/blob/master/src/main/java/com/… <-- this is how I do that for the main window
In fact I can have several, which is why I have a separate createWindow() method
 
That path ("/myfxml.fxml")) loosk weird to me
 
Interesting
Why so Gemtastic?
 
10:16 PM
because it looks like you have the file in the same direcory, so why use the /?
 
Ups sorry, I copied fraction of some random code
that myfxml.fxml file was in directory "fxml"
That's why "/"
@fge I see you use JOOQ. Impressions?
 
fge
Simple
 
@BranislavLazic In the future, could you try to use the real code? That way we might detect real issues
 
fge
I don't want to see any other ORM
 
I have no issues Gemtastic
I just asked for some tips :)
 
fge
10:18 PM
JooQ has understood that the R is more important than the O
 
Oh dear @fge I use JPA
In my latest project
I think I was brave enough to use JavaFX. Not going for something even more exotic like JOOQ :D
 
Well, I was assuming something was broken because of this:
> Seems it doesn't work
 
fge
It's simple enough as far as I'm concerned: I won't use any other "ORM" anymore, except at gunpoint
 
"Seems it doesn't work" - related with my other ways of obtaining controller instances
LOL @fge
 
fge
Well, I proposed to @ItachiUchiha a hangout for how I implemented MVP for JavaFX but he isn't there
 
10:22 PM
I would watch it for sure
 
fge
@BranislavLazic why not; I can start in 5 mn
 
Ok, just as an viewer
 
fge
@Gemtastic would you be interested? This way we could see some jooq too
 
Yes please! :D
 
@fge Of course! Seeing how other people do it is always nice! (well, when "it" refers to code at least)
 
fge
10:25 PM
OK then, see you in 5 minutes (need a coffee)
 
Roger.
 
fge
@Gemtastic @ItachiUchiha ping
 
11:18 PM
Hi!
 
Another good session
 
fge
Unprepared, though :p
 
It was good either way :)
 
fge
11:39 PM
I'll get back to the debugger after I have achieved what I want with JSR 203
 
fge
11:54 PM
Anyway, next time you need help with jooq, ask :)
Such as, porting your app to use it instead of Spring :p
 

« first day (1575 days earlier)      last day (3372 days later) »