How to resolve the algorithm Hello world/Graphical step by step in the Frege programming language
Published on 12 May 2024 09:40 PM
How to resolve the algorithm Hello world/Graphical step by step in the Frege programming language
Table of Contents
Problem Statement
Display the string Goodbye, World! on a GUI object (alert box, plain window, text area, etc.).
Let's start with the solution:
Step by Step solution about How to resolve the algorithm Hello world/Graphical step by step in the Frege programming language
Source code in the frege programming language
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
You may also check:How to resolve the algorithm Sudoku step by step in the Befunge programming language
You may also check:How to resolve the algorithm Sockets step by step in the D programming language
You may also check:How to resolve the algorithm Character codes step by step in the AArch64 Assembly programming language
You may also check:How to resolve the algorithm Sorting algorithms/Merge sort step by step in the Quackery programming language
You may also check:How to resolve the algorithm Stirling numbers of the second kind step by step in the Kotlin programming language