title: Value from JSpinner not appearing when called (SWING)
body: <p>i have a question regarding my jspinner, i figured out how to get the value by using the jspinner.getvalue(); method. but what i need to accomplish is the value from the spinner to be printed onto a panel that at the time is hidden, (it will be visible once the user presses on the "order" section of my program) here is the components of my code regarding my spinner, the button "add to order" which is supposed to add the variable from the jspinner to the textbox in the panel. then i will also show the code for my panel</p>
  
  <p>spinner</p>
  
  <pre><code>int min = 0;
      int max = 9;
      int step = 1;
      int initValue = 0;
      SpinnerModel model = new SpinnerNumberModel(initValue, min, max, step);
      JSpinner a1 = new JSpinner(model);
      a1.setBounds(6, 200, 33, 26);
      contentPane.add(a1);
      JFormattedTextField tf = ((JSpinner.DefaultEditor) a1.getEditor()).getTextField();
      tf.setEditable(false);
      tf.setBackground(Color.white);
  </code></pre>
  
  <p>the add to order button which is supposed to print the variable from the spinner to the panel</p>
  
  <pre><code>    JButton btnAddToOrder = new JButton("Add To Order");
      btnAddToOrder.addActionListener(new ActionListener() {
          public void actionPerformed(ActionEvent e) {
  </code></pre>
  
  <p>and finally my panel</p>
  
  <pre><code>orderDeet = new JTextField((Integer) a1.getValue());
      orderDeet.setEditable(true);
      orderDeet.setBounds(20, 33, 296, 235);
      panel.add(orderDeet);
      orderDeet.setColumns(10);
  </code></pre>
  
  <p>i can also show the code for the button to make the panel visible if needed but i dont want to make the question too complicated.</p>