title: PostFix rhyming words finder in Java, functionality and data structure missing
body: <p>I need to create a postfix finder. following is the code that I wrote. I have to import the entire dictionary of words, dont know already sorted or unsorted words and which data structure/file type it would use. Also, the functionality of finding words by filtering on postfix keyword and then showing to a list is to be made. </p>
  
  <pre><code>package hamqafia;
  
  import java.awt.FlowLayout;
  import java.awt.event.ActionEvent;
  import java.awt.event.ActionListener;
  import javafx.scene.text.Text;
  import javax.swing.JButton;
  import javax.swing.JFrame;
  import static javax.swing.JFrame.EXIT_ON_CLOSE;
  import javax.swing.JTextField;
  
  /**
   *
   * @author Zeeshan
   */
  public class HamQafia {
      private static JTextField text;
      private static JFrame frame;
      private static JButton findBtn;
      DataStructure Dictionary_of_all_words;
  
  
      public static void main(String[] args) {
          // TODO code application logic here
  
          //String[] words = {"Runner, Stealth, Gunner, male, Butter, Old, sar, gold"};
  
  
          windowMaker();
  
      }
  
      private static void windowMaker(){
          //Initializing and painting GUI components
          frame = new JFrame();
          text = new JTextField(20);
  
          findBtn = new JButton("Find");
          findBtn.setSize(200,200);
          findBtn.setVisible(true);
  
          frame.setSize(600, 600);
          frame.setLayout(new FlowLayout());
          frame.setVisible(true);
          frame.setDefaultCloseOperation(EXIT_ON_CLOSE);
  
  
          frame.add(text);
          frame.add(findBtn);
  
  
          //Click Action
          findBtn.addActionListener(new ActionListener(){
              public void actionPerformed(ActionEvent e){
              String postFix = text.getText().toString();
              finder(postFix);
              }
  
  
          });
      }
  
      private static void finder(String postFix){
          //Find method to search the words from entire dictionary an show them in the list. 
          // For example:
          // postFix = ry
          //Output: cry, fry, try, dry
      }
  
  }
  </code></pre>