ushort
07/19/2019, 4:18 AMclass MainView : View() {
override val root = tabpane {
tab("Home") {
//insert TestView
}
}
}
class TestView: View() {
override val root = anchorpane {
label("Test")
}
}
darkmoon_uk
07/19/2019, 12:16 PMplugins {
val kotlinVersion = "1.3.40"
kotlin("jvm" ) version kotlinVersion
id("application")
id("kotlinx-serialization") version kotlinVersion
id("org.openjfx.javafxplugin") version "0.0.7"
id("org.beryx.jlink") version "2.9.4"
}
darkmoon_uk
07/19/2019, 1:34 PMabhinay
07/19/2019, 1:54 PMdarkmoon_uk
07/22/2019, 10:07 PMjavapackager
is desirable, but the javapackager
binary seems missing on JDK 12 / OS-X 🤔
Investigating...albrechtroehm
07/26/2019, 11:49 AMn0rtan
07/28/2019, 7:18 AMdarkmoon_uk
08/07/2019, 1:59 PMChannel<ActionEvent>
from a Button
? Is there an established library that already implements these kinds of Coroutines wrappings for JavaFX?albrechtroehm
08/07/2019, 2:10 PMclass House(name: String = "", rooms: List<Room> = emptyList()) : NamedObject(name)
{
val roomsProperty = SimpleListProperty<Room>(this, "rooms ",rooms.asObservable())
var rooms : ObservableList<Room> by roomsProperty
}
class HouseModel(house: ObjectProperty<House>) : ItemViewModel<House>(itemProperty = house)
{
val name = bind(House::nameProperty)
val rooms = bind(House::roomsProperty)
}
...
class HouseListFragment : ListCellFragment<House>() {
private val controller by inject<QuotationController>()
private val house = HouseModel(itemProperty)
override val root = vbox {
hbox {
vbox {
removeWhen { editingProperty }
label(house.name) {
setId(Styles.contentLabel)
hgrow = Priority.ALWAYS
useMaxSize = true
}
label(house.rooms.value.size.toString())
label(" rooms ") {}
}
}
}
}
Doing something like private val roomNumber = SimpleIntegerProperty(house.rooms.value.size)
always gives me 0 for a house which should have 3 roomsdarkmoon_uk
08/07/2019, 10:22 PMbjonnh
08/09/2019, 4:05 PMgeepawhill
08/10/2019, 9:25 PMApplication
instead of App
. When I just changed it to the latter, I got an NPE on exit (in `App::stop()`because primaryStage wasn't set. I added to the existing start method FX.setPrimaryStage
to get past that. I am now getting an NPE in the following lines, which seem to be finding and cleaning up the primary view. I'm starting to suspect "you're doing it wrong". Is my problem that I have a custom start()
that doesn't call the super? Should I not override start at all and override some other method called by App::start instead? Should I also have overridden stop()? The existing start()
is needed because the program has to first show a dialog box. It's possible that the user can cancel out, in which case I don't want the stage showing at all, just want to exit.Spike Baylor
08/11/2019, 2:46 PMAlen Mujezinovic
08/14/2019, 11:18 AMryn1x
08/14/2019, 6:54 PMgeepawhill
08/23/2019, 4:14 PMAlen Mujezinovic
08/29/2019, 10:21 AMlaunch4j
- however launch4j
seems to work on some systems and others not so I'm kind of looking for an alternative.
Ideally I'd also want to create a .dmg file for MacOS and to top it off, it would be perfect to be able to ship the application and a JRE in a single package to avoid users having to install another dependencyalilosoft
09/01/2019, 12:53 AMgroostav
09/07/2019, 10:08 PMcopy()
in the data-class sense, to create a new instance that renders the same data in the same way, but the new instance only has copies of user-facing properties and does not have copies of any yucky toolkit related properties? (EG parent
)czuckie
09/15/2019, 6:02 PMgroostav
09/16/2019, 7:42 AMdimitar_
09/16/2019, 6:27 PMNikky
09/21/2019, 1:57 PMsbyrne
09/24/2019, 1:57 PMcellFormat {}
block in one of my columns. Why is my cellFormat not called when the value of the property bound to the column is changed?sbyrne
09/24/2019, 3:53 PMsbyrne
09/24/2019, 7:36 PMTableCellFragment
, how do I bind a Property<CssRule>
that sets the style for the tableRowCell
?Kirill
09/25/2019, 9:23 AM"yourapplication" would like to receive keystrokes from any application.
Grant access to this application in Security & Privacy preferences, located in System Preferences.
This doesn't happen on older versions of macOS.
Did anyone encounter such issue or maybe has any ideas?
Best regards, KirillRuckus
09/25/2019, 4:18 PMjdk10
branch), they mostly work, but not the DSL styles. I get
WARNING: Resource "css://tornadofx.testapps.[...]" not found.Is there something I'm missing that I need to change to get this working?
albrechtroehm
09/26/2019, 1:13 PMgetChildList()
or ist there any other suitable way to access it?Nikky
10/02/2019, 3:11 PMNikky
10/02/2019, 3:11 PMaltavir
10/02/2019, 3:54 PMJavaFX
dispatcherNikky
10/02/2019, 5:09 PMGlobalScope.launch
for now.. and all things interactin with javafx i do in launch(Dispatchers.JavaFX)
, it seems to work, good enough for now