Fixing errors in Maven build
This commit is contained in:
@@ -263,9 +263,15 @@
|
|||||||
<item name='javax.swing.JMenuBar java.lang.String getUIClassID()'>
|
<item name='javax.swing.JMenuBar java.lang.String getUIClassID()'>
|
||||||
<annotation name='org.jetbrains.annotations.NotNull'/>
|
<annotation name='org.jetbrains.annotations.NotNull'/>
|
||||||
</item>
|
</item>
|
||||||
|
<item name='javax.swing.JMenuBar javax.swing.JMenu add(javax.swing.JMenu) 0'>
|
||||||
|
<annotation name='org.jetbrains.annotations.NotNull'/>
|
||||||
|
</item>
|
||||||
<item name='javax.swing.JPopupMenu javax.swing.JMenuItem add(javax.swing.Action)'>
|
<item name='javax.swing.JPopupMenu javax.swing.JMenuItem add(javax.swing.Action)'>
|
||||||
<annotation name='org.jetbrains.annotations.NotNull'/>
|
<annotation name='org.jetbrains.annotations.NotNull'/>
|
||||||
</item>
|
</item>
|
||||||
|
<item name='javax.swing.JPopupMenu javax.swing.JMenuItem add(javax.swing.JMenuItem) 0'>
|
||||||
|
<annotation name='org.jetbrains.annotations.NotNull'/>
|
||||||
|
</item>
|
||||||
<item name='javax.swing.JEditorPane JEditorPane(java.net.URL) 0'>
|
<item name='javax.swing.JEditorPane JEditorPane(java.net.URL) 0'>
|
||||||
<annotation name='org.jetbrains.annotations.NotNull'/>
|
<annotation name='org.jetbrains.annotations.NotNull'/>
|
||||||
</item>
|
</item>
|
||||||
@@ -626,6 +632,9 @@
|
|||||||
<item name='javax.swing.JMenu java.awt.Component add(java.awt.Component) 0'>
|
<item name='javax.swing.JMenu java.awt.Component add(java.awt.Component) 0'>
|
||||||
<annotation name='org.jetbrains.annotations.NotNull'/>
|
<annotation name='org.jetbrains.annotations.NotNull'/>
|
||||||
</item>
|
</item>
|
||||||
|
<item name='javax.swing.JMenu javax.swing.JMenuItem add(javax.swing.JMenuItem) 0'>
|
||||||
|
<annotation name='org.jetbrains.annotations.NotNull'/>
|
||||||
|
</item>
|
||||||
<item name='javax.swing.JRootPane javax.swing.JLayeredPane createLayeredPane()'>
|
<item name='javax.swing.JRootPane javax.swing.JLayeredPane createLayeredPane()'>
|
||||||
<annotation name='org.jetbrains.annotations.NotNull'/>
|
<annotation name='org.jetbrains.annotations.NotNull'/>
|
||||||
</item>
|
</item>
|
||||||
|
|||||||
@@ -5,6 +5,6 @@ import kotlin.browser.document
|
|||||||
fun myApp() {
|
fun myApp() {
|
||||||
val element = document.getElementById("foo")
|
val element = document.getElementById("foo")
|
||||||
if (element != null) {
|
if (element != null) {
|
||||||
element.appendChild(document.createTextNode("Some Dynamically Created Content!!!"))
|
element.appendChild(document.createTextNode("Some Dynamically Created Content!!!")!!)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ import java.awt.*
|
|||||||
inline fun actionListener(fn: (ActionEvent) -> Unit): ActionListener = FunctionActionListener(fn)
|
inline fun actionListener(fn: (ActionEvent) -> Unit): ActionListener = FunctionActionListener(fn)
|
||||||
|
|
||||||
private class FunctionActionListener(val fn: (ActionEvent) -> Unit) : ActionListener {
|
private class FunctionActionListener(val fn: (ActionEvent) -> Unit) : ActionListener {
|
||||||
public override fun actionPerformed(e: ActionEvent?) {
|
public override fun actionPerformed(e: ActionEvent) {
|
||||||
if (e != null) {
|
if (e != null) {
|
||||||
(fn)(e)
|
(fn)(e)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ import javax.swing.Icon
|
|||||||
*/
|
*/
|
||||||
fun action(text: String, description: String? = null, mnemonic: Int? = null, icon: Icon? = null, fn: (ActionEvent) -> Unit): Action {
|
fun action(text: String, description: String? = null, mnemonic: Int? = null, icon: Icon? = null, fn: (ActionEvent) -> Unit): Action {
|
||||||
val answer = object: AbstractAction(text, icon) {
|
val answer = object: AbstractAction(text, icon) {
|
||||||
public override fun actionPerformed(e: ActionEvent?) {
|
public override fun actionPerformed(e: ActionEvent) {
|
||||||
val event: ActionEvent = if (e != null) {
|
val event: ActionEvent = if (e != null) {
|
||||||
e
|
e
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ import javax.swing.text.*
|
|||||||
inline fun changeListener(fn: (ChangeEvent) -> Unit): ChangeListener = FunctionChangeListener(fn)
|
inline fun changeListener(fn: (ChangeEvent) -> Unit): ChangeListener = FunctionChangeListener(fn)
|
||||||
|
|
||||||
private class FunctionChangeListener(val fn: (ChangeEvent) -> Unit) : ChangeListener {
|
private class FunctionChangeListener(val fn: (ChangeEvent) -> Unit) : ChangeListener {
|
||||||
public override fun stateChanged(e: ChangeEvent?) {
|
public override fun stateChanged(e: ChangeEvent) {
|
||||||
if (e != null) {
|
if (e != null) {
|
||||||
(fn)(e)
|
(fn)(e)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ var JFrame.defaultCloseOperation: Int
|
|||||||
var JFrame.contentPane: Container?
|
var JFrame.contentPane: Container?
|
||||||
get() = getContentPane()
|
get() = getContentPane()
|
||||||
set(value) {
|
set(value) {
|
||||||
setContentPane(value)
|
setContentPane(value!!)
|
||||||
}
|
}
|
||||||
|
|
||||||
var JFrame.title: String
|
var JFrame.title: String
|
||||||
|
|||||||
Reference in New Issue
Block a user