<@U78L28DMX> The functions to configure col/row in...
# tornadofx
e
@amanda.hinchman-dominguez The functions to configure col/row index are statics on the GridPane class itself. For example, to set the rowIndex of some Node, you do
GridPane.setRowIndex(someNode, index)
. But you already know this, since you used exactly these functions when you tried the builder approach?
a
duh! let me get right on that. I have 2 mini client fires right now but I'll be back on in 1 hour
e
@amanda.hinchman-dominguez Did you get it working?
a
@edvin sorry for the lack of update, I've been out of town this weekend to see my sister graduate 🙂
@edvin you're totally right, I can't believe I forgot about the use of Gridpane. I do have a question about DataFormat though, on trying to interact with my gridpane page, I get an error such that "java.lang.IllegalArgumentException: DataFormat 'eu.hansolo.tilesfx.Tile' already exists."
@edvin Apparently, this DataFormat already exists. To my knowledge, I don't believe there's an existing one.
e
@amanda.hinchman-dominguez Oh cool, congrats to your sister!
@amanda.hinchman-dominguez I saw the picture in the main channel before I saw the thread, so I answered there about DataFormat - sorry 🙂 A companion object lets you define singleton variables and even functions (they turn into static functions) so that the DataFormat will only be defined once when the class is loaded. You can keep the DataFormat in the same class as long as that makes sense, just wrap the val in a
companion object{}
definition. Does that solve it?
a
ah! I'll try that.
*note I have a large task ahead of me today for a new client but I'll get back on this afternoon