Question
In Java Programming Language Write a GUI application that translates a greeting (in English) to a selected language chosen by user. User chooses the greeting
In Java Programming Language
Write a GUI application that translates a greeting (in English) to a selected language chosen by user. User chooses the greeting form a drop-down menu, then selects the language and clicks the button. The default text is Greeting, after user chooses the greeting, the text is changed to the greeting accordingly. Additionally, once user clicks the button, the greeting is translated to the selected language, which is displayed using another text. Refer to Figure Q2a for details layout. Refer to Figure Q2b, Q2c, and Q2d for the sample output screens. Other descriptions are as follows: Greeting messages: o Hello o Goodbye o Thank you
LU Translated greetings: Japanese Korean Arabic Language Greeting Hello Goodbye Thank you Konnichiwa Sayonara Arigato Annyeonghaseyo Annyeonghi gyeseyo Kamsahamnida Ahlan Ma'as-salama Syukran Image file name: o Japanese: geisha.png o Korean: korea.png o Arabic: arab.png Note: You may find the appropriate images on your own. - Panel 1 Label, drop-down menu Panel 2 - Border, colour gray Label, radio button 1, empty label with icon 1, radio button 2, Panel 3 - South empty label with icon 2, radio button 3, empty label with icon 3 "Translate" button Label 1 (greeting) Label 2 (translated greeting) Figure Q2a: The frame layout Panel 4 The frame layout (Figure Q2a): o Panel 1 is located at the NORTH of the frame. o Panel 2 is located at the CENTER of the frame. o Panel 3 with button at the BorderLayout.SOUTH is located at the EAST of the frame. o Panel 4 is located at the SOUTH of the frame. Font's labels at Panel 4: o Lucida Calligraphy, bold and italic, size 25. o Label 1 colour is blue. o Label 2 colour is orange. Greeting Translator X Select your greeting: Hello Select the language: Japanese Korean Arabic Translate Greeting Figure Q26: Sample output 1 Greeting Translator X Select your greeting: Goodbye Select the language: Japanese Korean Arabic Translate Goodbye Figure Q2c: Sample output 2 (After user chooses the greeting) Greeting Translator Select your greeting: Goodbye Select the language: Japanese Korean Arabic Translate Goodbye Sayonara Figure Q2d: Sample output 3 (After user selects the language and click the button)Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started