# Define LookAndFeel in Kotlin

**URL:** <https://discuss.kotlinlang.org/t/define-lookandfeel-in-kotlin/6670>\
**Category:** Support\
**Created:** [February 17, 2018, 9:42am UTC](https://discuss.kotlinlang.org/t/define-lookandfeel-in-kotlin/6670 "2018-02-17T09:42:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![argolian](https://avatars.discourse-cdn.com/v4/letter/a/9d8465/32.png) [@argolian](https://discuss.kotlinlang.org/u/argolian)\
**Post date:** [February 17, 2018, 9:42am UTC](https://discuss.kotlinlang.org/t/define-lookandfeel-in-kotlin/6670/1 "2018-02-17T09:42:03Z")

</div>

Hi All

I am trying to workout how I can change the LookAndFeel when using Kotlin, JavaFX and Tornado

To me the most logic place to put the code is in the main class init{} section. I tried it just about everywhere else but it made no difference. This code works perfectly well in Java, and when I run the application I do not get any errors.

```
init {
    println("Starting application")
    try {
        UIManager.setLookAndFeel("com.jtattoo.plaf.noire.NoireLookAndFeel")
    } catch(e: Exception){
        e.printStackTrace()
    }
}

```

Can someone point me in the right direction?

---

<div class="post-metadata">

**Author:** ![argolian](https://avatars.discourse-cdn.com/v4/letter/a/9d8465/32.png) [@argolian](https://discuss.kotlinlang.org/u/argolian)\
**Post date:** [February 17, 2018, 12:03pm UTC](https://discuss.kotlinlang.org/t/define-lookandfeel-in-kotlin/6670/2 "2018-02-17T12:03:01Z")

</div>

Ignore this, I was trying to apply a theme to a scene not a frame!  
Got it working now!
