I have built this application and I tried to run it but I could not get the data from a JTextField. I don't know what's wrong... Here is the code that is relevant...

Construct the JTextFeild: (File Main.java)

public class Constructor extends javax.swing.JFrame {

   public Constructor() {
      initComponents();
   }

   private void initComponents() {    
      refernce = new javax.swing.JTextField();
      /*Some other code in here*/
   }

   private javax.swing.JTextField refernce;
      /*Some other code in here*/       
   }


Get the data from the Text Field: (File Save.java)

public class Save {

   /*Some other code in here*/

   private javax.swing.JTextField refernce;

   String refernceText = refernce.toString();

}


Error Report:

Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at Save.&lt;init&gt;(Save.java:79)
at Constructor.saveMouseClicked(Constructor.java:444)
at Constructor.access$200(Constructor.java:15)
at Constructor$3.mouseClicked(Constructor.java:210)
at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:270)
... (it carry on(ask if you need it))


So where have I gone wrong??? Also there are no syntax errors etc...


Question: ZenCart admin manager assignment - trying to allow multiple admins
Answer: I think what you're looking for is the Admin Profiles capability which was added in since v1.5.0.

While it's possible to install an older plugin (also named Admin Profiles) onto older versions of Zen Cart, the profile features in v1.5.0 are more efficient than what the older plugin offered.