GUI classes I:
And the fifth one is with no icon: JOptionPane.PLAIN_MESSAGE
Write an application that will show 5 different messages (no input, 5 types: error message, question message, information message, warning message and plain message). Use the welcome.java example from lecture slides.
You should end up with just one file.
Your application should use GUI, should check whether the user entered the expected type value (integer, not string, not floating-point number).
You can use this sketch: MinMax.java and you can use Lab assignment 4 from Day 1.
You should end up with just one file, say MinMax.java.
files: LabelFrame.java, LabelTest.java, happy_daisy_mw.gif, earth-bullet.png (put two pictures into the folder bin, not src)
To do:
Catacombs of Kom el Shoqafa: KOM_EL_SHOQAFA_CATACOMBS.jpg
Colosseum: Colosseum_in_Rome.jpg
Great Wall of China: The_Great_Wall_of_China.jpg
Hagia Sophia: Hagia_Sophia.jpg
Leaning Tower of Pisa: The_Leaning_Tower_of_Pisa.jpeg
Porcelain Tower of Nanjing: Porcelain_Tower_of_Nanjing.jpg
Stonehenge: Stonehenge-Green_.jpg
all pictures are taken from Wikipedia: Wonders_of_the_World
You should end up with two .java files and use 7 pictures.
Develop at application with GUI that will be calculating volume of a cylinder in cubic centimeters (see Day 2, practice exercise 2 and feel free to use the program you worked on).
1) Start with the layout. Plan the entry field, plan the buttons layout. Feel free to use this picture (to make it more appealing to the user):
a snapshot of an application