You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This release of ScalaFX-Extras add ability to conveniently add fields and read data from a pane using GenericPane. Add a couple bug fixes
New features
In addition to GenericDialogFX there is a GenericPane that can be used to build a Pane that can be used with more
granularity in designing UIs. It can be used as a part of other, more complex, control. Example:
importscalafx.application.JFXApp3importscalafx.application.JFXApp3.PrimaryStageimportscalafx.geometry.Insetsimportscalafx.scene.Sceneimportscalafx.scene.control.Buttonimportscalafx.scene.layout.VBoximportscalafx.scene.paint.*importscalafx.scene.paint.Color.*importscalafx.scene.text.TextobjectGenericPaneDemoextendsJFXApp3:overridedefstart():Unit=valgp=newGenericPane():
addDirectoryField("Input", "images")
addDirectoryField("Output", "output")
stage =newPrimaryStage:
title ="GenericPane Demo"
scene =newScene:
content =newVBox:
padding =Insets(7, 7, 7, 7)
spacing =7
children =Seq(
gp.pane,
newButton("Print Fields"):
onAction = (_) =>
gp.resetReadout()
println(s"Input dir : ${gp.nextString()}")
println(s"Output dir: ${gp.nextString()}")
)
The scalafx-extras-demos subproject has an example.
Additional features:
The preferred width (expressed in text columns) of the text field in FileSelectionField can now be controlled. This
adds similar options to
GenericPaneBase.addDirectoryField
GenericPaneBase.addFileField
Breaking Changes
Package name org.scalafx.extras.generic_dialog was changed to org.scalafx.extras.generic_pane
The constructor of GenericDialogFX parameter's name parentWindow was changes to ownerWindow to avoid conflict
with similarly named parameter in GenericPaneBase
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
This release of ScalaFX-Extras add ability to conveniently add fields and read data from a pane using
GenericPane
. Add a couple bug fixesNew features
In addition to
GenericDialogFX
there is aGenericPane
that can be used to build aPane
that can be used with moregranularity in designing UIs. It can be used as a part of other, more complex, control. Example:
The
scalafx-extras-demos
subproject has an example.Additional features:
FileSelectionField
can now be controlled. Thisadds similar options to
GenericPaneBase.addDirectoryField
GenericPaneBase.addFileField
Breaking Changes
org.scalafx.extras.generic_dialog
was changed toorg.scalafx.extras.generic_pane
GenericDialogFX
parameter's nameparentWindow
was changes toownerWindow
to avoid conflictwith similarly named parameter in
GenericPaneBase
All changes:
GenericPaneBase.addDirectoryField
- is ignoring argument columns [#23]GenericPaneBase.addFileField
is missing argument columns [#24]IllegalAccessError
inAutoDialog
(0.7.0) [#25]To post questions please use Project Discussions or ScalaFX Users Group
Full Changelog: v.0.7.0...v.0.8.0
This discussion was created from the release ScalaFX-Extras v.0.8.0.
Beta Was this translation helpful? Give feedback.
All reactions