RosettaCodeData/Task/Hello-world-Graphical/NetRexx/hello-world-graphical-2.net...

28 lines
531 B
Plaintext

/* NetRexx */
options replace format comments java crossref symbols binary
import javax.swing.
msgText = 'Goodbye, World!'
window = JFrame(msgText)
text = JTextArea()
minSize = Dimension(200, 100)
text.setText(msgText)
window.setLayout(FlowLayout())
window.add(text)
window.setMinimumSize(minSize)
window.pack
window.setVisible(isTrue)
window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE)
return
method isTrue() public static returns boolean
return 1 == 1
method isFalse() public static returns boolean
return \isTrue