« first day (1575 days earlier)
← previous day
next day →
last day (3590 days later) »
00:00 - 15:00
15:00 - 22:00
22:00 - 00:00
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?
Gemtastic
There should be, the repo is public O.o
fge
Oops sorry
I'm blind
Gemtastic
phew
Branislav Lazic
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"
Gemtastic
22:07
Because they use FXML documents?
Branislav Lazic
No Gemtastic, I wasn't thinking about that
fge
A JavaFX "controller" may contain elements which
are not
part of the loaded FXML file
Branislav Lazic
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
Gemtastic
I know
I was just being funny
Except it wasn't funny
Branislav Lazic
22:08
Oh ok
Also, one more question
How to obtain an instance of controller?
fge
From an FXMLLoader, it's
.getController()
Branislav Lazic
By loading FXML file with FXMLLoader
Seems it doesn't work
fge
Uh? It does for me
Branislav Lazic
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
Branislav Lazic
22:12
Okaay
fge
I don't do it this way for instance
Branislav Lazic
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
Gemtastic
That path ("/myfxml.fxml")) loosk weird to me
Branislav Lazic
Interesting
Why so Gemtastic?
Gemtastic
22:16
because it looks like you have the file in the same direcory, so why use the /?
Branislav Lazic
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
Gemtastic
@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
Branislav Lazic
I have no issues Gemtastic
I just asked for some tips :)
fge
22:18
JooQ has understood that the R is more important than the O
Branislav Lazic
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
Gemtastic
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
Branislav Lazic
"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
Branislav Lazic
22:22
I would watch it for sure
fge
@BranislavLazic why not; I can start in 5 mn
Branislav Lazic
Ok, just as an viewer
fge
@Gemtastic would you be interested? This way we could see some jooq too
Branislav Lazic
Yes please! :D
Gemtastic
@fge Of course! Seeing how other people do it is always nice! (well, when "it" refers to code at least)
fge
22:25
OK then, see you in 5 minutes (need a coffee)
plus.google.com/hangouts/_/g7eanb4v2ftbayz3qkugajwkgia
<-- there
Branislav Lazic
Roger.
fge
@Gemtastic @ItachiUchiha ping
Barakados
23:18
Hi!
Branislav Lazic
Nice
Gemtastic
Another good session
fge
Unprepared, though :p
Gemtastic
It was good either way :)
fge
23:39
I'll get back to the debugger after I have achieved what I want with JSR 203
fge
23:54
Anyway, next time you need help with jooq, ask :)
Such as, porting your app to use it instead of Spring :p
00:00 - 15:00
15:00 - 22:00
22:00 - 00:00
« first day (1575 days earlier)
← previous day
next day →
last day (3590 days later) »
all rooms
Transcript for
Feb
13
Feb '15
14
Feb
15
Java
Dedicated to the discussion of the Java programming language a...
1
its-always-friday
java
jdk
jvm
out-of-context-stars
join this room
about this room
00:00
06:00
12:00
18:00
all times are UTC
site design / logo © 2024 Stack Exchange Inc;
legal
mobile