Skip to content

Gives small access to special graphical things like Dialogs

License

Notifications You must be signed in to change notification settings

ASchmidt84/ScalaFXHelper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ScalaFXHelper

Gives small access to special graphical things like Dialogs More in the next few days

#Update 20.07.2016 - 1.9 To modify the displayed text visual, I added dialogs with Text. You can now completly edit the displayed text by using scalafx.scene.text.Text.

def textFlowInfoDialog(dialogTitle: String,
                       headerSeq: Seq[Text],
                       textSeq: Seq[Text])(implicit dialogIcon: Image = ScalaFxHelper.getImageOfResource("fallback_logo.png")) = {
    textFlowDialog(dialogTitle,headerSeq,textSeq,AlertType.Information,dialogIcon)
}

You can now add a lot of different or same Text elements in a TextFlow Dialog. This is for the header text and for the content text. As you wish you can highlight your given text.

labelStackTraceText: Seq[Text] = Seq( new Text("Error Stacktrace:"){
                                        this.fill = Color.Red
                                        this.font = Font("",FontWeight.Bold,16)
                                        effect = new DropShadow(){
                                            offsetY = 4.0
                                            color = Color.color(0.4,0.4,0.4)
                                        }
                                    } )

So you can add more styled information for your users.


About

Gives small access to special graphical things like Dialogs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages