Question: JAVA - Create JFrame application called Dictionary. Set up three one-dimensional arrays to contain the equivalent English and other-language-of-your-choice nouns, and the images of those

JAVA - Create JFrame application called Dictionary. Set up three one-dimensional arrays to contain the equivalent English and other-language-of-your-choice nouns, and the images of those objects. Typing a word in one of the languages and hitting the appropriate button should produce the translation and display the picture of that object. Make sure you check to see whether the word is in the dictionary. If it is not, display a message "Word is not found". Three arrays will be of equal length (array_length). The program should work for different array_length values. Test and upload for array_length = 10. Extra: Use enhanced for loop Add voice saying the word that you found. Add a voice output pronouncing the chosen word in English. This is the code I have so far... /** * Write a description of class Translator here. * * @author (your name) * @version (a version number or a date) */ import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.util.*; public class Translator extends JFrame implements ActionListener { // Create your instance components here // You shouldn't need to change anything in the main method public static void main (String[] args) { Translator frame = new Translator(); frame.setSize(600, 600); frame.createGUI(); frame.setVisible(true); } // Instantiate the window components here, set up your // event handlers, and lay everything out in this method private void createGUI() { setDefaultCloseOperation(EXIT_ON_CLOSE); Container window = getContentPane(); } // Use the actionPerformed method to check your arrays for // matches and display them on the screen. Remember that // you need to compare your words in both directions public void actionPerformed(ActionEvent event) { } }

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!