2016 Update
This commit is contained in:
parent
948b86eafa
commit
dcf5d15da3
7965 changed files with 139854 additions and 31002 deletions
12
Task/Hello-world-Graphical/Frege/hello-world-graphical.frege
Normal file
12
Task/Hello-world-Graphical/Frege/hello-world-graphical.frege
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
package HelloWorldGraphical where
|
||||
|
||||
import Java.Swing
|
||||
|
||||
main _ = do
|
||||
frame <- JFrame.new "Goodbye, world!"
|
||||
frame.setDefaultCloseOperation(JFrame.dispose_on_close)
|
||||
label <- JLabel.new "Goodbye, world!"
|
||||
cp <- frame.getContentPane
|
||||
cp.add label
|
||||
frame.pack
|
||||
frame.setVisible true
|
||||
Loading…
Add table
Add a link
Reference in a new issue