Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 additions and 0 deletions
17
Task/Hello-world-Graphical/FunL/hello-world-graphical.funl
Normal file
17
Task/Hello-world-Graphical/FunL/hello-world-graphical.funl
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
native javax.swing.{SwingUtilities, JPanel, JLabel, JFrame}
|
||||
native java.awt.Font
|
||||
|
||||
def createAndShowGUI( msg ) =
|
||||
f = JFrame()
|
||||
f.setTitle( msg )
|
||||
f.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE )
|
||||
p = JPanel()
|
||||
l = JLabel( msg )
|
||||
l.setFont( Font.decode(Font.SERIF + ' 150') )
|
||||
p.add( l )
|
||||
f.add( p )
|
||||
f.pack()
|
||||
f.setResizable( false )
|
||||
f.setVisible( true )
|
||||
|
||||
SwingUtilities.invokeLater( createAndShowGUI.runnable('Goodbye, World!') )
|
||||
Loading…
Add table
Add a link
Reference in a new issue