
fernice.reflare.light.FEditorPane.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fernice-reflare Show documentation
Show all versions of fernice-reflare Show documentation
CSS integration through fernice-flare in Java Swing as a LookAndFeel
The newest version!
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
package fernice.reflare.light
import org.fernice.reflare.ui.FlareEditorPaneUI
import java.net.URL
import javax.swing.JEditorPane
import javax.swing.JToolTip
@Suppress("UNUSED")
open class FEditorPane : JEditorPane {
constructor()
constructor(url: String) : super(url)
constructor(type: String, text: String?) : super(type, text)
constructor(url: URL) : super(url)
override fun updateUI() {
super.setUI(integrationDependent(this) { FlareEditorPaneUI(this) })
}
override fun createToolTip(): JToolTip {
val toolTip = FToolTip()
toolTip.component = this
return toolTip
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy