Swing GUI

I do not know if any of you has any problems with JME's support with swing… but i'm having issues with swing…

could anyone try to import this window I made on your JME project… I'm having problems once it has been added with ActionListeners



package windows;

import java.awt.BorderLayout;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;
import javax.swing.SwingConstants;

import tools.NumberField;

import Nodes.TerrainModelerNode;


public class resizePlatform extends JPanel implements ActionListener
{
   
   private JButton btnConfirm;
   private JButton btnCancel;
   private JTextField txtPlatWidth;
   private JTextField txtPlatLength;
   
   private TerrainModelerNode app2;
   private resizePlatform thisWindow;
   
   public resizePlatform(TerrainModelerNode app){
      setLayout (new BorderLayout());
      
      JLabel label1 = new JLabel("Platform dimensions");
      label1.setHorizontalAlignment(SwingConstants.CENTER);
      txtPlatWidth = new NumberField(2);
      txtPlatLength = new NumberField(2);
      btnConfirm = new JButton("Confirm");
      btnConfirm.setActionCommand("confirm");
      btnConfirm.addActionListener(this);
      btnCancel = new JButton("Cancel");
      btnCancel.setActionCommand("cancel");
      btnCancel.addActionListener(this);
      
      
      JPanel centerPane = new JPanel();
      centerPane.setLayout(new GridLayout(0,2));
      centerPane.add(new JLabel("  Width"));
      centerPane.add(txtPlatWidth);
      centerPane.add(new JLabel("  Length"));
      centerPane.add(txtPlatLength);
      
      JPanel lowerPane = new JPanel();
      lowerPane.setLayout(new GridLayout(0,2));
      lowerPane.add(btnConfirm);
      lowerPane.add(btnCancel);
      
      add(label1, BorderLayout.NORTH);
      add(centerPane, BorderLayout.CENTER);
      add(lowerPane, BorderLayout.SOUTH);
      thisWindow = this;
   }

   @Override
   public void actionPerformed(ActionEvent e) {
      // TODO Auto-generated method stub
      if(e.getActionCommand().equals("confirm")){
         int newWidth = Integer.parseInt(txtPlatWidth.getText());
         int newLength = Integer.parseInt(txtPlatLength.getText());
         thisWindow.setVisible(false);
      }
      else if(e.getActionCommand().equals("cancel")){
         thisWindow.setVisible(false);
      }
   }
}

The fact that you are "having problems" is kind of vague. What sort of problems are you having? Is it throwing exceptions? Do you have a stack trace?