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

fge
fge
22:03
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
fge
Oops sorry
I'm blind
Why do people use FXML annotations?
fge
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"
22:07
Because they use FXML documents?
No Gemtastic, I wasn't thinking about that
fge
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
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
22:08
Oh ok
Also, one more question
How to obtain an instance of controller?
fge
fge
From an FXMLLoader, it's .getController()
By loading FXML file with FXMLLoader
Seems it doesn't work
fge
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
fge
Well, there is not one way to do it
22:12
Okaay
fge
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
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?
22:16
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
fge
Simple
@BranislavLazic In the future, could you try to use the real code? That way we might detect real issues
fge
fge
I don't want to see any other ORM
I have no issues Gemtastic
I just asked for some tips :)
fge
fge
22:18
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
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
fge
Well, I proposed to @ItachiUchiha a hangout for how I implemented MVP for JavaFX but he isn't there
22:22
I would watch it for sure
fge
fge
@BranislavLazic why not; I can start in 5 mn
Ok, just as an viewer
fge
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
fge
22:25
OK then, see you in 5 minutes (need a coffee)
fge
fge
@Gemtastic @ItachiUchiha ping
23:18
Hi!
Another good session
fge
fge
Unprepared, though :p
It was good either way :)
fge
fge
23:39
I'll get back to the debugger after I have achieved what I want with JSR 203
fge
fge
23:54
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 (3590 days later) »