2016 Update
This commit is contained in:
parent
948b86eafa
commit
dcf5d15da3
7965 changed files with 139854 additions and 31002 deletions
|
|
@ -0,0 +1,14 @@
|
|||
import java.awt.*
|
||||
import javax.swing.*
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
JOptionPane.showMessageDialog(null, "Goodbye, World!") // in alert box
|
||||
with(JFrame("Goodbye, World!")) { // on title bar
|
||||
layout = FlowLayout()
|
||||
add(JButton("Goodbye, World!")) // on button
|
||||
add(JTextArea("Goodbye, World!")) // in editable area
|
||||
pack()
|
||||
defaultCloseOperation = JFrame.EXIT_ON_CLOSE
|
||||
isVisible = true
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue