title: Jtextfield does not display the text
body: <p>I am trying to pass values from my database java file to my frame java file.BY creating a function like "frame java . get value (name ,phone, date ) " and receiving the value in the frame java file . I tried to  print the passed value in the console it works fine, but when i try to set value to the text field it doesn't display the text in the text filed... I don't what's wrong can any one help me to sort out this issue.</p>
  
  <p><strong>Here is database java function</strong></p>
  
  <pre><code>public void check_room(String roomno, String date) throws SQLException {
  
      String sql = "select * from customerinfo where roomno='" + roomno
              + "'and cdate='" + date + "' ";
      System.out.print("search method called \n ");
      System.out.print("\n ");
      try {
          con = DriverManager.getConnection(
                  "jdbc:oracle:thin:@localhost:1521:xe", "hotel", "hotel");
      } catch (SQLException ex) {
          // Logger.getLogger(checkout.class.getName()).log(Level.SEVERE,
          // null, ex);
      }
      sate = con.createStatement();
      rs = sate.executeQuery(sql);
  
      int tmp = 0;
      try {
          while (rs.next()) {
              System.out.print("search found \n ");
  
              String name = rs.getString("GUEST_NAME");
              String phono = rs.getString("GUEST_PHO");
              String addr = rs.getString("G_ADDR");
              String paid = rs.getString("PAID");
              String total = rs.getString("TOTAL");
              String balance = rs.getString("BALANCE");
              System.out.println(name);
  
              mainmenu menu = new mainmenu();
              menu.getvalue(name, phono, addr, paid, total, balance);
              tmp++;
          }
      } catch (SQLException ex) {
          // Logger.getLogger(checkout.class.getName()).log(Level.SEVERE,
          // null, ex);
      }
      if (tmp &lt;= 0) {
          JOptionPane.showMessageDialog(null, "no details found ");
      }
  }
  </code></pre>
  
  <p>==========================================================================</p>
  
  <p><strong>This is  my frame java file</strong></p>
  
  <pre><code>public void getvalue(String name, String phono, String addr, String paid,String total, String balance) {
      nam.setText(name);
      pho.setText(phono);
      // mainmenu();
  </code></pre>
  
  <h1>    }</h1>
  
  <p>I <strong>edited as u said</strong> but getting error . I have attached my skeleton code 
  and the error i get, below</p>
  
  <p><strong>edited code.</strong></p>
  
  <p>database file </p>
  
  <pre><code>public class OracelThinconnection
  
  {  
    private MainMenu menu;    
     public OracelThinconnection(MainMenu menu)  
    {  
       this.menu=menu;  
  ..................  
  .................   
  .............  
  </code></pre>
  
  <p>========================================================================
  <strong>Error i get</strong></p>
  
  <pre><code>Exception in thread "AWT-EventQueue-0" java.lang.RuntimeException: Uncompilable source code - cannot find symbol
    symbol:   constructor OracelThinconnection()
    location: class bookingapp.OracelThinconnection
          at bookingapp.MainMenu.jButton1ActionPerformed(MainMenu.java:1438)
          at bookingapp.MainMenu.access$300(MainMenu.java:33)
          at bookingapp.MainMenu$4.actionPerformed(MainMenu.java:379)
          at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
          at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
          at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
          at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
          at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
          at java.awt.Component.processMouseEvent(Component.java:6263)
          at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
          at java.awt.Component.processEvent(Component.java:6028)
          at java.awt.Container.processEvent(Container.java:2041)
          at java.awt.Component.dispatchEventImpl(Component.java:4630)
          at java.awt.Container.dispatchEventImpl(Container.java:2099)
          at java.awt.Component.dispatchEvent(Component.java:4460)
          at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4574)
          at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
          at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
          at java.awt.Container.dispatchEventImpl(Container.java:2085)
          at java.awt.Window.dispatchEventImpl(Window.java:2478)
          at java.awt.Component.dispatchEvent(Component.java:4460)
          at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
          at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
          at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
          at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
          at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
          at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
          at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
  </code></pre>